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

Global sequence generating method and device based on zookeeper

A sequence generation device and sequence generation technology are applied in special data processing applications, instruments, electrical digital data processing, etc., and can solve problems such as low efficiency and failure to meet the requirements of rapid response

Active Publication Date: 2017-10-13
GUANGDONG ESHORE TECH
View PDF9 Cites 9 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
  • Global sequence generating method and device based on zookeeper
  • Global sequence generating method and device based on zookeeper
  • Global sequence generating method and device based on zookeeper

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 global sequence generating method and device based on zookeeper. The method comprises the following steps: distributing a plurality of sequence generators, initializing sequences generated by the sequence generators to assign step lengths, loading factors and initial values for the sequences and setting a memory queue; acquiring distributed locks of zookeeper sequence nodes in a zookeeper distributing system; calculating step length sequence values of the zookeeper sequence nodes according to the current values and the step lengths of the zookeeper sequence nodes; releasing the distributed lock of the zookeeper sequence nodes to obtain step length sequence values which correspond to the zookeeper sequence nodes; asynchronously filling the step length sequence values into the memory queue of the sequence generator; and selecting a sequence value form the memory queue as a global sequence, and returning the global sequence. According to the technical scheme, a unique global sequence can be provided, and business requirements are met.

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 Applications(China)
IPC IPC(8): G06F17/30
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