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

A digital id generation method for distributed systems

A distributed system, digital technology, applied in database management systems, database distribution/replication, database indexing, etc., can solve the problems of inability to guarantee the incremental trend, low query efficiency, inability to deal with multiple concurrency situations, etc., to ensure efficient generation, The effect of ensuring uniqueness and reducing the amount of reading and writing

Active Publication Date: 2020-12-08
重庆富民银行股份有限公司
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] The present invention intends to provide a digital ID generation method for a distributed system, which can solve the existing digital ID generation methods of a distributed system, which cannot guarantee the incremental trend, low query efficiency, and cannot cope with multiple concurrent situations.

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 digital id generation method for distributed systems

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0034] like figure 1 As shown in the present embodiment, a method for generating a digital ID for a distributed system includes the following contents:

[0035] The data table creation step is to create an ID data table in the database;

[0036] Data table creation steps include:

[0037] Step 1: create N ID data tables in the database; the database can be a single database or multiple databases, and in this embodiment, there are 3 databases;

[0038] Step 2: Create an ID field and a memo field in each ID data table;

[0039] Step 3: Set the ID field to the auto-increment type, and the data type to the bigint type, set the auto-increment step size to N, and increase the starting value of the ID field of the N ID data tables by one in turn.

[0040] The application routing step distributes the invocation request to different applications according to the content of the invocation request and routing rules.

[0041] In the data table routing step, the application randomly se...

Embodiment 2

[0058] The difference between this embodiment and Embodiment 1 is that in this embodiment, the application generates the values ​​of P and Q according to the content of the call request, the call request includes a confidential call request and a common call request, and the confidential call request includes a confidentiality level , the confidential invocation request and the ordinary invocation request both include equipment batches. The higher the security level, the larger the P, the newer the equipment batch, and the larger the Q. The database selection step is used for random selection in the existing database. Select P databases, the data table selection step is used to randomly select Q ID data tables from the P databases, and in the ID generation step, the Q ID field values ​​obtained from the Q ID data tables will be spliced ​​as generated. The ID is returned to the calling program. The larger the P is, the more databases are selected, and the more random the Q ID da...

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 relates to the technical field of a distributed system management method, in particular to a digital ID generation method for a distributed system, comprising the following contents: a data table creation step of creating an ID data table in a database; a Data table routing step of randomly selecting an ID data table after receiving a call request generated by the ID; An ID generation step of executing a generation command to the selected ID data table by application; The data table creation step comprises the following steps: 1.creating N ID data tables in the database; 2, creating an ID field in each ID data table; 3, setting that ID field as a self-increasing type, and simultaneously setting the self-increasing step length as N and the initial value of the ID field of theN ID data tables to be sequentially increased by one. The invention provides a digital ID generation method for a distributed system, which can solve the problems that the digital ID generation methodof the prior distributed system can not guarantee the increasing trend, the inquiry efficiency is low, and the multi-concurrency situation can not be handled and the like.

Description

technical field [0001] The invention relates to the technical field of distributed system management methods, in particular to a digital ID generation method for distributed systems. Background technique [0002] In distributed systems, it is often necessary to define corresponding data using a globally unique numeric ID. The basic requirements of this digital ID include the following points: 1. Globally unique; 2. It occupies a relatively small amount, which is convenient for ID storage in DB and convenient for indexing; 3. High performance and high availability. [0003] There are many ways to implement unique digital IDs in distributed systems. The common ones are as follows: [0004] 1. The core idea of ​​the UUID algorithm is to combine the hardware, time and random seed number of the machine to generate a unique digital ID. [0005] 2. Redis-based distributed ID generator: use 41 bits to store time, accurate to milliseconds, and can be used for 41 years; use 12 bits ...

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): G06F16/22G06F16/27G06F16/25
Inventor 王志文
Owner 重庆富民银行股份有限公司