Method for ensuring strong consistency of data in distributed system

A distributed system and consistent technology, applied in transmission systems, data exchange details, digital transmission systems, etc., can solve problems such as failures, poor business stability and reliability, and limited horizontal expansion capabilities, and achieve increased nodes Quantity, data transmission speed leap, robustness improvement effect

Pending Publication Date: 2022-01-28
上海金仕达软件科技股份有限公司
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

When the arbitration node fails, it means that the switching function of the active and standby nodes is unavailable. When the active node fails and cannot provide transaction services, the cluster actually fails, and the business stability and reliability are not good.
[0006] (2) The business cluster has only two active and standby nodes, and the horizontal expansion capability is limited. If the customer requires to increase transaction nodes, maintain data consistency, and perform disaster recovery switching at any time, it is obvious that this architecture cannot meet the customer's further demand for fault tolerance.

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 ensuring strong consistency of data in distributed system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] Specific embodiments of the present invention will be described below in conjunction with examples, so as to better understand the present invention.

[0029] Such as figure 1 As shown, this embodiment provides a method for ensuring strong data consistency in a distributed system, which specifically includes the following steps:

[0030] Reliable multicast imports UDP packets

[0031] The implementation of reliable multicast is based on the serial number of the transport layer carried in the UDP packet header, and the serial number of each service flow starts from 1. When receiving multicast and multicast, analyze the serial number of each business message header, there are three situations at this time:

[0032] The new sequence number is the sequence number of the message received last time + 1, and it can be parsed if it is received normally, and the sequence number of the service flow message held by itself is updated.

[0033] If the difference between the new 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

According to a method, a reliable multicast mechanism is adopted, data is distributed from a source business cluster to a target business cluster, at any time, the target cluster only has one node (named as a main node) which is responsible for distributing processed business data to the outside again, and other nodes are named as standby nodes. All the nodes in the target business cluster join the same multicast group and process the received service data at the same time, but the standby node does not participate in external data distribution, and the processing speeds of all the nodes are consistent, so that the conversion sequence of internal state machines can be kept consistent, and the strong data consistency among the nodes is ensured. If the main node fails, the reasonable standby node can be selected to be promoted to the main node, and data processing is continued, so that distributed data consistency is achieved, namely, all data can be accessed from any node in the cluster. According to the invention, the original TCP point-to-point transmission mode is replaced by connectionless reliable multicast, so that the number of nodes accommodated by a service cluster is obviously increased.

Description

technical field [0001] The invention belongs to the technical field of securities trading, and in particular relates to a method for ensuring strong consistency of data in a distributed system. Background technique [0002] It has been successfully applied in multiple product lines such as securities, futures, and institutional trading. However, with the rapid growth of trading varieties and trading volume in the financial market, higher requirements are put forward for the performance and capacity of the trading system. However, there are many limitations in the original trading system, which makes it very difficult to improve and improve on the basis of the existing version, and then puts forward the requirements for a new generation of trading system. [0003] For example, the original transaction system is not a fully distributed architecture. The business cluster only supports a simple master-standby model, and the master-standby switching mechanism itself is controlle...

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): H04L67/1001H04L67/1097H04L69/164H04L69/22G06Q40/04H04L12/18
CPCH04L67/1097H04L69/164H04L69/22H04L12/1863G06Q40/04
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