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

Orderly sequence number generating method of Zookeeper-based distributed system

A distributed system, ordered sequence technology, used in special data processing applications, instruments, electrical digital data processing, etc.

Active Publication Date: 2015-02-18
FUJIAN YIRONG INFORMATION TECH
View PDF4 Cites 14 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0009] The technical problem to be solved by the present invention is to provide a method for generating ordered serial numbers based on Zookeeper's distributed system, which utilizes the strong data consistency of Zookeeper and the node sequence of persistent sequential nodes, and solves the problem of multiple serial numbers in distributed systems. The problem of sequential serial number generation in the environment of high concurrent request on the server side

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
  • Orderly sequence number generating method of Zookeeper-based distributed system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] see figure 1 As shown, a method for generating an ordered sequence number of a Zookeeper-based distributed system of the present invention, the method specifically includes the following steps:

[0022] Step 10. Create an ordered sequence root node on Zookeeper of the distributed system;

[0023] The step 10 is specifically: pre-create a series of ordered sequence root nodes (eg / abc / sequence / orderNO) on Zookeeper according to the requirements of the distributed system, and the creation method is: through the Zookeeper client tool or calling in the system API (API Application Programming Interface) for the Zookeeper client.

[0024] Step 20. Create a persistent sequence node under the sequence root node;

[0025] The step 20 is specifically: when the sequence number needs to be generated in the system, connect to the server of Zookeeper, create a persistent sequence node under the root node of the sequence sequence, and the last 10 digits of the successfully created n...

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 an orderly sequence number generating method of a Zookeeper-based distributed system. The method comprises the following steps of 1, creating an orderly sequence root node on Zookeeper of the distributed system; 2, creating a lasting sequence node under the orderly sequence root node; 3, obtaining the sequence number of the lasting sequence node; 4, deleting the sequence node corresponding to the front sequence number of the sequence numbers. The generation of the orderly sequence number under a high-subsequent request environment of a multi-service terminal in the distributed system is realized by using data high consistency and the node sequence property of the lasting sequence node of the Zookeeper.

Description

technical field [0001] The invention relates to the technical field of computer software, in particular to a method for generating an ordered serial number of a Zookeeper-based distributed system. Background technique [0002] With the rapid development of computer technology, the current software application system is developing towards distributed application. Some of the original technologies and methods in the distributed system are no longer applicable. In the non-distributed application system, the ordered serial number can be solved only by relying on the mechanism provided by the database system (different database serial numbers are generated and used differently ), and the generation of ordered serial numbers in a distributed system must take into account factors such as high concurrency and multiple server requests, which cannot be satisfied by relying on the mechanism provided by the database system. [0003] The role of the ordered sequence number in the applic...

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/2365
Inventor 倪时龙苏江文池少宁张垚
Owner FUJIAN YIRONG INFORMATION 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