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

A Message Synchronization Method

A technology of message and message identification, applied in multi-program devices, inter-program communication, program control design, etc., can solve the problems of data loss, high cost, blocking other thread write operations, etc., and achieve the effect of highly reliable message synchronization

Active Publication Date: 2020-04-17
CHINA TELECOM SHANGHAI IDEAL INFORMATION IND GRP
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The main problem of the first semi-synchronous replication scheme is: when the master node waits for the response from the slave node to time out, it will directly return success to the client
Kafka also has the problem of data loss when the master hangs up after the master-slave synchronization fails. Since the message storage system of Kafka is different from the general database system, if the second semi-synchronous replication scheme is used, other threads need to be blocked when doing data rollback operations. Write operations are expensive

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 Message Synchronization Method
  • A Message Synchronization Method
  • A Message Synchronization Method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0050] The implementation of the present invention is described below through specific examples and in conjunction with the accompanying drawings, and those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific examples, and various modifications and changes can be made to the details in this specification based on different viewpoints and applications without departing from the spirit of the present invention.

[0051] figure 1 It is a flow chart of steps of a message synchronization method according to the first embodiment of the present invention. like figure 1 As shown, a message synchronization method of the present invention includes the following steps:

[0052]Step 101, the master broker (master node) receives the message writing request from the message producer, stores the message, and s...

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 message synchronization method and system. The method comprises the following steps: step 1, a master node receiving a message write request of a client, storing a message, and synchronizing the message to a slave node; step 2, the slave node receiving the message synchronization request sent by the master node, and storing the message; and step 3, a control node caching synchronous overtime messages and message identifiers, and after the master node fails, updating the corresponding overtime message to a new master node. The method and the system fulfill the purpose of high-reliable message synchronization of distributed message middleware.

Description

technical field [0001] The invention relates to the technical field of message processing, in particular to a highly reliable message synchronization method. Background technique [0002] In a distributed system, in order to ensure high availability of the system, it is often necessary to save multiple copies of a piece of data in machines at different physical locations. To ensure data consistency, various replication techniques can be used. Data replication includes multiple technologies such as synchronous replication, asynchronous replication, and semi-synchronous replication. In order to achieve a balance between consistency and performance, semi-synchronous replication is often used. [0003] There are currently two semi-synchronous replication schemes in the database system. The first semi-synchronous replication scheme is as follows: first write the redo log on the master node, then submit the transaction to the master node, and then trigger the wait until the slave...

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): G06F9/54
CPCG06F9/543G06F9/544G06F9/546
Inventor 项剑峰邬来军彭亮
Owner CHINA TELECOM SHANGHAI IDEAL INFORMATION IND GRP