Self-adaptive global sequence number generation method and device

A serial number and global technology, applied in the field of adaptive global serial number generation methods and devices, can solve the problems of low serial number generation efficiency and inability to effectively respond to dynamically changing request volumes, and achieve high performance, response to request volume fluctuations, and implementation The effect of capacity

Pending Publication Date: 2021-11-12
BANK OF CHINA
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

These methods have the problems of low serial number generation efficiency and inability to effectively cope with dynamically changing request volumes.

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
  • Self-adaptive global sequence number generation method and device
  • Self-adaptive global sequence number generation method and device
  • Self-adaptive global sequence number generation method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0034] In order to make the purposes, technical solutions and advantages of the embodiments of the present invention more clearly understood, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings. Here, the exemplary embodiments of the present invention and their descriptions are used to explain the present invention, but not to limit the present invention.

[0035] The invention belongs to the field of distributed technology. figure 1 A schematic diagram of a method for generating an adaptive global sequence number according to an embodiment of the present invention, such as figure 1 As shown, an embodiment of the present invention provides a method for generating an adaptive global sequence number, which can effectively cope with the dynamically changing request volume while meeting the high-performance generation requirements of the globally unique sequence number, and the method includes:

[0036] St...

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 self-adaptive global sequence number generation method and device, and belongs to the distributed technology, and the method comprises the steps: enabling a request response subprogram to receive a global sequence number obtaining request sent by an external system; calling a global serial number cache management subprogram by a global serial number management subprogram to obtain a global unique serial number and the number of current remaining available serial numbers from the distributed cache; processing the global unique sequence number, and returning the processed global unique sequence number to a requested external system by a request response subprogram; enabling the global serial number management subprogram to asynchronously call a request statistical analysis subprogram to perform statistical analysis on the global serial number acquisition request, and determining a request quantity statistical analysis result; adjusting a cache capacity and a cache threshold value through a cache capacity control subprogram and a global serial number cache management subprogram; according to the number of the current remaining available serial numbers and the cache capacity and the cache threshold value of the distributed cache, loading the global unique serial numbers asynchronously and dynamically to the distributed cache in batches from the database through the global serial number batch management subprogram.

Description

technical field [0001] The invention relates to the technical field of computer data processing, in particular to a method and device for generating an adaptive global sequence number. Background technique [0002] This section is intended to provide a background or context for the embodiments of the invention that are recited in the claims. The descriptions herein are not admitted to be prior art by inclusion in this section. [0003] In a distributed system, there are typical scenarios where a globally unique serial number needs to be generated during a transaction to uniquely identify key objects. Generally speaking, the generation of the globally unique serial number is realized by means of storage such as database and distributed cache during the construction of the system. The uniqueness of the globally unique serial number and the efficiency of generation are two important aspects to measure the quality of the generation method. [0004] At present, the common glob...

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/22G06F16/2458G06F16/2455G06F16/25
CPCG06F16/2291G06F16/2462G06F16/24552G06F16/254
Inventor 郑小虎张顺郑泽奇张鹏鹏
Owner BANK OF CHINA
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