Method for realizing global ordered replaying under micro-service architecture

A micro-service, global technology, applied in the direction of inter-program communication, multi-program device, program control design, etc., can solve the problems of physical time stamp correspondence, unable to repeat the real history, etc., and achieve the effect of easy repeat

Active Publication Date: 2017-09-19
上交所技术有限责任公司
View PDF5 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The standard Lamport logical clock can solve the problem of replaying the history of the entire system in a causal order, but the logical clock is just a monoto

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
  • Method for realizing global ordered replaying under micro-service architecture
  • Method for realizing global ordered replaying under micro-service architecture
  • Method for realizing global ordered replaying under micro-service architecture

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0082] see figure 1 , microservice A is stand-alone, microservice B is a cluster, node 2 is the current master node, and node 3 is the slave node. Microservice C is a cluster, node 4 is the current master node, and node 5 is the slave node.

[0083] The message sending and receiving events in the system are marked with the local physical time of each node, and the logical clocks are as follows:

[0084]

[0085] According to the logical timestamp, although the local clocks of each host have a slight offset, the sequence of global events reconstructed according to the logs of each node is as follows:

[0086]

[0087] On the one hand, the logical timestamp of the event is kept quite close to the physical time, and on the other hand, the causal sequence of the event is also maintained.

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 present invention relates to the information data processing technology field under the micro-service architecture, especially to a method for realizing global ordered replaying under micro-service architecture. A logic clock {T, C} in a two-tuple mode is maintained at the internal portion of the logic clock layer of each node, T is initialized to 0, and C is initialized to 0. Each transmitted message m carries two logic time stamps: ts(m) corresponding to m sending and tr(m) corresponding to m receiving. The formats of the ts(m) and the tr(m) are also the two tuples {T, C} as shown above. Compared to the prior art, a logic clock layer is arranged between an application software layer and message middleware and is taken as the maintenance logic of the logic clock and the logic time stamps, the logic clock can refer to the local physical clock and the message transmission cause and effect timing sequence, and because the T component of the logic clock is very close to the physical time of events, it is easy to perform replaying according to assigned multiplication speed.

Description

[technical field] [0001] The present invention relates to the technical field of information and data processing under the microservice architecture, and specifically relates to a method for realizing global orderly replay under the microservice architecture. [Background technique] [0002] Under the microservice architecture, the entire system consists of many highly cohesive and low-coupling microservices. In order to complete a specific business, different microservices complete cooperation by sending and receiving messages to each other, and the flow patterns of messages may be completely different under different businesses. In order to achieve high availability, a single microservice may be built into a highly available cluster, and the entire cluster provides external services as a whole. [0003] The microservice architecture is a distributed system, and the microservices coordinate with each other only through the messages passed to each other. For performance con...

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/08H04J3/06G06F9/54
CPCG06F9/546G06F2209/547H04J3/0638H04J3/065H04L67/10
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