CN113064903A - Global ID generation method, device, equipment and storage medium - Google Patents
Global ID generation method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN113064903A CN113064903A CN202110449174.6A CN202110449174A CN113064903A CN 113064903 A CN113064903 A CN 113064903A CN 202110449174 A CN202110449174 A CN 202110449174A CN 113064903 A CN113064903 A CN 113064903A
- 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.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/22—Indexing; Data structures therefor; Storage structures
- G06F16/2228—Indexing structures
- G06F16/2272—Management thereof
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
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 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 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; 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. Thereby effectively ensuring the global uniqueness of the generated ID.
Description
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, in the existing technical solution, when the generation of the global unique ID is implemented, if the restart is performed due to the downtime, the ID is continuously generated according to the uniform rule, but this method is easily repeated with the ID generated before the downtime, and thus the global unique of the ID cannot be implemented.
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 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.
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-adding instruction of the Redis to perform self-adding 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 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.
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 application sets corresponding ID record for each service, the ID record includes ID number segment and the starting value of the next ID number segment, if the currently generated ID is the last ID of the ID number segment, the value of the starting value of the next ID number segment corresponding to the currently generated ID is updated to the first ID of the next ID number segment, otherwise, the value of the starting value of the next ID number segment corresponding to the currently generated ID is not required to be updated, so that if the equipment for storing the ID record is down, then directly using the value of the starting value of the corresponding next ID number segment as the currently generated ID in order to avoid the repetition of the generated IDs before and after the downtime, if the device storing the ID record is not down, the self-increasing N operation can be directly carried out on the corresponding ID number section to generate the ID, therefore, the ID generation can still be normally realized after the equipment for 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 according to an embodiment of the present invention is shown, where the method includes:
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 generation 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 may be set according to the actual implementation, such as 1. If the storage device storing the ID record has just been restarted after being down, in order to avoid the generated ID from being repeated with the ID generated before the storage device is down, in the embodiment of the present application, a parameter, that is, a starting 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: 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 application sets corresponding ID record for each service, the ID record includes ID number segment and the starting value of the next ID number segment, if the currently generated ID is the last ID of the ID number segment, the value of the starting value of the next ID number segment corresponding to the currently generated ID is updated to the first ID of the next ID number segment, otherwise, the value of the starting value of the next ID number segment corresponding to the currently generated ID is not required to be updated, so that if the equipment for storing the ID record is down, then directly using the value of the starting value of the corresponding next ID number segment as the currently generated ID in order to avoid the repetition of the generated IDs before and after the downtime, if the device storing the ID record is not down, the self-increasing N operation can be directly carried out on the corresponding ID number section to generate the ID, therefore, the ID generation can still be normally realized after the equipment for storing the ID records is down, and the global uniqueness of the generated ID can be effectively ensured.
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 information query 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 much faster than the speed of information query 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 the queried ID records are written in Redis for subsequent operations.
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, and 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 to which the ID belongs 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 number prefix is an ID prefix, the number length value is an ID length value, and the persistent ID number segment is a value of 3-bit 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 used to determine whether the generated ID tail 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 an ID record of a specified service exists in the 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 in the Redis does not exist, querying the database after double locking to obtain the ID record, and writing the ID record into the Redis;
after ID is executed with self-increment operation in Redis, whether the generated ID accords with the value of a persistent ID number segment or not is judged, and if yes, the next _ value field of the service type in the database is updated (corresponding values are added on the original basis, for example, if the rule is that 1000 IDs are persisted to data once, 1000 is added on the next _ value field);
5> return the corresponding ID.
It can be seen that the following advantages are specified in the present application: 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: an I record cache is arranged in the ID generator service, so that 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: 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.
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 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.
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 the ID number segment in the ID record corresponding to the specified service to generate the ID comprises:
and calling the atomic self-adding instruction of the Redis to perform self-adding 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 as claimed in 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.
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 true CN113064903A (en) | 2021-07-02 |
CN113064903B 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) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113568891A (en) * | 2021-08-05 | 2021-10-29 | 深圳墨世科技有限公司 | Distributed ID generation method, device, server and readable storage medium |
CN114244806A (en) * | 2022-02-28 | 2022-03-25 | 深圳市城市交通规划设计研究中心股份有限公司 | Distributed micro-service system number sending method, computer and storage medium |
CN115292314A (en) * | 2022-07-28 | 2022-11-04 | 上海数禾信息科技有限公司 | Serial number generation method and device, computer equipment and storage medium |
Citations (5)
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 |
-
2021
- 2021-04-25 CN CN202110449174.6A patent/CN113064903B/en active Active
Patent Citations (5)
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)
Title |
---|
JIANLI PAN ET AL.: "MILSA: A New Evolutionary Architecture for Scalability, Mobility, and Multihoming in the Future Internet", 《IEEE JOURNAL ON SELECTED AREAS IN COMMUNICATIONS 》 * |
邱云杰: "基于微服务的广告扣费系统设计实现", 《中国优秀硕士学位论文全文数据库 (信息科技辑)》 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113568891A (en) * | 2021-08-05 | 2021-10-29 | 深圳墨世科技有限公司 | Distributed ID generation method, device, server and readable storage medium |
CN113568891B (en) * | 2021-08-05 | 2024-02-20 | 深圳墨世科技有限公司 | Distributed ID generation method, device, server and readable storage medium |
CN114244806A (en) * | 2022-02-28 | 2022-03-25 | 深圳市城市交通规划设计研究中心股份有限公司 | Distributed micro-service system number sending method, computer and storage medium |
CN115292314A (en) * | 2022-07-28 | 2022-11-04 | 上海数禾信息科技有限公司 | Serial number generation method and device, computer equipment and storage medium |
CN115292314B (en) * | 2022-07-28 | 2023-11-24 | 上海数禾信息科技有限公司 | Sequence number generation method, device, computer equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN113064903B (en) | 2022-12-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113064903B (en) | Global ID generation method, device, equipment and storage medium | |
CN110555078A (en) | Distributed ID generation | |
CN112181306A (en) | Method for generating distributed ID (identity) in number segment mode | |
CN108874946B (en) | ID management method and device | |
CN105900093A (en) | Keyvalue database data table updating method and data table updating device | |
CN108694218A (en) | A kind of method and apparatus data write-in and read | |
CN113076303A (en) | Method and device for generating service identifier in distributed system | |
CN111414424A (en) | Method, system, medium and device for automatically synchronizing redis of configuration data | |
CN106993022B (en) | Identification management method for cluster, identification server and corresponding system | |
CN104598652B (en) | A kind of data base query method and device | |
CN115146002A (en) | Cross-data-center data synchronization method and device | |
CN111694845A (en) | Redis-based identifier generation method and device | |
CN113886455A (en) | Global unique serial number generation method and device, electronic equipment and storage medium | |
CN103905512A (en) | Data processing method and equipment | |
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 | |
CN110674220B (en) | Data heterogeneous method, device and equipment | |
CN109741180B (en) | Block chain continuous transaction sequence number generation method and device and block chain network node | |
CN113032408B (en) | Data processing method, system and equipment | |
CN113312412A (en) | Statistical data acquisition method and device, electronic equipment and storage medium | |
CN112925612A (en) | Monitoring service static configuration management method based on Kubernetes | |
CN113779052A (en) | Data updating method, device, equipment and storage medium | |
CN113449000A (en) | Refreshing device and method for local cache of distributed system | |
CN111930720A (en) | Data tilt processing method, system, electronic device and medium | |
CN107332679B (en) | Centerless information synchronization method and device |
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 |