A distributed microservice framework system supporting asynchronous mode and its implementation method

An asynchronous mode and framework system technology, applied in the computer field, can solve the problems of lack of consideration, high consumption, lack of service management, etc., and achieve the effect of reducing maintenance complexity, improving implementation efficiency, and reducing resource consumption

Active Publication Date: 2019-06-04
上海和付信息技术有限公司
View PDF9 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This is mainly because the existing framework only saves the object reference of the local program callback when invoking the service, and does not consider the multi-node distributed service at all, which cannot meet the requirements of a distributed service system that requires high stability.
[0004] 2) Does not support cross-protocol microservice calls: The caller of microservices will involve multiple platforms and multiple communication channels. For example, when developing mobile Internet applications, the mobile APP needs to call microservices. Considering the delay and Instability and other characteristics require the use of WEB SOCKET to transmit data, while the background microservice provider transmits data based on the queue server
This requires the framework to support proxy conversion and message conversion between protocols and transporters. However, the existing framework requires all calls and service providers to use a unified protocol and transporter, which cannot meet the needs of cross-platform and cross-protocol development of Internet applications.
[0005] 3) Lack of cache processing mechanism for services: the existing framework cache mechanism is relatively simple to implement, only considering the local cache processing of the calling end, which consumes a lot in the face of high-frequency service calls, reducing the efficiency of service processing
[0006] 4) Lack of unified management of services: the current framework lacks service management, and only maintains a local service list file at the service calling end, which makes it difficult to ensure the consistency and effectiveness of services, and cannot perform unified scheduling and management of services, and maintain the overall service framework The complexity of the
[0007] 5) Service calls do not support the annotation mode of the main programming model: all service calls and exposures of the current framework need to be defined in detail in the configuration file, including the interface, method, and callback description of the call service, which cannot be described in the programming process Metaphor, seamlessly embedded with the main programming model, means that the call logic of the service interface needs to be re-described in the configuration file, which increases the workload of call implementation and the complexity of maintenance

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 distributed microservice framework system supporting asynchronous mode and its implementation method
  • A distributed microservice framework system supporting asynchronous mode and its implementation method
  • A distributed microservice framework system supporting asynchronous mode and its implementation method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0061] The present invention is described in further detail now in conjunction with accompanying drawing. These drawings are all simplified schematic diagrams, which only illustrate the basic structure of the present invention in a schematic manner, so they only show the configurations related to the present invention.

[0062] The present invention provides a microservice framework (Ti-Lnk framework) system supporting asynchronous mode, which not only realizes the basic synchronous call of microservices, service registration management, but also realizes the callback of asynchronous distributed services, and cross-protocol cross-transport layer call. In addition, all service invocations and processing support the annotations of the main programming model.

[0063] The whole system is mainly divided into service gateway proxy layer, service provider, service caller, and service registration center. For the overall framework, see figure 2 .

[0064] 1) The service gateway a...

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 discloses a distributed microservice framework system supporting an asynchronous mode, which includes a service gateway agent layer, a service provider, a service registration center and a service caller. The service gateway proxy layer includes protocol converters and transporters. In addition, the invention also discloses the realization method of the system. The present invention solves the following problems: 1) supports asynchronous distributed service callback, and solves the problem of a single point of failure in response processing during callback; 2) supports conversion between different protocols and transport layers, and opens up the whole process of microservice calls; 3 ) Realize the annotation mode of the main programming model for service publishing and calling, improve implementation efficiency and reduce maintenance complexity; 4) Realize the double cache mechanism of the calling end and the service provider to improve the efficiency of service calling; 5) Realize a unified service registration center, centralized Manage all publishing services.

Description

technical field [0001] The invention belongs to the field of computers, and relates to a micro-service framework, in particular to a cross-protocol calling and asynchronous distributed service callback mode, and in particular to a distributed micro-service framework system supporting an asynchronous mode; therefore, the present invention also relates to the asynchronous supporting The implementation method of the distributed microservice framework system of the pattern. Background technique [0002] With the development of the Internet, the scale of applications continues to expand, and the conventional vertical application architecture can no longer cope with it. The distributed service architecture is imperative, and the microservice architecture is one of the practices. The microservice architecture disassembles a single application into finer-grained microservices. Each service can be independently deployed, run independently, and has a complete service contract to achie...

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
Patent Type & Authority Patents(China)
IPC IPC(8): H04L29/06H04L29/08
CPCH04L67/1097H04L67/565H04L67/5683H04L67/568H04L67/60H04L67/133
Inventor 岑谱洲肖齐
Owner 上海和付信息技术有限公司
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