CN113064903B - Global ID generation method, device, equipment and storage medium - Google Patents

Global ID generation method, device, equipment and storage medium Download PDF

Info

Publication number
CN113064903B
CN113064903B CN202110449174.6A CN202110449174A CN113064903B CN 113064903 B CN113064903 B CN 113064903B CN 202110449174 A CN202110449174 A CN 202110449174A CN 113064903 B CN113064903 B CN 113064903B
Authority
CN
China
Prior art keywords
record
value
number segment
specified service
generated
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110449174.6A
Other languages
Chinese (zh)
Other versions
CN113064903A (en
Inventor
钟江
马黎明
黄明远
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiaoma Guoju Yuxi Technology Co ltd
Original Assignee
Xiaoma Guoju Yuxi Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiaoma Guoju Yuxi Technology Co ltd filed Critical Xiaoma Guoju Yuxi Technology Co ltd
Priority to CN202110449174.6A priority Critical patent/CN113064903B/en
Publication of CN113064903A publication Critical patent/CN113064903A/en
Application granted granted Critical
Publication of CN113064903B publication Critical patent/CN113064903B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2228Indexing structures
    • G06F16/2272Management thereof

Abstract

The invention discloses a global ID generation method, a device, equipment and a storage medium, wherein the method comprises the following steps: if the corresponding ID of the designated service needs to be generated, inquiring the corresponding ID record; if the current time is the ID corresponding to the appointed service generated for the first time after the downtime restart, determining the value of the starting value of the next ID number segment in the ID record of the appointed service as the generated ID, and if the current time is not the ID corresponding to the appointed service generated for the first time after the downtime restart, performing self-increasing N operation on the ID number segment in the ID record corresponding to the appointed service to generate the ID; and judging whether the generated ID meets the requirement of ending the single ID number segment, if so, updating the value of the starting value of the next ID number segment in the ID record of the specified service to be the sum of the current value of the starting value of the next ID number segment and the length value of the single ID number segment, and otherwise, determining that the value of the starting value of the next ID number segment in the ID record of the specified service does not need to be updated. Thereby effectively ensuring the global uniqueness of the generated ID.

Description

Global ID generation method, device, equipment and storage medium
Technical Field
The present invention relates to the field of service development technologies, and in particular, to a method, an apparatus, a device, and a storage medium for generating a global ID.
Background
In service development, a large number of scenes need unique IDs (Identity documents) to identify: such as a user requiring a unique ID, a commodity requiring a unique ID, a message requiring a unique ID, an event requiring a unique ID, etc., all of which require a globally unique ID, especially in a complex distributed service scenario, the globally unique ID is more important. However, when the global unique ID is generated in the prior art, if the restart is caused by the downtime, the ID is continuously generated according to the uniform rule, but the method is easily repeated with the ID generated before the downtime, and thus the global unique ID cannot be realized.
Disclosure of Invention
The invention aims to provide a global ID generation method, a device, equipment and a storage medium, which can effectively ensure the global uniqueness of the generated ID.
In order to achieve the above purpose, the invention provides the following technical scheme:
a global ID generation method, comprising:
if the ID corresponding to the specified service needs to be generated, inquiring the corresponding ID record;
if the current time is the ID corresponding to the specified service generated for the first time after the downtime restart, determining the value of the starting value of the next ID number segment in the ID record of the specified service as the generated ID, and if the current time is not the ID corresponding to the specified service generated for the first time after the downtime restart, performing self-increasing N operation on the ID number segment in the ID record corresponding to the specified service to generate the ID;
judging whether the generated ID meets the requirement of ending a single ID number segment, if so, updating the value of the starting value of the next ID number segment in the ID record of the specified service to be the sum of the current value of the starting value of the next ID number segment and the length value of the single ID number segment, and otherwise, determining that the value of the starting value of the next ID number segment in the ID record of the specified service does not need to be updated.
Preferably, querying the corresponding ID record comprises:
querying a corresponding ID record in Redis;
correspondingly, after querying the corresponding ID record, the method further includes:
and if the ID record corresponding to the specified service is inquired in the Redis, executing a step of generating the ID, otherwise, inquiring the ID record corresponding to the specified service in a database, and writing the inquired ID record into the Redis.
Preferably, after querying the corresponding ID record, the method further includes:
and if no corresponding ID record is inquired in the Redis and the database, generating an ID according to a preset rule corresponding to the specified service.
Preferably, generating the ID according to a preset rule corresponding to the specified service includes:
and generating a corresponding ID according to the preset ID prefix and the ID length value of the specified service.
Preferably, the determining whether the generated ID meets the requirement of ending a single ID number segment includes:
and judging whether the generated M bit data values after the ID are respectively in one-to-one correspondence with the M bit data values after the ID of the single ID number segment end.
Preferably, the performing a self-increment N operation on the ID number segment in the ID record corresponding to the specified service to generate an ID includes:
and calling the atomic self-increment instruction of the Redis to perform self-increment N operation on the ID number segment in the ID record corresponding to the specified service so as to generate the ID.
Preferably, querying the database for the ID record corresponding to the specified service includes:
and querying the ID record corresponding to the specified service in the database after double locking.
A global ID generation apparatus, comprising:
a query module to: if the ID corresponding to the specified service needs to be generated, inquiring the corresponding ID record;
a generation module to: if the current ID corresponding to the specified service is generated for the first time after the shutdown restart, determining the value of the starting value of the next ID number segment in the ID record of the specified service as the generated ID, and if the current ID corresponding to the specified service is not generated for the first time after the shutdown restart, performing self-increasing N operation on the ID number segment in the ID record corresponding to the specified service to generate the ID;
an update module to: judging whether the generated ID meets the requirement of ending a single ID number segment, if so, updating the value of the starting value of the next ID number segment in the ID record of the specified service to be the sum of the current value of the starting value of the next ID number segment and the length value of the single ID number segment, and otherwise, determining that the value of the starting value of the next ID number segment in the ID record of the specified service does not need to be updated.
A global ID generation device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the global ID generation method of any of the above when executing the computer program.
A computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the global ID generation method as described in any one of the above.
The invention provides a global ID generation method, a device, equipment and a storage medium, wherein the method comprises the following steps: if the ID corresponding to the specified service needs to be generated, inquiring the corresponding ID record; if the current time is the ID corresponding to the specified service generated for the first time after the downtime restart, determining the value of the starting value of the next ID number segment in the ID record of the specified service as the generated ID, and if the current time is not the ID corresponding to the specified service generated for the first time after the downtime restart, performing self-increasing N operation on the ID number segment in the ID record corresponding to the specified service to generate the ID; judging whether the generated ID meets the requirement of ending a single ID number segment, if so, updating the value of the starting value of the next ID number segment in the ID record of the specified service to be the sum of the current value of the starting value of the next ID number segment and the length value of the single ID number segment, and otherwise, determining that the value of the starting value of the next ID number segment in the ID record of the specified service does not need to be updated. The method includes the steps that corresponding ID records are set for each service, the ID records comprise ID number sections and starting values of next ID number sections, if the currently generated ID is the last ID of the corresponding ID number section, the value of the starting value of the next ID number section corresponding to the currently generated ID is updated to the first ID of the next ID number section, otherwise, the value of the starting value of the next ID number section corresponding to the currently generated ID is not required to be updated, therefore, if the equipment storing the ID records is down, the ID generated before and after the down is prevented from being repeated, the value of the starting value of the next ID number section corresponding to the currently generated ID is directly used as the currently generated ID, if the equipment storing the ID records is not down, the corresponding ID number sections can be directly subjected to self-increasing N operation to generate the ID, the ID generation can still be normally realized after the equipment storing the ID records is down, and the global uniqueness of the generated ID can be effectively ensured.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a global ID generation method according to an embodiment of the present invention;
fig. 2 is an implementation architecture diagram of a global ID generation method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a global ID generation apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, a flowchart of a global ID generation method provided in an embodiment of the present invention is shown, where the method may include:
s11: and if the ID corresponding to the specified service needs to be generated, inquiring the corresponding ID record.
The global ID generation method provided in the embodiments of the present invention may be a corresponding global ID generation apparatus and device, and in the embodiments, the global ID generation apparatus and device may be collectively referred to as an ID generator, and an execution subject of the global ID generation method is specifically described below as the ID generator. The IDs in the embodiment of the application are all global IDs, namely unique IDs; the service types requiring generating the ID are various, such as goods, messages, and the like, corresponding ID records may be maintained in the application for different service types, and the ID records may include IDs of corresponding services and other values of some preset parameters; and a plurality of continuous IDs corresponding to the same service can form an ID number section, that is, all IDs corresponding to the same service can be divided into a plurality of ID number sections, and each ID number section contains at least one ID generated in continuous time. The embodiment of the application can start the ID generating service when the ID corresponding to the specified service needs to be generated, and inquire the ID record corresponding to the specified service.
S12: and if the current time is the ID corresponding to the appointed service generated for the first time after the downtime restart, determining the value of the starting value of the next ID number segment in the ID record of the appointed service as the generated ID, and if the current time is not the ID corresponding to the appointed service generated for the first time after the downtime restart, performing self-increasing N operation on the ID number segment in the ID record corresponding to the appointed service to generate the ID.
N can be set according to the actual situation, such as 1. If the storage device storing the ID record has just been restarted down, in order to avoid the generated ID from being repeated with the ID generated before the storage device was down, in the embodiment of the present application, a parameter, that is, a start value of the next ID number segment, may be set in the ID record. Specifically, after the ID is generated each time, whether the ID is the last ID of the ID number segment to which the ID belongs may be determined, if so, the value of the start value of the corresponding next ID number segment is set to the value of the start value of the current next ID number segment and the value of the length value of the single ID number segment, and then, if the storage device is down, the value of the start value of the next ID number segment is used as the currently generated ID after the storage device is restarted, so that even if at least one ID can be generated between the last ID generated before the storage device is down and the value of the start value of the next ID number segment, the corresponding ID is generated according to the value of the start value of the next ID number segment, thereby effectively avoiding the repeated generation of IDs; if not, the value of the start value of the next ID number segment does not need to be updated. The length value of a single ID number segment is the number of IDs contained in the single ID number segment, and the initial value of the starting value of the next ID number segment corresponding to any specified service is the first ID of the any specified service.
S13: and judging whether the generated ID meets the requirement of ending the single ID number segment, if so, updating the value of the starting value of the next ID number segment in the ID record of the specified service to be the sum of the current value of the starting value of the next ID number segment and the length value of the single ID number segment, and otherwise, determining that the value of the starting value of the next ID number segment in the ID record of the specified service does not need to be updated.
The method includes the steps that corresponding ID records are set for each service, the ID records comprise ID number sections and starting values of next ID number sections, if the current generated ID is the last ID of the ID number section to which the ID records belong, the value of the starting value of the next ID number section corresponding to the current generated ID is updated to be the first ID of the next ID number section, otherwise, the value of the starting value of the next ID number section corresponding to the current generated ID is not required to be updated, therefore, if the equipment storing the ID records is down, the ID records can be directly added with N to generate the ID in order to avoid the repetition of the IDs generated before and after the down, and the corresponding ID number section can be directly used as the current generated ID.
In the global ID generation method provided in the embodiment of the present invention, querying a corresponding ID record specifically may include:
querying a corresponding ID record in Redis;
correspondingly, after querying the corresponding ID record, the method may further include:
and if the ID record corresponding to the specified service is inquired in the Redis, executing the step of generating the ID, otherwise, inquiring the ID record corresponding to the specified service in the database, and writing the inquired ID record into the Redis.
Because the speed of querying information in Redis (Redis is a key-value storage system which supports master-slave synchronization; data can be synchronized from a master server to any number of slave servers) is far faster than the speed of querying information in a database, in order to effectively improve the query speed of ID records, in the embodiment of the application, corresponding ID records can be queried in Redis, if the ID records can be queried, the queried ID records can be directly used for realizing corresponding operations, otherwise, the corresponding ID records are queried in the database (which can be a Mysql database, a DB database and the like), and subsequent operations are performed after the queried ID records are written into Redis.
The global ID generation method provided in the embodiment of the present invention, after querying the corresponding ID record, may further include:
and if the corresponding ID record is not inquired in both the Redis and the database, generating the ID according to a preset rule corresponding to the specified service.
If no corresponding ID record is inquired in both Redis and the database, the first ID of the designated service needs to be generated, generally speaking, a generation rule of the ID corresponding to each type of service can be preset, and then the first ID of the designated service is generated according to the generation rule of the designated service, so that the effective generation of the ID corresponding to the designated service is realized.
Specifically, generating the ID according to a preset rule corresponding to the specified service may include:
and generating a corresponding ID according to the preset ID prefix and the ID length value of the specified service.
The parameters in the ID record can also comprise ID prefixes and ID length values corresponding to the service types, so that the corresponding IDs are generated according to the ID prefixes and the ID length values, and the repeated generation of the IDs among different types of services can be effectively avoided. Wherein, the ID length value is the number of characters contained in the ID.
The global ID generation method provided in the embodiment of the present invention determines whether the generated ID meets the requirement of ending a single ID number segment, and may include:
and judging whether the generated M bit data after the ID has the same value with the M bit data after the ID of the end of a single ID number segment in a one-to-one correspondence mode.
M can be set according to actual needs, such as 3. When judging whether the generated ID meets the requirement of ending the single ID number segment, whether the value of M-bit data after the last ID of the single ID number segment is in one-to-one correspondence with the value of the generated M-bit data after the ID can be predetermined; if N is 1, m is 3, the length value of the single ID number segment is 1000, it may be determined whether the last 3 bits of data of the generated ID is 000, if so, it is determined that the generated ID meets the requirement for the end of the single ID number segment, otherwise, it is determined that the generated ID does not meet the requirement for the end of the single ID number segment, and the last 3 bits of data of the first ID may be 001. Therefore, whether the generated ID is the last ID of the ID number segment can be effectively and simply judged.
The global ID generation method provided in the embodiment of the present invention performs a self-increment N operation on an ID number segment in an ID record corresponding to a specified service to generate an ID, and may include:
calling an atomic self-adding instruction of Redis to perform self-adding N operation on an ID number segment in an ID record corresponding to the specified service so as to generate an ID;
inquiring ID records corresponding to the specified services in a database, wherein the ID records comprise:
and querying the ID record corresponding to the specified service in the database after double locking.
In order to further facilitate the realization of ID generation, the embodiment of the application can realize the self-increment operation of the ID number segment by calling the atomic self-increment instruction of Redis; in addition, the access of the database can be realized only after double locking, and the security of the database can be effectively improved.
In a specific implementation manner, a table structure required by the global ID generation method disclosed by the present application may be as shown in table 1; the serial number prefix is an ID prefix, the serial number length value is an ID length value, and the persistent ID number segment is a value of 3 bits of data behind the last ID of the single ID number segment; specifically, business _ type: the field is unique and is mainly used for determining the service type; business _ prefix (number prefix): a prefix identification for the generated ID; business _ id _ length (number length value): length value for generating the whole ID, the value of this field must be greater than the length value of the numbering prefix; next _ value (next ID number segment value): a start value for the next ID number segment of the ID; persistence _ no (persistent ID number field): "000" is the ID number generated, and it is judged whether or not the ID number is "000".
TABLE 1
Field(s) Function of Type (B) Default value
business_type Type of service varchar
business_prefix Numbering prefix varchar
business_id_length Number length value bigint
next_value Next ID number segment start value bigint
persistence_no Persistent ID number segment varchar 000
The implementation architecture of the global ID generation method disclosed in the present application may be as shown in fig. 2, where service a and service B in fig. 2 are services that need to generate an ID, and correspondingly, the global ID generation method may specifically include:
1> global ID generation service start;
2> inquiring whether the ID record of the specified service exists in Redis;
3, if the ID record in the Redis exists, calling an atomic auto-increment instruction of the Redis to perform auto-increment operation on the ID number segment; if the ID record does not exist in Redis, querying a database after double locking, acquiring the ID record, and writing the ID record into Redis;
judging whether the generated ID accords with the value of a persistent ID number segment or not after the ID is subjected to self-increment operation in Redis, and if so, updating a next _ value field of the service type in the database (for example, if the corresponding value is added on the original basis, the rule is that 1000 IDs are persisted to data once, then 1000 is added on the next _ value field);
5> return the corresponding ID.
It can be seen that the present application has the following advantages: the service is convenient to expand currently and can support most of service scenes; the use is convenient, the required technical components are simple, and only one technical component is required; the algorithm is simple and clear, and the use is simple and convenient; the disaster tolerance is high: i record cache is arranged in the ID generator service, and the service can be normally provided to the outside even if the DB is down for a short time; better efficiency and better concurrency: by adopting a Redis cluster architecture and utilizing the unique single thread working remote of Redis, the safety of requesting to generate the ID under a high concurrency scene is ensured, and the generated ID is ensured not to be repeated by utilizing the unique atom addition characteristic of Redis; by adopting the persistent function of Redis to be matched with the DB, the next ID number segment can be read from the database after the integral shutdown of the Redis is restarted, and the generated ID can not be repeated with the previous ID; the method can be independently deployed in a micro-service mode, provides the generated ID service for the outside, is used for calling all other services in a project, and can also be used as a generating module in a single project, so that the method is flexible and changeable.
An embodiment of the present invention further provides a global ID generation apparatus, as shown in fig. 3, which may include:
a query module 11, configured to: if the ID corresponding to the specified service needs to be generated, inquiring the corresponding ID record;
a generating module 12 for: if the current time is the ID corresponding to the appointed service generated for the first time after the downtime restart, determining the value of the starting value of the next ID number segment in the ID record of the appointed service as the generated ID, and if the current time is not the ID corresponding to the appointed service generated for the first time after the downtime restart, performing self-increasing N operation on the ID number segment in the ID record corresponding to the appointed service to generate the ID;
an update module 13, configured to: and judging whether the generated ID meets the requirement of ending the single ID number segment, if so, updating the value of the starting value of the next ID number segment in the ID record of the specified service to be the sum of the current value of the starting value of the next ID number segment and the length value of the single ID number segment, and otherwise, determining that the value of the starting value of the next ID number segment in the ID record of the specified service does not need to be updated.
An embodiment of the present invention further provides a global ID generation device, which may include:
a memory for storing a computer program;
a processor for implementing the steps of the global ID generation method as described above when executing the computer program.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the global ID generation method are implemented.
It should be noted that for the description of the relevant parts in the global ID generation apparatus, the device and the storage medium provided in the embodiment of the present invention, reference is made to the detailed description of the corresponding parts in the global ID generation method provided in the embodiment of the present invention, and details are not described here again. In addition, parts of the above technical solutions provided in the embodiments of the present invention that are consistent with the implementation principles of the corresponding technical solutions in the prior art are not described in detail, so as to avoid redundant description.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A global ID generation method, comprising:
if the ID corresponding to the specified service needs to be generated, inquiring the corresponding ID record;
if the current ID corresponding to the specified service is generated for the first time after the shutdown restart, determining the value of the starting value of the next ID number segment in the ID record of the specified service as the generated ID, and if the current ID corresponding to the specified service is not generated for the first time after the shutdown restart, performing self-increasing N operation on the ID number segment in the ID record corresponding to the specified service to generate the ID;
judging whether the generated ID meets the requirement of ending a single ID number segment, if so, updating the value of the starting value of the next ID number segment in the ID record of the specified service to be the sum of the current value of the starting value of the next ID number segment and the length value of the single ID number segment, and otherwise, determining that the value of the starting value of the next ID number segment in the ID record of the specified service does not need to be updated.
2. The method of claim 1, wherein querying the corresponding ID record comprises:
querying a corresponding ID record in Redis;
correspondingly, after querying the corresponding ID record, the method further includes:
and if the ID record corresponding to the specified service is inquired in the Redis, executing a step of generating the ID, otherwise, inquiring the ID record corresponding to the specified service in a database, and writing the inquired ID record into the Redis.
3. The method of claim 2, wherein querying the corresponding ID record further comprises:
and if no corresponding ID record is inquired in the Redis and the database, generating an ID according to a preset rule corresponding to the specified service.
4. The method of claim 3, wherein generating the ID according to a preset rule corresponding to the specified service comprises:
and generating a corresponding ID according to the preset ID prefix and the ID length value of the specified service.
5. The method of claim 4, wherein determining whether the generated ID meets a requirement for an end of a single ID number segment comprises:
and judging whether the generated M bit data after the ID has the same value with the M bit data after the ID of the end of a single ID number segment in a one-to-one correspondence mode.
6. The method of claim 5, wherein performing a self-increment N operation on an ID number segment in an ID record corresponding to the specified service to generate an ID comprises:
and calling the atomic self-increment instruction of the Redis to perform self-increment N operation on the ID number segment in the ID record corresponding to the specified service so as to generate the ID.
7. The method of claim 6, wherein querying a database for the ID record corresponding to the specified service comprises:
and querying the ID record corresponding to the specified service in the database after double locking.
8. A global ID generation apparatus, comprising:
a query module to: if the ID corresponding to the specified service needs to be generated, inquiring the corresponding ID record;
a generation module to: if the current time is the ID corresponding to the specified service generated for the first time after the downtime restart, determining the value of the starting value of the next ID number segment in the ID record of the specified service as the generated ID, and if the current time is not the ID corresponding to the specified service generated for the first time after the downtime restart, performing self-increasing N operation on the ID number segment in the ID record corresponding to the specified service to generate the ID;
an update module to: judging whether the generated ID meets the requirement of ending a single ID number segment, if so, updating the value of the starting value of the next ID number segment in the ID record of the specified service to be the sum of the current value of the starting value of the next ID number segment and the length value of the single ID number segment, and otherwise, determining that the value of the starting value of the next ID number segment in the ID record of the specified service does not need to be updated.
9. A global ID generation device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the global ID generation method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the global ID generation method according to any one of claims 1 to 7.
CN202110449174.6A 2021-04-25 2021-04-25 Global ID generation method, device, equipment and storage medium Active CN113064903B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110449174.6A CN113064903B (en) 2021-04-25 2021-04-25 Global ID generation method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110449174.6A CN113064903B (en) 2021-04-25 2021-04-25 Global ID generation method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113064903A CN113064903A (en) 2021-07-02
CN113064903B true CN113064903B (en) 2022-12-13

Family

ID=76567855

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110449174.6A Active CN113064903B (en) 2021-04-25 2021-04-25 Global ID generation method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113064903B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113568891B (en) * 2021-08-05 2024-02-20 深圳墨世科技有限公司 Distributed ID generation method, device, server and readable storage medium
CN114244806B (en) * 2022-02-28 2022-07-29 深圳市城市交通规划设计研究中心股份有限公司 Distributed micro-service system number sending method, computer and storage medium
CN115292314B (en) * 2022-07-28 2023-11-24 上海数禾信息科技有限公司 Sequence number generation method, device, computer equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008122293A (en) * 2006-11-14 2008-05-29 Tokyo Univ Of Science Positioning data generating device, receiving device, program, positioning system, and positioning method
CN106899654A (en) * 2016-08-10 2017-06-27 阿里巴巴集团控股有限公司 A kind of sequence value generation method, apparatus and system
CN106911780A (en) * 2017-02-28 2017-06-30 北京三快在线科技有限公司 Traffic ID generation method, apparatus and system
CN110555078A (en) * 2019-09-02 2019-12-10 上海摩库数据技术有限公司 Distributed ID generation
CN111353773A (en) * 2020-02-24 2020-06-30 网银在线(北京)科技有限公司 Method and device for processing identifier, storage medium and electronic device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008122293A (en) * 2006-11-14 2008-05-29 Tokyo Univ Of Science Positioning data generating device, receiving device, program, positioning system, and positioning method
CN106899654A (en) * 2016-08-10 2017-06-27 阿里巴巴集团控股有限公司 A kind of sequence value generation method, apparatus and system
CN106911780A (en) * 2017-02-28 2017-06-30 北京三快在线科技有限公司 Traffic ID generation method, apparatus and system
CN110555078A (en) * 2019-09-02 2019-12-10 上海摩库数据技术有限公司 Distributed ID generation
CN111353773A (en) * 2020-02-24 2020-06-30 网银在线(北京)科技有限公司 Method and device for processing identifier, storage medium and electronic device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
MILSA: A New Evolutionary Architecture for Scalability, Mobility, and Multihoming in the Future Internet;Jianli Pan et al.;《IEEE Journal on Selected Areas in Communications 》;20100927;第28卷(第8期);1344-1362 *
基于微服务的广告扣费系统设计实现;邱云杰;《中国优秀硕士学位论文全文数据库 (信息科技辑)》;20210415(第4期);I138-110 *

Also Published As

Publication number Publication date
CN113064903A (en) 2021-07-02

Similar Documents

Publication Publication Date Title
CN113064903B (en) Global ID generation method, device, equipment and storage medium
CN107977396B (en) Method and device for updating data table of KeyValue database
CN110555078A (en) Distributed ID generation
CN107193827B (en) Idempotent control method and device for sub-base and sub-table
CN112181306A (en) Method for generating distributed ID (identity) in number segment mode
CN112363979A (en) Distributed index method and system based on graph database
CN105488050A (en) Database multi-index method, apparatus and system
CN113076303A (en) Method and device for generating service identifier in distributed system
CN108694218A (en) A kind of method and apparatus data write-in and read
CN112559558A (en) Serial number generation method and device, computing device and storage medium
CN110968603A (en) Data access method and device
CN113704790A (en) Abnormal log information summarizing method and computer equipment
CN106993022B (en) Identification management method for cluster, identification server and corresponding system
CN111694845A (en) Redis-based identifier generation method and device
US10261949B2 (en) Packed row representation for efficient network serialization with direct column indexing in a network switch
CN103905512A (en) Data processing method and equipment
CN111708835B (en) Block chain data storage method and device
JP6233846B2 (en) Variable-length nonce generation
CN113949658B (en) Table entry processing method, system, device, electronic equipment and storage medium
CN107563942B (en) Logistics data batch processing method, logistics processing system and processing device
CN109741180B (en) Block chain continuous transaction sequence number generation method and device and block chain network node
CN110674220B (en) Data heterogeneous method, device and equipment
CN113312412A (en) Statistical data acquisition method and device, electronic equipment and storage medium
CN113163027A (en) Data identifier generation method, device, equipment and storage medium
CN112925612A (en) Monitoring service static configuration management method based on Kubernetes

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant