Distributed global unique ID application method

An application method and distributed technology, applied in the direction of electrical components, transmission systems, etc., can solve the problem of not having a comprehensive solution.

Inactive Publication Date: 2017-04-19
优赛恒创科技发展(北京)有限公司
View PDF3 Cites 57 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The current existing solutions all have their own

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 global unique ID application method
  • Distributed global unique ID application method
  • Distributed global unique ID application method

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0037] In the present invention, the locally generated string type global unique ID scheme is as follows:

[0038]In order to generate a globally unique ID locally without communication between servers, on the basis of the snowflake scheme, we encode the network card address of the machine into the generated ID to ensure that the same logic is used for unreachable machines Generate ID will not conflict. At the same time, we increase the length of the time field and the machine identification field, which can indicate more time and the number of serial numbers available per unit time. as follows figure 2 As shown, a total of 110 bits (bit) data. The meanings of each field are as follows:

[0039] period

[0040] The first 48 bits record the number of time elapsed since 00:00:00 on January 1, 1970, in milliseconds. 48bit can record more than 8,900 years, that is, it can be marked after 10,000 AD.

[0041] mac address segment

[0042] Store 48bit mac address, each machine...

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 distributed global unique ID application method. For a global unique ID of a string type, the time-friendly global unique ID is locally efficiently generated without a network. For a numerical global unique ID, the numerical, time-friendly global unique ID is acquired from a remote server under network communication. When the numerical global unique ID is generated, the entire service is divided into a server-generated ID machine cluster and a client. The server generates a unique ID machine. Registration is carried out in a MySQL database cluster according to the machine mac address. The unique number of the service machine is acquired. Each server machine generates a unique ID. The client increases cache, and a user request is not perceived. The client and the server carry out data interaction through an HTTP request. According to the invention, the global unique ID is efficiently generated under different ID type demand scenarios.

Description

technical field [0001] The present invention relates to a globally unique ID service in a distributed system, in particular to a distributed system capable of efficiently generating globally unique IDs Background technique [0002] In a distributed system, it is often necessary to define corresponding data using a globally unique ID (GUID). The basic requirements of GUID include the following points: 1. Globally unique; 2. Relatively small occupation, convenient for DB storage and indexing; 3. Time-friendly, convenient for business queries; 4. High performance and high availability. The current existing solutions all have their own problems, and there is no comprehensive solution. [0003] Regarding SnowFlake, since the implementation of the present invention is based on Twitter’s Snowflake solution, let’s first introduce snowflake. In order to meet Twitter’s request for tens of thousands of messages per second, each message must be assigned a unique ID. These IDs also need...

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
IPC IPC(8): H04L29/08H04L29/12
CPCH04L67/02H04L67/10H04L61/45
Inventor 张若飞王浩孟烨
Owner 优赛恒创科技发展(北京)有限公司
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