Distributed digital ID generation algorithm

A generation algorithm and distributed technology, which is applied in the direction of digital data processing, creation/generation of source code, database distribution/replication, etc., which can solve the problems such as the inability to achieve the effect of use and the unique existence of business data identification fields.

Pending Publication Date: 2021-06-15
SHENZHEN SECURITIES COMM
View PDF3 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In the existing technology, the digital ID generation algorithm cannot guarantee the unique existence of certain business data identification fields in the entire distributed system. For example, when a user performs an action on a functional module in the system, an event is generated
This event is subscribed by other modules of the system. In order to identify the specific event, it is necessary to add an ID field to the event field and assign the value generated by the ID generation algorithm, which will not achieve a good use effect, and the ID generation algorithm generates There is a situation where the ID exceeds the maximum value of the Number data type of the JavaScript programming language

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 digital ID generation algorithm
  • Distributed digital ID generation algorithm
  • Distributed digital ID generation algorithm

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0029] Please refer to the accompanying drawings of the description, the present invention provides a technical solution: a distributed digital ID generation algorithm, comprising the following steps:

[0030] Step 1, ID generator instance initialization; among them, ID generator instance initialization includes 5 steps, respectively:

[0031] Step 1, the program starts;

[0032] Step 2, read the instance number of the ID generator from the database;

[0033...

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 digital ID generation algorithm. The algorithm comprises the following steps: a program is started; an instance number of the ID generator is read from a database; if the instance number of the read ID generator does not exist, a new number is generated from the instance number which does not exist; a new number is generated and written into a database; if the instance number of the read ID generator exists, the starting is ended; a request of a user firstly arrives at the request dispatcher; the request dispatcher guides the request to a certain node in the ID generator cluster according to a distribution algorithm; the ID generator instance generates an ID and then returns a result to the request distributor; and the request distributor returns the result to the user. The method has the advantages that 1, ID generation can be used for distributed deployment by using a distributed algorithm, the ID generation speed can be increased and the ID generation quantity can be increased by increasing the quantity of deployed servers, and meanwhile, the quantity of calling customer service sides can also be increased; and 2, the ID generation algorithm is deployed on a plurality of servers, so that the availability of ID generation and the number of generated IDs can be enhanced.

Description

technical field [0001] The invention relates to a distributed digital ID generation algorithm, which belongs to the technical field of data storage systems. Background technique [0002] In a distributed system, it is necessary to ensure that certain business data identification fields uniquely exist in the entire distributed system. For example, a user executes an action on a function module on the system and generates an event. This event is subscribed by other modules of the system. In order to identify a specific event, an ID field needs to be added to the event field, and the value generated by the ID generation algorithm should be assigned. In the existing technology, the digital ID generation algorithm cannot guarantee that some business data identification fields uniquely exist in the entire distributed system, for example, a user performs an action on a functional module on the system to generate an event. This event is subscribed by other modules of the system. I...

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/25G06F16/27G06F8/30
CPCG06F16/252G06F16/27G06F8/315
Inventor 刘子奇陈小泉
Owner SHENZHEN SECURITIES COMM
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