Distributed version management method, device and system

A version management and distributed technology, applied in the computer field, can solve problems affecting system performance, high database pressure, and consumption of lock resources

Pending Publication Date: 2021-07-06
BEIJING WODONG TIANJUN INFORMATION TECH CO LTD +1
View PDF0 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The version management method of the existing technology will cause lock competition under concurrent conditions, consume lock resources, and affect system performance; at the same time, it depends on the database when updating data. A complete update process includes at least one database query operation and one database write operation, the pressure on the database is high

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
  • Distributed version management method, device and system
  • Distributed version management method, device and system
  • Distributed version management method, device and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0045] Exemplary embodiments of the present invention are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present invention to facilitate understanding, and they should be regarded as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.

[0046] As described in the background, the service data of the long-link service is assembled from messages of multiple service sub-processes. Specifically, long-link services are implemented by multiple service nodes, and the corresponding service data can be obtained by assembling the data generated by each service node executing its own service sub-process into a wide t...

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 version management method, device and system, and relates to the technical field of computers. A specific embodiment of the method comprises the following steps: acquiring a message from a message queue; wherein the message comprises a node identifier of the current service node and a local message version; according to the node identifier, intercepting a version field corresponding to the node identifier from unified version information stored in a memory to obtain a global message version; wherein the unified version information comprises version fields corresponding to messages of a plurality of service nodes, and the plurality of service nodes are used for completing the same service; and comparing the local message version with the global message version, if the local message version is higher than the global message version, updating the unified version information, and writing the message into a database. According to the method, the message queue is introduced under the distributed architecture, so that the consumption message can be serialized, the de-locking and unified management of the message version are realized, the database pressure is reduced to the greatest extent, and the concurrent processing capability is improved.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a distributed version management method, device and system. Background technique [0002] For long-link services, its service data is usually assembled from messages of multiple service sub-processes. Since each business sub-process has its own independent state, business data will be updated as the state of the business sub-process changes. Wherein, the long-link service refers to a service completed by serialization and addition of multiple links, and one link is used to implement a service sub-process of the service. [0003] The above-mentioned long-link business scenario has the characteristics of high message concurrency and needs to update data synchronously according to the state changes of business sub-processes. In order to reduce the out-of-order and repeated consumption of messages caused by high message concurrency, and ensure that the status updates of m...

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): G06F16/21G06F16/23
CPCG06F16/219G06F16/2365G06F16/2379
Inventor 赵力
Owner BEIJING WODONG TIANJUN INFORMATION TECH CO LTD
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