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

Distributed serial number generation method and device, computer equipment and storage medium

A serial number generation and distributed technology, applied in the field of electric power, can solve the problem of inability to cross security partitions

Pending Publication Date: 2022-02-18
CHINA SOUTHERN POWER GRID COMPANY
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Based on this, it is necessary to provide a distributed serial number generation method, device, computer equipment, computer-readable storage medium and computer program product that can support cross-security partitions in view of the technical problem that the above-mentioned traditional methods cannot cross security partitions.

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, computer equipment and storage medium
  • Distributed serial number generation method and device, computer equipment and storage medium
  • Distributed serial number generation method and device, computer equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0047] In order to make the purpose, technical solution and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application.

[0048] The distributed serial number generation method provided by the embodiment of this application can be applied to such as figure 1 shown in the application environment. Wherein, the first security partition 120 performs one-way communication with the second security partition 140 through the network. The first security partition 120 includes one or more sub-security partitions, and each sub-security partition includes one or more database tables. The second security partition 140 includes one or more sub-security partitions, and each sub-security partition includes ...

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 a distributed serial number generation method and device, computer equipment, a storage medium and a computer program product. The method comprises the steps of obtaining a database table of a first safety partition, obtaining a first safety partition distributed serial number segment corresponding to the database table according to the database table, obtaining a distributed serial number segment and a number segment distribution threshold value of a second safety partition according to the first safety partition distributed serial number segment, using of the distributed serial number segment of the second safety partition is monitored regularly, the current distributed serial number of the second safety partition is obtained, if the current distributed serial number of the second safety partition exceeds the number segment distribution threshold value, the corresponding distributed serial number segment of the second safety partition and the number segment distribution threshold value are redistributed. By adopting the method, cross-safety partition distributed serial number generation can be supported.

Description

technical field [0001] The present application relates to the field of electric power technology, in particular to a distributed serial number generation method, device, computer equipment, storage medium and computer program product. Background technique [0002] With the development of network technology, enterprise distributed systems have appeared. After the enterprise distributed system is divided into databases and tables, it needs a globally unique distributed serial number to identify the data. At present, the distributed serial number generation methods include: UUID, database self-increment ID, based on database cluster mode, database number segment mode, Redis' incr realizes atomic self-increment and snowflake algorithm. [0003] However, the distributed system of electric power enterprises is deployed in multiple network-isolated security partitions, and the database and Redis (Remote Dictionary Server, remote dictionary service) are independently deployed in dif...

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/27G06F16/25
CPCG06F16/278G06F16/27G06F16/25
Inventor 彭超逸胡亚平聂涌泉顾慧杰
Owner CHINA SOUTHERN POWER GRID COMPANY