Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Distributed system serial number generation method and system

A distributed system and distributed lock technology, applied in the field of data management, can solve the problems of unintuitive data query, inability to generate sequence numbers, and lack of versatility, etc., and achieve the effects of easy replacement and migration, uniqueness assurance, and improved usability

Pending Publication Date: 2022-07-01
BANK OF CHINA
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

For the redis direct self-increment serial number generation method, although it can also guarantee the uniqueness in the distributed system, because the serial number generation rules generated by redis are limited, and the data query is not intuitive, so the demand for multiple serial numbers cannot be met. And the management of the serial number is not convenient enough
The sequence number function of the database is not universal, and some databases do not have this function, so if there is a requirement for database selection, it may not be satisfied, and if you want to change the database software, the sequence number may not be generated

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 system serial number generation method and system
  • Distributed system serial number generation method and system
  • Distributed system serial number generation method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] The embodiments of the present application will be described in detail below with reference to the accompanying drawings and examples, so as to fully understand and implement the implementation process of how to apply technical means to solve technical problems and achieve technical effects in the present application. It should be noted that, as long as there is no conflict, the various embodiments in this application and various features in each embodiment can be combined with each other, and the formed technical solutions are all within the protection scope of this application.

[0022] Additionally, the steps shown in the flowcharts of the figures may be performed in a computer system, such as a set of computer-executable instructions, and, although shown in a logical order in the flowcharts, in some cases, may be executed differently The steps shown or described are performed in the order shown herein.

[0023] Aiming at the simultaneous operation of multiple nodes ...

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 provides a distributed system serial number generation method and system, relates to the field of data management, can be applied to the financial field and other fields, and comprises the following steps: analyzing according to received configuration information to obtain a system identifier and a serial number generation rule; generating a serial number configuration parameter according to the system identifier and the serial number generation rule, and storing the serial number configuration parameter in a predetermined database; and calling the corresponding serial number configuration parameter in the database according to a received calling instruction, updating the serial number of the corresponding system in the database through the distributed lock according to the serial number configuration parameter, and feeding back a serial number updating result to a calling instruction initiator.

Description

technical field [0001] The present application relates to the field of data management and can be applied to the financial field and other fields, and in particular, to a method and system for generating a serial number of a distributed system. Background technique [0002] The existing distributed system serial number generation methods include the direct use of the redis auto-increment function, and the direct use of the sequence implementation of the database. For the serial number generation method of the direct self-increment type of redis, although it can also be guaranteed to be unique in the distributed system, because the serial number generation rules generated by redis are limited, and the data query is not intuitive, the requirements for the occurrence of multiple serial numbers cannot be satisfied. And the management of serial numbers is not convenient enough. The sequence number generation function of the database is not universal, and some databases do not ha...

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/23G06F16/27
CPCG06F16/2343G06F16/27
Inventor 吴伟
Owner BANK OF CHINA
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products