Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Zookeeper-based global sequence generation method and device

A sequence generation device and sequence generation technology are used in database indexing, database distribution/replication, special data processing applications, etc., and can solve problems such as low efficiency and lack of fast response requirements.

Active Publication Date: 2021-04-13
GUANGDONG ESHORE TECH
View PDF9 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Every time a sequence is obtained, it is necessary to access the Zookeeper distributed system and create a new persistent sequence node, which is relatively inefficient and does not meet the requirements of the distributed database for rapid response to the sequence.

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
  • Zookeeper-based global sequence generation method and device
  • Zookeeper-based global sequence generation method and device
  • Zookeeper-based global sequence generation method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0053] 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 part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0054]It should be noted that the descriptions involving "first", "second" and so on in the present invention are only for the purpose of description, and should not be understood as indicating or implying their relative importance or implicitly indicating the quantity of the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include at least one of these features. In addition, the technical s...

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 zookeeper-based global sequence generation method and device. The method includes: allocating multiple sequence generators, and initializing the sequences generated by the sequence generators to specify step size, loading factor, and initial value for each sequence And set a memory queue; obtain the distributed lock of the zookeeper sequence node in the zookeeper distributed system; calculate the step size sequence value of the zookeeper sequence node according to the current value and the step size of the zookeeper sequence node; release the distributed lock of the zookeeper sequence node, Obtain the step sequence value corresponding to the zookeeper sequence node; asynchronously fill the step sequence value into the memory queue of the sequence generator; and select a sequence value from the memory queue as the global sequence, and return the global sequence. The technical solution of the invention can provide a unique global sequence to meet business requirements.

Description

technical field [0001] The invention relates to a database middleware, in particular to a zookeeper-based global sequence generation method and device. Background technique [0002] zookeeper is a distributed, open source distributed application coordination service, an open source implementation of Google's Chubby, and an important component of Hadoop and Hbase. It is a software that provides consistent services for distributed applications. Its functions include: configuration maintenance, domain name service, distributed synchronization, group service, etc. [0003] At present, due to the huge transaction volume of the telecom business system, the distributed database is used as the underlying data storage, so the auto-increment sequence of the database can no longer provide a globally unique sequence. Most of the current distributed auto-increment sequences generate ordered sequences based on Zookeeper's own strong consistency and the sequential characteristics of persi...

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/27
CPCG06F16/22G06F16/27
Inventor 钟小燕廖小文曹建平林宏正
Owner GUANGDONG ESHORE TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products