A globally unique identifier generation method, device, equipment and storage medium

An identifier and unique technology, which is applied in the field of Internet communication, can solve problems such as duplication of globally unique identifiers, and achieve the effect of meeting uniqueness requirements and solving duplication

Active Publication Date: 2021-06-15
TENCENT TECH (SHENZHEN) CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] This application provides a globally unique identifier generation method, device, device and storage medium, which can effectively solve the problem of duplication of globally unique identifiers caused by clock rollback, and meet the uniqueness requirements of globally unique identifiers

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
  • A globally unique identifier generation method, device, equipment and storage medium
  • A globally unique identifier generation method, device, equipment and storage medium
  • A globally unique identifier generation method, device, equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0038] The following will clearly and completely describe the technical solutions in the embodiments of the application with reference to the drawings in the embodiments of the application. Apparently, the described embodiments are only some of the embodiments of the application, not all of them. Based on the embodiments in the present application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present application.

[0039] It should be noted that the terms "first" and "second" in the description and claims of the present application and the above drawings are used to distinguish similar objects, but not necessarily used to describe a specific sequence or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances such that the embodiments of the application described herein can be practiced in sequences other than those illustrated or des...

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 present application discloses a method, device, device, and storage medium for generating a globally unique identifier. The method includes: presetting multiple timelines including one current timeline and at least one rollback timeline, and the time of the current timeline The progress advances with the time of the local clock, and the time progress of the rollback timeline is later than the time progress of the current timeline; when the request for generating the globally unique identifier of the target node is received, the clock state of the local clock is determined, and when the clock state is When the clock rolls back, determine the clock rollback time; when the clock rollback time is greater than or equal to the preset threshold, determine the target rollback timeline; determine the timestamp of the target node according to the time point after the clock rollback; determine the target rollback The identification information of the regression timeline, the node identification and serial number of the target node; the globally unique identifier is generated based on the node identification, serial number, time stamp of the target node and the identification information of the target regression timeline.

Description

technical field [0001] The present application relates to the technical field of Internet communication, and in particular to a method, device, device and storage medium for generating a globally unique identifier. Background technique [0002] A globally unique identifier is a relatively unique code in a certain system. The global consistency of distributed databases, the serialization of parallel operations, and the global recoverability of the system are all inseparable from globally unique identifiers. [0003] In the prior art, the snowflake (snowflake) algorithm is often used to generate a globally unique identifier. The snowflake algorithm uses a 64-bit integer to represent a globally unique identifier, which is divided into symbol bits, timestamps, node identifiers, and serial numbers. Specifically, such as figure 1 As shown, the first bit: 1bit (bit), sign bit, fixed to zero (because there is no unsigned number in some languages ​​or some databases, in order to en...

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): H04L29/12H04J3/06
CPCH04J3/0661H04L61/3015
Inventor 彭诗辉
Owner TENCENT TECH (SHENZHEN) CO LTD
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