Distributed serial number generation method and device

A serial number generation and serial number technology, applied in the computer field, can solve problems such as unsolvable sorting problems, increased computer complexity, and complex environment operation and maintenance

Pending Publication Date: 2020-11-17
北京思特奇信息技术股份有限公司
View PDF0 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In the existing distributed sequence generation methods, some are automatically generated by the sequence number generator that comes with the database, but this method requires the database to need a single database and a single table, which puts a lot of pressure on the database, and some databases do not have The serial number generator, and the method of generating strings in hexadecimal format through UUID, but this method cannot solve the sorting problem, and another method is to generate ID through Redis, although Redis does not depend on the database and is flexible Convenient, but if there is no Redis in the computer, new components need to be installed, increasing the complexity of the computer, and the workload of coding and configuration is relatively large, and the operation and maintenance of multiple environments is very complicated

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0039] In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention. However, the present invention can be implemented in many other ways different from those described here, and those skilled in the art can make similar extensions without violating the connotation of the present invention, so the present invention is not limited by the specific implementations disclosed below.

[0040] Terms used in one or more embodiments of this specification are for the purpose of describing specific embodiments only, and are not intended to limit one or more embodiments of this specification. As used in one or more embodiments of this specification and the appended claims, the singular forms "a", "the", and "the" are also intended to include the plural forms unless the context clearly dictates otherwise. It should also be understood that the term "and / or" used in one or more embodiments of the present specifica...

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 serial number generation method and device, and the method comprises the steps: obtaining configuration parameters in a preset configuration file, wherein the configuration parameters comprise a first maximum serial number and a queue length; according to the first maximum serial number and the queue length, generating a preset number of serial numbers and determining a second maximum serial number, wherein the preset number is the same as the queue length, and the first maximum serial number in the configuration file is updated according to the second maximum serial number; obtaining the target serial number corresponding to the current program call from the preset number of serial numbers in sequence according to the program call times, generating thepreset number of serial numbers once, and selecting the corresponding serial numbers from the generated serial numbers in sequence according to the program call times without updating the configuration file every time; calculation pressure of a computer is reduced, time is saved, and efficiency is improved.

Description

technical field [0001] The invention relates to the computer field, in particular to a method and device for generating a distributed serial number, a computing device and a storage medium. Background technique [0002] With the rapid development of computer technology, more and more software applications are now used in distributed systems. [0003] In the existing distributed sequence generation methods, some are automatically generated by the sequence number generator that comes with the database, but this method requires the database to need a single database and a single table, which puts a lot of pressure on the database, and some databases do not have The serial number generator, and the method of generating strings in hexadecimal format through UUID, but this method cannot solve the sorting problem, and another method is to generate ID through Redis, although Redis does not depend on the database and is flexible It is convenient, but if there is no Redis in the comp...

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): G06F9/445G06F40/126
CPCG06F9/4451G06F40/126
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