A micro-service framework implementation method based on annotations

An implementation method and micro-service technology, applied in the field of cloud computing, can solve problems such as complicated configuration

Inactive Publication Date: 2019-05-07
G CLOUD TECH
View PDF4 Cites 20 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

From the perspective of developers, as the project grows and the business becomes more comple

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A micro-service framework implementation method based on annotations
  • A micro-service framework implementation method based on annotations
  • A micro-service framework implementation method based on annotations

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0027] See figure 1 with figure 2 , respectively are service registration and service call flowcharts of an implementation method of an annotation-based highly flexible micro-service framework provided by the implementation of the present invention.

[0028] The framework of the present invention is divided into two parts: service registration and service invocation. The service registration first annotates the service definition annotation on the service interface definition class of the service provider, and then automatically discovers the service interface definition class and its implementation class when the service provider service module starts , and then automatically create the instantiation object of the service interface definition class corresponding to the implementation class, then create a remote service according to the service interface class and the implementation class object, and then register the service to the service center according to the annotation ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to the technical field of cloud computing, in particular to a micro-service framework implementation method based on annotations. The method comprises the steps of service providing and service calling. The service providing is realized by a service provider and specifically comprises the following steps: defining a service interface class, annotating a service definition annotation, automatically discovering the defined interface class during starting, automatically creating a remote service object and registering the remote service object to a service center; The service calling is realized by a service caller, and specifically comprises the following steps: automatically discovering a service interface class defined by a service provider, creating an agent implementation class to obtain a remote service, injecting the service interface class to obtain a service agent implementation class object, then directly calling an agent implementation class object methodto realize calling of a remote service method, and returning a result. According to the micro-service framework provided by the invention, business development does not need to pay attention to a micro-service implementation method and principle for use, and a specific implementation method of freely forming various deployment schemes without modifying codes and freely modifying a framework service protocol can be realized; And the method is suitable for various different scales or types of applications.

Description

technical field [0001] The invention relates to the technical field of cloud computing, in particular to an annotation-based microservice framework implementation method. Background technique [0002] As the microservice architecture becomes more and more popular, more and more enterprises have begun to use the microservice architecture instead of the previous three-tier architecture. It turns out that multiple components in a system are all transformed into separate microservices, which can quickly respond to user needs. As the number of microservices becomes larger and larger, cross-calls between servers become more and more frequent. From the developer's point of view, as the project grows and the business becomes more complex, the more calls between businesses, the more complicated the various configurations will be. Contents of the invention [0003] The technical problem solved by the present invention is to provide an annotation-based implementation method of a hi...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): H04L29/08G06F8/20
Inventor 王攀锋季统凯
Owner G CLOUD TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products