Unlock instant, AI-driven research and patent intelligence for your innovation.

High-performance real-time consistent micro-service execution method and system

A micro-service, high-performance technology, applied in the direction of transaction processing, program synchronization, inter-program communication, etc., can solve the problems of cumbersome logic and inability to guarantee real-time data consistency, and achieve simple logic, ensure real-time data consistency, and reliability high effect

Pending Publication Date: 2022-03-25
富盛科技股份有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The compensatory transaction scheme is similar to manual rollback and can also ensure real-time consistency, but the logic is cumbersome
Final consistency has better performance, but it cannot guarantee the real-time consistency of data

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
  • High-performance real-time consistent micro-service execution method and system
  • High-performance real-time consistent micro-service execution method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0034] In order to understand the content of the present invention more clearly, it will be described in detail with reference to the drawings and embodiments.

[0035] The first aspect of the present invention relates to a process flow such as figure 1 The high-performance real-time consistent microservice execution method shown, including:

[0036] S1. Obtain a microservice invocation request. When a microservice consumer applies to call multiple other microservices, it does not call through the http or rpc method provided by the distributed framework.

[0037] S2. Generate a verification file corresponding to the microservice call request, where the verification file includes the number of microservice calls required for the corresponding microservice call request and an expiration time. Preferably, a unique verification file is generated by means of Snowflake sending code, and the generated unique verification file is used as the corresponding number of microservice call...

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 a high-performance real-time consistent micro-service execution method and system, and the method comprises the steps: generating a verification file corresponding to a micro-service calling request to set a micro-service calling number, determining a service calling state according to the value of the micro-service calling number, and carrying out the execution of the micro-service calling number through combining the execution strategies of two-stage submission and three-stage submission. According to the method, the real-time consistency of the data of the distributed transaction scene is ensured, the logic is relatively simple, the reliability is relatively high, and the method is suitable for distributed framework projects such as dubbo and springcloud.

Description

technical field [0001] The invention relates to the technical field of distributed transaction processing, in particular to a high-performance, real-time and consistent microservice execution method and system. Background technique [0002] The current mainstream solutions for distributed transactions include two-phase commit, three-phase commit, compensatory transactions, and final consistency. [0003] Each distributed transaction solution has its own application scenarios. For example, the three-stage commit is suitable for scenarios with high data security requirements, and can ensure real-time consistency of data, but the performance is low, and there is no mature framework yet. support. The compensating transaction scheme is similar to manual rollback and can also ensure real-time consistency, but the logic is cumbersome. Final consistency has better performance, but it cannot guarantee the real-time consistency of data. Contents of the invention [0004] In order...

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 Applications(China)
IPC IPC(8): G06F9/46G06F9/52G06F9/54
CPCG06F9/466G06F9/547G06F9/526
Inventor 明治
Owner 富盛科技股份有限公司