CN112073554A - Global unique identifier generation method, device and computer readable storage medium - Google Patents
Global unique identifier generation method, device and computer readable storage medium Download PDFInfo
- Publication number
- CN112073554A CN112073554A CN202010936028.1A CN202010936028A CN112073554A CN 112073554 A CN112073554 A CN 112073554A CN 202010936028 A CN202010936028 A CN 202010936028A CN 112073554 A CN112073554 A CN 112073554A
- Authority
- CN
- China
- Prior art keywords
- identification
- identifier
- generation process
- working
- service
- 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/30—Managing network names, e.g. use of aliases or nicknames
- H04L61/3015—Name registration, generation or assignment
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/30—Computing systems specially adapted for manufacturing
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The embodiment of the application discloses a global unique identifier generation method, equipment and a computer readable storage medium, wherein the method comprises the following steps: the identification generation process inquires a work identification record table in a relational database, determines an available work identification according to an inquiry result, requests to write the available work identification into the work identification record table in the relational database, stores the available work identification into a global variable of the identification generation process if the available work identification is successfully written into the work identification record table in the relational database, and generates a global unique identification according to the available work identification in the global variable.
Description
Technical Field
The present application relates to the field of internet technologies, and in particular, to a method and an apparatus for generating a global unique identifier, and a computer-readable storage medium.
Background
In a complex system, such as a system for financial, e-commerce, payment, and other products, a large amount of data, such as orders and accounts, needs to be identified, and as the data grows, the need for identifying the data by using a meaningful and ordered serial number as a globally unique ID increases. At present, in the prior art, the work ID is configured manually, but the manual configuration of the work ID has complex steps and high probability of configuration errors, and if the configuration errors of the ID of the work machine between different processes occur, repeated IDs still can be generated.
Disclosure of Invention
The embodiment of the application provides a global unique identifier generation method, global unique identifier generation equipment and a computer readable storage medium, which can ensure the uniqueness of a global identifier.
An aspect of the present application provides a method for generating a global unique identifier, including:
the identification generation process inquires a working identification record table in the relational database and determines an available working identification according to an inquiry result;
the identification generation process requests to write the available working identification into a working identification record table in the relational database;
if the available working identifier is successfully written into the working identifier record table in the relational database, the identifier generation process stores the available working identifier into a global variable of the identifier generation process;
and the identification generation process generates a global unique identification according to the available working identification in the global variable.
If writing the available working identifier into the working identifier record table in the relational database fails, the identifier generation process inquires the working identifier record table in the relational database again, and determines the available working identifier again according to the inquiry result.
If no available working identification is determined according to the query result, requesting a configuration center for identification generation process service states respectively corresponding to all process service addresses recorded in the configuration center, and determining that the current service state is an unavailable first identification generation process;
and saving the work identifier occupied in the first identifier generation process with the service state being unavailable as an available work identifier into a global variable of the identifier generation process.
Before the identifier generation process generates the globally unique identifier according to the global variable, the method further includes:
if the available working identifier is successfully written into the working identifier record table in the relational database, the identifier generation process sends a service registration request to a configuration center, wherein the service registration request carries a process service address, the service registration request is used for requesting the configuration center to record a process service address of the identifier generation process, and the process service address is used for accessing the identifier generation process;
wherein, the process of generating the global unique identifier according to the available working identifier in the global variable includes:
and the identification generation process receives a service identification request sent by a service process according to the process service address recorded by the configuration center, generates a global unique identification according to the available work identification in the global variable, and returns the generated global unique identification to the service process.
The process of generating the identifier receives a service identifier request sent by a service process according to the process service address recorded by the configuration center, and the method comprises the following steps:
the process service address is obtained from the configuration center after the business process sends a service identification request to the configuration center.
The service identifier request is forwarded to the identifier generation process by the configuration center according to the process service address recorded by the configuration center after receiving the service identifier request sent by the service process.
An aspect of an embodiment of the present application provides a global unique identifier generating apparatus, including:
the identification query module is used for querying a working identification record table in the relational database through an identification generation process;
the identification determining module is used for determining available working identifications according to the query result of the identification querying module;
an identifier writing module, configured to write the available working identifier determined by the identifier determining module into a working identifier record table in the relational database through an identifier generation process request;
an identifier saving module, configured to, when the identifier writing module successfully writes the available working identifier into the working identifier record table in the relational database, if the available working identifier is successfully written into the working identifier record table, save the available working identifier into a global variable of the identifier generating process by the identifier generating process;
an identifier registration module, configured to send a service registration request to a configuration center by using the identifier generation process, where the service registration request carries a process service address, the service registration request is used to request the configuration center to record a process service address of the identifier generation process, and the process service address is used to access the identifier generation process;
and the identification generation module is used for generating a global unique identification by the identification generation process according to the available working identification in the global variable.
Wherein, the above-mentioned mark inquiry module includes:
the first query unit is used for traversing the generation process from 0 to 4095 to query a working identification record table in the relational database;
the second query unit is used for randomly querying a working identification record table in the relational database from 0 to 4095 in the identification generation process;
and the third query unit is used for traversing the working identification record table in the query relational database from 4095 to 0 in the identification generation process.
Wherein, the identification determining module comprises:
the first determining unit is used for determining an available working identifier according to a query result, wherein the query result is a working identifier set which is not recorded in a working identifier record table;
a second determining unit, configured to, if writing of the available working identifier into the working identifier record table in the relational database fails, re-query the working identifier record table in the relational database by the identifier generation process, and re-determine the available working identifier according to a query result;
and a third determining unit, configured to, if it is determined that there is no available working identifier according to the query result, request the configuration center to access identifier generation processes corresponding to all process service addresses recorded by the configuration center, and determine the first identifier generation process whose current service state is unavailable.
Wherein, the above-mentioned sign saves the module to include:
a first storing unit, configured to, if the available work identifier is successfully written into the work identifier record table in the relational database, store the available work identifier in a global variable of the identifier generating process by the identifier generating process;
and the second storage unit is used for storing the work identifier occupied by the first identifier generation process as an available work identifier into the global variable of the identifier generation process after determining that the current service state is the unavailable first identifier generation process.
Wherein, the identification generation module comprises:
a request receiving unit, configured to receive, by the identifier generation process, a service identifier request sent by a service process according to the process service address recorded by the configuration center;
a request forwarding unit, configured to, after receiving a service identifier request sent by the service process, the configuration center forwards the service identifier request to the identifier generation process according to the process service address recorded by the configuration center;
and the identification returning unit is used for generating a global unique identification by the identification generating process according to the available working identification in the global variable and returning the generated global unique identification to the business process.
One aspect of the present application provides a computer device, comprising: a processor, a memory, a network interface;
the processor is connected to the memory and the network interface, wherein the network interface is used for providing a data communication function, the memory is used for storing a computer program, and the processor is used for calling the computer program to execute the method in the embodiment of the present application.
An aspect of the embodiments of the present application provides a computer-readable storage medium, in which a computer program is stored, where the computer program includes program instructions, and the program instructions, when executed by a processor, perform the method in the embodiments of the present application.
An aspect of the embodiments of the present application provides a computer program product or a computer program, where the computer program product or the computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium, and a processor of a computer device reads the computer instructions from the computer-readable storage medium, and executes the computer instructions, so that the computer device executes the method in the embodiments of the present application.
According to the method and the device, the record table of the preset recording work identification in the relational database is inquired through the identification generation process, the available work identification is determined from the work identification record table, and the available work identification is the corresponding work identification which is not written into the work identification record table. If the available working identifier is not included in the relational database, which indicates that no identifier generation process occupies the available working identifier at present, the available working identifier is written into a record table of a preset record working identifier in the relational database and is stored in a global variable of the identifier generation process, and the identifier generation process calls the available working identifier stored in the global variable to generate a global unique identifier. The uniqueness of the available working identification can be ensured by utilizing the process, so that the uniqueness problem of the generated global identification is solved, and the repetition of the global identification caused by manual configuration operation is avoided.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
FIG. 1 is a system architecture diagram according to an embodiment of the present application;
fig. 2 is a schematic flowchart of generating a globally unique identifier according to an embodiment of the present disclosure;
FIG. 3 is a data base structure of a globally unique identifier generated by an embodiment of the present application;
fig. 4 is a schematic flowchart of generating a globally unique identifier according to an embodiment of the present disclosure;
fig. 5 is a schematic flowchart of generating a globally unique identifier according to an embodiment of the present disclosure;
fig. 6 is a schematic flowchart of generating a globally unique identifier according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of a globally unique identifier generating apparatus according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below in a clear and complete manner with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all 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 application.
Artificial Intelligence (AI) is a theory, method, technique and application system that uses a digital computer or a machine controlled by a digital computer to simulate, extend and expand human Intelligence, perceive the environment, acquire knowledge and use the knowledge to obtain the best results. In other words, artificial intelligence is a comprehensive technique of computer science that attempts to understand the essence of intelligence and produce a new intelligent machine that can react in a manner similar to human intelligence. Artificial intelligence is the research of the design principle and the realization method of various intelligent machines, so that the machines have the functions of perception, reasoning and decision making. The artificial intelligence technology is a comprehensive subject and relates to the field of extensive technology, namely the technology of a hardware level and the technology of a software level. The artificial intelligence infrastructure generally includes technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technologies, operation/interaction systems, mechatronics, and the like. The artificial intelligence software technology mainly comprises a computer vision technology, a voice processing technology, a natural language processing technology, machine learning/deep learning and the like.
Natural language processing is an important direction in the fields of computer science and artificial intelligence. It studies various theories and methods that enable effective communication between people and computers using natural language. Natural language processing is a science integrating linguistics, computer science and mathematics. Therefore, the research in this field will involve natural language, i.e. the language that people use everyday, so it is closely related to the research of linguistics. Natural language processing techniques typically include text processing, semantic understanding, machine translation, robotic question and answer, knowledge mapping, and the like.
The scheme provided by the embodiment of the present application relates to technologies such as an artificial intelligence natural language processing technology, and is specifically described by the following embodiment, please refer to fig. 1, where fig. 1 is an architectural schematic diagram of a global unique identifier generating system provided by the embodiment of the present application. As shown in fig. 1, the globally unique identifier generating system in the present application may include a plurality of identifier generating processes 10a and a relational database 10 b.
The global unique identifier generating system in fig. 1 may include a plurality of identifier generating processes 10a, each of which is configured to generate different global unique identifiers, when the identifier generating process 10a needs to determine an available working identifier, a table in the relational database 10b, in which the working identifier is preset, is queried until an available working identifier is determined, the identifier generating process 10a requests to write the available working identifier into the working identifier record table in the relational database 10b, and if the writing of the available working identifier into the working identifier record table in the relational database 10b is successful, the identifier generating process 10a stores the available working identifier into a global variable of the identifier generating process. In an alternative embodiment of the present application, the identifier generation process 10a generates a 64-bit global identifier by using snowflake algorithm, which includes: in an optional embodiment of the present application, the identifier generation process 10a calls the working identifier stored in the global variable to generate a globally unique identifier by using a snowflake algorithm, and returns the identifier to the service process 10d in the terminal.
In an optional embodiment of the present application, when the identifier generation process 10a needs to determine an available working identifier, the table of the preset recording working identifiers in table 1 is queried until determining an available working identifier, as shown in table 1, which is an example of a preset recording working identifier recording table:
TABLE 1
The query process comprises the following steps: and traversing the query or randomly querying a work identification record table in the database from 0 to 4095, wherein the traversing query comprises sequential traversal and reverse traversal, if a work identification which is not written into the table is queried, the identification is determined as an available work identification, and the available work identification is written into the work identification record table in the relational database. Due to the strong ACID principle of the relational database, data consistency can be kept in the relational database, original consistency constraint of the database cannot be changed by operation of transactions, the transactions cannot be influenced mutually, and once the transactions are submitted, the modifications made can be permanently stored in the data. Optionally, the numeric value range of the working identifier of the preset record may be greater than or equal to 0 and less than or equal to 4096, the data type may be smallnt, the smallnt type is an accurate numeric data type, the accuracy of the numeric data type is not changed after the arithmetic operation, the signed numeric value range is-32768 to 32767, the unsigned numeric value range is 0 to 65535, and the field in the table is the working identifier recorded by the user.
In an optional embodiment, the globally unique identifier generating system may further include a configuration center 10c as shown in fig. 1, where the configuration center 10c is configured to record a process service address of a pre-registered identifier generating process, and the process service address may be, for example, "http:// 192.168.10.2: 8080". Specifically, the configuration center 10c may record the process service address for the identifier generating process after receiving a service registration request sent by the identifier generating process 10a, where the service registration request carries the process service address. Further optionally, the configuration center 10c may be further configured to forward the service identifier request sent by the service process 10d to the identifier generation process 10a, or after the configuration center 10c receives the service identifier request sent by the service process 10d, the configuration center 10c returns a process service address to the service process 10d, the service process 10d sends the process service address to the corresponding identifier generation process 10a, and the corresponding identifier generation process 10a generates the globally unique identifier.
In an alternative embodiment of the present application, the configuration center 10c may be a Consul configuration center, ZooKeeper, etc., where Consul is a service grid (TCP/IP between micro services, responsible for network invocation, current limiting, fusing, and monitoring between services) solution; the ZooKeeper is a distributed application program coordination service, and is software for providing a consistency service for distributed applications.
The service process 10d in fig. 1 is configured to send a service identifier request, the service process 10d sends the service identifier request to the configuration center 10c, when the configuration center 10c receives the service identifier request sent by the service process 10d, the configuration center 10c returns a process service address to the service process 10d, the service process 10d sends a service identifier to the corresponding identifier generation process 10a according to the process service address, and the corresponding identifier generation process 10a generates a globally unique identifier; or, after receiving the service identifier request sent by the service process 10d, the configuration center 10c forwards the service identifier request to the corresponding identifier generation process 10a according to the recorded process service address. The service process 10d sending the service identification request may be, for example: and the short video process sends a unique identification request for uploading the video to the short video server, and the third-party payment process sends a unique identification request for paying the bill to the third-party payment server.
The business process 10d in the optional embodiment Of the present application may be a business process Of any terminal application, where the terminal may include a mobile phone, a tablet computer, a notebook computer, a palm computer, an intelligent sound, a Mobile Internet Device (MID), a POS (Point Of sale) machine, a wearable device (e.g., a smart watch, a smart bracelet, etc.), and the like, but is not limited thereto, and the application may be a short video application, a third party payment application, and the like, but is not limited thereto; in alternative embodiments of the present application, the plurality of identity generation processes 10a, the configuration center 10c and the relational database 10b may be part of the same server, optionally, the N identifier generation processes 10a, the configuration center 10c, and the relational database 10b may also be distributed in different servers, the server can be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as cloud service, cloud database, cloud computing, cloud function, cloud storage, network service, cloud communication, middleware service, domain name service, security service, CDN, big data and artificial intelligence platform, etc., it is understood that the methods provided by the embodiments of the present application may be performed by a computer device, including but not limited to a terminal or a server.
Fig. 2 is a schematic flowchart of generating a globally unique identifier according to an embodiment of the present application. As shown in fig. 2, the global unique identifier generation process includes the following steps:
step S101, the identification generation process inquires a work identification record table in a relational database, and determines an available work identification according to the inquiry result.
When the identifier generation process needs to determine an available working identifier, the table of the preset recorded working identifier in table 1 is queried until an available working identifier is determined, wherein the querying process is as follows: and traversing the query or randomly querying a working identification record table in the relational database from 0 to 4095, wherein the traversing query comprises sequential traversal and reverse traversal, and if a working identification which is not written into the table is queried, determining the identification as an available working identification.
Step S102, the identification generation process requests to write the available working identification into the working identification record table in the relational database.
And sending an identifier writing request to a relational database by an identifier generating process, receiving the request for writing the available working identifier into a working identifier recording table by the relational database, and judging whether the identifier writing requests of other identifier generating processes carry the same available working identifier or not at the same time, wherein the identifier writing request carries the available working identifier determined by the identifier generating process through traversing and inquiring the working identifier recording table in the relational database.
Specifically, the snowfall process sends an identifier writing request to the relational database MySQL, and the relational database MySQL judges whether other snowfall processes write the corresponding work identifiers of 6 into the work identifier record table.
Step S103, if the available working identifier determined by the identifier generation process fails to be written into the working identifier record table in the relational database, step S101 is executed, and if the available working identifier determined by the identifier generation process succeeds to be written into the working identifier record table in the relational database, step S104 is executed.
When the identification generation process determines the available working identification and sends an identification writing request to the relational database, and the relational database receives the request of writing the available working identification into the working identification record table, the relational database judges that other identification generation processes request to write the same working identification into the working identification record table, the writing into the working identification record table fails due to the conflict of the main key, the relational database returns the prompt information of the writing failure request to the identification generation process, and the identification generation process returns to execute the identification generation process to inquire the working identification record table in the relational database after receiving the prompt information, and determines the available working identification according to the inquiry result. When the identification generation process determines an available working identification and sends an identification writing request to the relational database, and the relational database receives the request of writing the available working identification into the working identification record table, the relational database judges that no other identification generation process requests to write the same working identification into the working identification record table, the available working identification carried by the writing request sent by the identification generation process is written into the working identification record table in the relational database, and the prompt information of successful writing into the record table is returned to the identification generation process.
And step S104, if the available work identification is successfully written into the work identification record table in the relational database, the identification generation process stores the available work identification into the global variable of the identification generation process.
If the identifier generation process determines the available working identifier, and the relational database determines that no other identifier generation process writes the available working identifier at the same time, and successfully writes the available working identifier into the working identifier record table, the identifier generation process stores the available working identifier into the global variable of the identifier generation process, which is because the global variable can be referred by all objects or functions of the process.
And step S105, the identification generation process generates a global unique identification according to the available working identification in the global variable.
Calling the 10-bit available working identification stored in the global variable of the identification generation process by the identification generation process to generate 64-bit global unique identification.
Specifically, in an alternative embodiment, a snowflake algorithm is used by the snowflake process to call the 10-bit available work identifier stored in the global variable of the snowflake process to generate a 64-bit global unique identifier, where the basic structure of the data is as shown in fig. 3, and the 64-bit global unique identifier generated by the snowflake algorithm includes: 1bit reserved bit, the highest bit in binary system is sign bit, 1 represents negative number, 0 represents positive number, the generated mark is generally integer, so the highest bit isThe bit is fixed to 0; a second part: 41 bits is a time stamp for recording a time stamp in the order of milliseconds, and if only a positive integer is expressed (the positive number in a computer contains 0), the numerical value range that can be expressed is 0 to 2411, minus 1, because the representable value range is from 0 instead of 1, i.e. 41 bits can represent 241-a value of 1 millisecond, converted to 69 years in a unit year; and a third part: 5-digit datacentrID, 5-digit worerID and 10-bit work machine identification, wherein the work machine identification is used for recording the work machine identification and can be deployed at 1024 nodes, and the maximum positive integer which can be represented by 10 bits is 210-1, 4095, to represent a different dateterid or workerId; the fourth part: the 12-bit serial number is used for recording different identifiers generated in the same millisecond, and the maximum positive integer which can be represented by the 12-bit serial number is 4095, namely 4095 identifiers generated in the same millisecond time section of the same machine can be represented by 4095 numbers of 0, 1, 2, 3,.
According to the method and the device, the record table of the preset recording work identification in the relational database is inquired through the identification generation process, the available work identification is determined from the work identification record table, and the available work identification is the corresponding work identification which is not written into the work identification record table. If the available working identifier is not included in the relational database, which indicates that no identifier generation process occupies the available working identifier at present, the available working identifier is written into a record table of a preset record working identifier in the relational database and is stored in a global variable of the identifier generation process, and the identifier generation process calls the available working identifier stored in the global variable to generate a global unique identifier. The uniqueness of the available working identification can be ensured by utilizing the process, so that the uniqueness problem of the generated global identification is solved, and the repeatability problem of the global identification caused by manual configuration operation is avoided.
Further, please refer to fig. 4, where fig. 4 is a schematic flowchart of a method for generating a global unique identifier according to an embodiment of the present application. As shown in fig. 4, the global unique identifier generation process includes the following steps:
step S201, the identification generation process inquires a work identification record table in the relational database, and determines an available work identification according to the inquiry result.
Specifically, step S201 may refer to step S101 shown in fig. 2 in the alternative embodiment, and is not described herein again.
Step S202, the identifier generation process determines whether the available working identifier can be determined by querying the table in the relational database, if the available working identifier can be determined, step S203 is executed, and if the available working identifier cannot be determined, step S205 is executed.
When the identifier generation process completes the traversal or random query of the working identifier record table in the relational database, it is found that the corresponding working identifiers in all the value ranges from 0 to 4095 have been written into the working identifier record table in the relational database, and at this time, an available working identifier cannot be determined, and step S205 is executed. And if the identification generation process successfully determines a working identification record table which is not written into the relational database after the working identification record table in the relational database is searched through traversal or random query, the working identification is used as an available working identification.
Specifically, in an optional embodiment of the present application, the working identifier record table in the relational database may also be table 2:
TABLE 2
Working sign | Type (B) | Value taking |
0000000001 | Smallint | 1 |
0000000010 | Smallint | 2 |
0000000011 | Smallint | 3 |
00000000100 | Smallint | 4 |
0000000101 | Smallint | 5 |
... | Smallint | ... |
... | Smallint | ... |
1111111111 | Smallint | 4095 |
As shown in table 2, if the corresponding working identifiers in all the value ranges from 0 to 4095 have been written into the working identifier record table in the relational database, the identifier generation process cannot determine an available working identifier, and step S205 is executed.
Step S203, the identifier generation process requests to write the available working identifier into the working identifier record table in the relational database.
Specifically, step S203 may refer to step S102 in the alternative embodiment shown in fig. 2, and is not described herein again.
Step S204, if the available working identifier determined by the identifier generation process fails to be written into the working identifier record table in the relational database, step S201 is executed, and if the available working identifier determined by the identifier generation process succeeds to be written into the working identifier record table in the relational database, step S207 is executed.
Specifically, step S204 is described in step S103 shown in fig. 2, and can achieve the same or similar beneficial effects, and is not repeated herein.
Step S205, the identifier generation process requests the configuration center for all process service addresses recorded in the configuration center, and determines that the current service state is the unavailable first identifier generation process by accessing the process service addresses.
When the identity generation process queries the working identity record table in the relational database and all values in the range of 0 to 4095 have been written to the working identity record table, the available working identity cannot be determined, at which point the identity generation process sends a request for a process service address to the configuration center, by accessing all the above process service addresses, optional examples are "http: a/192.168.10.2: 8080/snowflash ", an identifier generation process for determining that the current service state is unavailable, the service state is the service state of the identification generation process corresponding to all the process service addresses recorded in the configuration center, the identification generation process of which the current service state is unavailable is determined, if the first identifier generation process cannot be successfully accessed by accessing the identifier generation process corresponding to the process service address, the first identifier generation process is an identifier generation process whose current service state is unavailable.
Step S206, saving the working identifier occupied by the first identifier generating process as an available working identifier to the global variable of the identifier generating process.
And after the second identifier generation process accesses all the process service addresses, comparing the work identifier occupied by the successfully accessed identifier generation process with all the work identifiers recorded in the work identifier record table in the relational database, determining a work identifier which is written into the work identifier record table and is not successfully accessed by the corresponding first identifier generation process, generating the work identifier occupied by the process by using the first identifier through the second identifier generation process to provide services, and storing the work identifier into the global variable of the identifier generation process.
Step S207, the identifier generation process saves the available working identifier successfully written into the working identifier record table in the relational database to the global variable of the identifier generation process.
Specifically, step S207 may refer to step S104 shown in fig. 2 in the alternative embodiment, and is not described herein again.
And step S208, the identification generation process generates a global unique identification according to the available work identification in the global variable.
Specifically, step S208 may refer to step S105 shown in fig. 2 in the alternative embodiment, and is not described herein again.
In the embodiment of the application, a record table of preset recording work identifiers in a relational database is queried through an identifier generation process, and available work identifiers are determined from the work identifier record table, where the available work identifiers are corresponding work identifiers which are not written into the work identifier record table within a value range, the value range is greater than or equal to 0 and less than 4096, and the record table of the preset recording work identifiers in the relational database includes state information of occupied work identifiers, such as data types and data descriptions of work machine identifiers. If the identification generation process finishes querying the values corresponding to all the work identifications in the value range recorded by the work identification record table, the available work identifications cannot be determined, the identification generation process requests all process service addresses recorded in the configuration center from the configuration center, determines a first identification generation process with the current service state being unavailable by accessing the process service addresses, stores the work identifications occupied by the first identification generation process as the available work identifications into the global variables of the identification generation process, and finally generates global unique identifications by the identification generation process according to the available work identifications in the global variables. By the method, the unavailable identification corresponding to the process service address recorded by the configuration center can be used to generate the work identification occupied by the process to provide service for the outside, and the uniqueness of the global identification is ensured.
Further, please refer to fig. 5, where fig. 5 is a schematic flowchart of a method for generating a global unique identifier according to an embodiment of the present application. As shown in fig. 5, the global unique identifier generation process includes the following steps:
step S301, the identification generation process queries a working identification record table in the relational database, and determines an available working identification according to the query result.
Specifically, step S301 may refer to step S101 shown in fig. 2 in the alternative embodiment, and is not described herein again.
Step S302, the identifier generation process requests to write the available working identifier into the working identifier record table in the relational database.
Specifically, step S302 may refer to step S101 shown in fig. 2 in the alternative embodiment, and is not described herein again.
Step S303, the relational database returns the prompt information of successful writing to the identification generation process.
When the identification generation process determines an available working identification and sends an identification writing request to the relational database, and the relational database receives the request of writing the available working identification into the working identification record table, the relational database judges that no other identification generation process requests to write the same working identification into the working identification record table, the available working identification carried by the writing request sent by the identification generation process is written into the working identification record table in the relational database, and the prompt information of successful writing into the record table is returned to the identification generation process.
Step S304, if the available working identification is successfully written into the working identification record table in the relational database, the identification generation process sends a service registration request to the configuration center.
And if the identification generation process successfully determines the available working identification through the query table and successfully writes the available working identification into the working identification record table in the relational database, the identification generation process sends a service registration request to the configuration center, wherein the service registration request is used for requesting the configuration center to record a process service address corresponding to the identification generation process. Specifically, in an alternative embodiment of the present application, the configuration center may be Consul, and the Consul is a service grid (TCP/IP between micro services, which is responsible for network invocation, current limiting, fusing, and monitoring between services) solution, and in the alternative embodiment of the present application, the Consul is used for recording a process service address registered in the configuration center.
Step S305, saving the available work identifier to a global variable of the identifier generation process.
Specifically, step S305 may refer to step S104 shown in fig. 2 in the alternative embodiment, and is not described herein again.
Step S306, the business process sends a process service address request to the configuration center.
The business process sends a process service address request to the configuration center, aiming at obtaining a process service address corresponding to the identification generation process recorded in the configuration center, accessing the corresponding identification generation process according to the process service address, and sending the business identification request to the identification generation process according to the process service address.
Specifically, the method provided in the optional embodiment of the present application may be executed by a server and a terminal together, and optionally, the application service process in the terminal may be a short video process, and the configuration center in the server may be a consul, and the short video process sends a process service address request to the configuration center consul in the server.
Step S307, the configuration center returns a process service address to the business process.
And the configuration center randomly distributes the process service address to the business process according to the process service address registered by the identification generation process.
Step S308, the business process sends a business identification request to the corresponding identification generation process according to the received process service address.
Specifically, the method provided in the optional embodiment of the present application may be executed by a server and a terminal together, and optionally, the application service process in the terminal may be a short video process, the identifier generation process in the server may be a snowfall process, and the service process sends a service identifier request to the corresponding identifier generation process according to the received process service address, and may send a unique identifier request for uploading a video to the snowfall process in the server for the short video process in the terminal.
In step S309, the identifier generation process generates a global unique identifier according to the available working identifier stored in the global variable.
Specifically, step S309 may refer to step S105 shown in fig. 2 in the alternative embodiment, and is not described herein again.
Step S310, the identification generation process returns the global unique identification generated according to the available work identification in the global variable to the business process.
Specifically, in an optional embodiment of the present application, the method may return the generated global unique identifier to the short video process in the terminal for the snowfly process in the server.
As can be seen from the above, in the embodiment of the present application, the process service address is registered in the configuration center, and different business processes send the business identifier request to different identifier generation processes according to the process service address, so as to further ensure the uniqueness of the global identifier generated by the identifier generation process after receiving the business identifier request and returned to the business process.
Further, please refer to fig. 6, where fig. 6 is a schematic flowchart of a method for generating a global unique identifier according to an embodiment of the present application. As shown in fig. 6, the global unique identifier generation process includes the following steps:
steps S401 to S405 can refer to steps S301 to S304 shown in the alternative embodiment of fig. 5, and are not described herein again.
Step S406, the service process sends a service identification request to the configuration center.
Specifically, the method provided in the optional embodiment of the present application may be executed by a server and a terminal together, and optionally, a service process (e.g., a third party payment process) in the terminal sends a service identification request to a configuration center (e.g., consul) in the server, where the service identification request may be a unique identification request for paying a bill, and the configuration center consul in the server receives the unique identification request for paying the bill.
Step S407, the configuration center forwards the service identifier request to the corresponding identifier generation process according to the recorded process service address.
And after receiving the service identification request, the configuration center randomly allocates the process service address, and forwards the service identification request to a corresponding identification generation process according to the allocated process service address.
Steps S408 to S409, and steps S309 to S310 shown in fig. 5 have already been described in detail, and can achieve the same or similar beneficial effects, and are not described herein again.
Therefore, the method improves the efficiency of the terminal for receiving the global unique identifier returned by the server, and the process service address is registered in the configuration center, and different business processes send business identifier requests to different identifier generation processes according to the process service address, so that the uniqueness of the global identifier generated and returned to the business process after the identifier generation process receives the business identifier requests is further ensured, and manual configuration is not needed.
Further, please refer to fig. 7, where fig. 7 is a schematic structural diagram of a global unique identifier generating apparatus according to an embodiment of the present application. The global unique identifier generating means may be a computer program (including program code) running in the computer device, for example, the global unique identifier generating means is an application software; the apparatus may be used to perform the corresponding steps in the methods provided by the embodiments of the present application. As shown in fig. 7, the globally unique identifier generating apparatus 1 may include: an identity query module 11 and an identity determination module 12.
The identification query module 11 is used for querying a working identification record table in the relational database through an identification generation process;
an identifier determining module 12, configured to determine an available working identifier according to a query result of the identifier querying module;
the specific functional implementation manners of the identifier querying module 11 and the identifier determining module 12 may refer to steps S101 to S104 in the embodiment corresponding to fig. 2, which is not described herein again.
Referring again to fig. 7, the globally unique identifier generating apparatus 1 may further include: an identity writing module 13 and an identity preserving module 14.
An identifier writing module 13, configured to write the available working identifier determined by the identifier determining module into a working identifier record table in the database through an identifier generation process request;
and an identifier saving module 14, configured to, when the identifier writing module successfully writes the available working identifier into the working identifier record table in the database, save the available working identifier into a global variable of the identifier generating process through the identifier generating process.
The specific functional implementation manner of the identifier writing module 13 and the identifier saving module 14 may refer to step S102 in the embodiment corresponding to fig. 2, which is not described herein again.
Referring back to fig. 7, the globally unique identifier generating means may further include an identifier registering module 15 and an identifier generating module 16.
An identifier registration module 15, configured to send a service registration request to a configuration center by the identifier generation process, where the service registration request carries a process service address, the service registration request is used to request the configuration center to record a process service address of the identifier generation process, and the process service address is used to access the identifier generation process;
and the identification generation module 16 is configured to generate a globally unique identification according to the available working identification in the global variable through the identification generation process.
The specific functional implementation manner of the identifier saving module 15 and the identifier generating module 16 may refer to step S103 in the embodiment corresponding to fig. 2, which is not described herein again.
Referring to fig. 7, the identification query module 11 may include: a first querying unit 111, a second querying unit 112 and a third querying unit 113.
The first query unit 111 is used for identifying that the generation process traverses from 0 to 4095 to query a working identification record table in the relational database;
a second query unit 112, configured to identify that the generation process randomly queries a working identification record table in the relational database from 0 to 4095;
and a third query unit 113, configured to identify that the generation process traverses the working identification record table in the query relationship database from 4095 to 0.
For specific functional implementation manners of the first querying unit 111, the second querying unit 112, and the third querying unit 113, reference may be made to step S101 in the embodiment corresponding to fig. 3, which is not described herein again.
Referring to fig. 7, the identification determination 12 may include: a first determining unit 121, a second determining unit 122, and a third determining unit 123.
A first determining unit 121, configured to determine an available working identifier according to a query result, where the query result is a working identifier set that is not recorded in a working identifier record table;
a second determining unit 122, configured to, if writing of the available working identifier into the working identifier record table in the relational database fails, re-query the working identifier record table in the relational database by the identifier generating process, and re-determine the available working identifier according to a query result;
a third determining unit 123, configured to, if it is determined that there is no available working identifier according to the query result, request the configuration center for service states of identifier generation processes respectively corresponding to all process service addresses recorded in the configuration center, and determine that the current service state is the unavailable first identifier generation process.
For specific functional implementation manners of the first determining unit 121, the second determining unit 122, and the third determining unit 123, reference may be made to step S101 in the embodiment corresponding to fig. 3, which is not described herein again.
Referring to fig. 7, the identifier saving 14 may include: a first storage unit 141 and a second storage unit 142.
A first saving unit 141, configured to, if the available work identifier is successfully written into the work identifier record table in the relational database, save the available work identifier into a global variable of the identifier generation process by the identifier generation process;
the second storing unit 142 is configured to, after determining that the current service state is the process service address of the unavailable first identifier generation process, store the work identifier occupied by the first identifier generation process as an available work identifier into the global variable of the identifier generation process.
For specific functional implementation manners of the first saving unit 141 and the second saving unit 142, reference may be made to step S102 in the corresponding embodiment of fig. 2, which is not described herein again.
Referring to fig. 7, the identification generation 16 may include: a request receiving unit 161, a request forwarding unit 162, and an identification returning unit 163.
A request receiving unit 161, configured to receive, by the identifier generation process, a service identifier request sent by a service process according to a process service address recorded by the configuration center;
a request forwarding unit 162, configured to, after receiving a service identifier request sent by the service process, the configuration center forwards the service identifier request to the identifier generation process according to the recorded process service address;
and an identifier returning unit 163, configured to generate a global unique identifier by the identifier generating process according to the available working identifier in the global variable, and return the generated global unique identifier to the business process.
For specific functional implementation manners of the request receiving unit 161, the request forwarding unit 162, and the identifier returning unit 163, reference may be made to step S104 in the embodiment corresponding to fig. 2, which is not described herein again.
According to the method and the device, the record table of the preset recording work identification in the relational database is inquired through the identification generation process, the available work identification is determined from the work identification record table, and the available work identification is the corresponding work identification which is not written into the work identification record table. If the available working identifier is not included in the relational database, which indicates that no identifier generation process occupies the available working identifier at present, the available working identifier is written into a record table of a preset record working identifier in the relational database and is stored in a global variable of the identifier generation process, and the identifier generation process calls the available working identifier stored in the global variable to generate a global unique identifier. The uniqueness of the available working identification can be ensured by utilizing the process, so that the uniqueness problem of the generated global identification is solved, and the repetition of the global identification caused by manual configuration operation is avoided.
Further, please refer to fig. 8, where fig. 8 is a schematic structural diagram of a computer device according to an embodiment of the present application. As shown in fig. 8, the computer apparatus 1000 may include: a processor 1001, a network interface 1003 and a memory 1004, and the computer device 1000 may further include at least one communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The network interface 1003 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1004 may be a high-speed RAM memory or a non-volatile memory (e.g., at least one disk memory). The memory 1005 may optionally be at least one memory device located remotely from the processor 1001. As shown in fig. 8, the memory 1004, which is a kind of computer-readable storage medium, may include therein an operating system, a network communication module, and a device control application program.
In the computer apparatus 1000 shown in fig. 8, a network interface 1003 may provide a network communication function; and the processor 1001 may be used to invoke a device control application stored in the memory 1004 to implement:
the identification generation process inquires a working identification record table in the relational database and determines an available working identification according to an inquiry result;
the identification generation process requests to write the available working identification into a working identification record table in the relational database;
if the available working identifier is successfully written into the working identifier record table in the relational database, the identifier generation process stores the available working identifier into a global variable of the identifier generation process;
and the identification generation process generates a global unique identification according to the available work identification in the global variable.
In an embodiment, when the processor 1001 determines an available work identifier and writes the available work identifier into the work identifier record table in the relational database, the following steps are specifically performed:
and if the writing of the available working identifier into the working identifier record table in the relational database fails, the identifier generation process inquires the working identifier record table in the relational database again, and determines the available working identifier again according to the inquiry result.
If no available working identification is determined according to the query result, requesting a configuration center for identification generation process service states respectively corresponding to all process service addresses recorded in the configuration center, and determining that the current service state is an unavailable first identification generation process;
and saving the work identifier occupied by the first identifier generation process as an available work identifier into the global variable of the identifier generation process.
In an embodiment, the processor 1001 further specifically performs the following steps:
before the identifier generating process generates the global unique identifier according to the global variable, the method further comprises the following steps:
if the available working identification is successfully written into the working identification record table in the relational database, the identification generation process sends a service registration request to the configuration center;
in an embodiment, the service registration request carries the process service address, and the service registration request is used to request the configuration center to record and identify the process service address corresponding to the work process.
The processor 1001 further specifically executes the following steps:
and the identification generation process receives a service identification request sent by a service process according to the process service address recorded by the configuration center, generates a global unique identification according to the available working identification in the global variable, and returns the generated global unique identification to the service process.
According to the method and the device, the record table of the preset recording work identification in the relational database is inquired through the identification generation process, the available work identification is determined from the work identification record table, and the available work identification is the corresponding work identification which is not written into the work identification record table. If the available working identifier is not included in the relational database, which indicates that no identifier generation process occupies the available working identifier at present, the available working identifier is written into a record table of a preset record working identifier in the relational database and is stored in a global variable of the identifier generation process, and the identifier generation process calls the available working identifier stored in the global variable to generate a global unique identifier. The uniqueness of the available working identification can be ensured by utilizing the process, so that the uniqueness problem of the generated global identification is solved, and the repeatability problem of the global identification caused by manual configuration operation is avoided.
An embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, where the computer program includes program instructions, and when the program instructions are executed by a processor, the method for generating a global unique identifier provided in each step in fig. 3 is implemented, which may specifically refer to the implementation manner provided in each step in fig. 3, and details are not described here again.
The computer-readable storage medium may be the global unique identifier generating apparatus provided in any of the foregoing embodiments or an internal storage unit of the computer device, such as a hard disk or a memory of the computer device. The computer readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a smart card (SMC), a Secure Digital (SD) card, a flash card (flash card), and the like, provided on the computer device. Further, the computer-readable storage medium may also include both an internal storage unit and an external storage device of the computer device. The computer-readable storage medium is used for storing the computer program and other programs and data required by the computer device. The computer readable storage medium may also be used to temporarily store data that has been output or is to be output.
The terms "first," "second," and the like in the description and in the claims and drawings of the embodiments of the present application are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "comprises" and any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, apparatus, product, or apparatus that comprises a list of steps or elements is not limited to the listed steps or modules, but may alternatively include other steps or modules not listed or inherent to such process, method, apparatus, product, or apparatus.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The method and the related apparatus provided by the embodiments of the present application are described with reference to the flowchart and/or the structural diagram of the method provided by the embodiments of the present application, and each flow and/or block of the flowchart and/or the structural diagram of the method, and the combination of the flow and/or block in the flowchart and/or the block diagram can be specifically implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block or blocks of the block diagram. These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block or blocks of the block diagram. These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block or blocks.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present application and is not to be construed as limiting the scope of the present application, so that the present application is not limited thereto, and all equivalent variations and modifications can be made to the present application.
Claims (10)
1. A method for generating a globally unique identifier, comprising:
the identification generation process inquires a working identification record table in the relational database and determines an available working identification according to an inquiry result;
the identification generation process requests to write the available working identification into a working identification record table in the relational database;
if the available working identification is successfully written into the working identification record table in the relational database, the identification generation process stores the available working identification into a global variable of the identification generation process;
and the identification generation process generates a global unique identification according to the available working identification in the global variable.
2. The method of claim 1, further comprising:
and if the available working identifier is failed to be written into the working identifier record table in the relational database, the identifier generation process inquires the working identifier record table in the relational database again and determines the available working identifier again according to the inquiry result.
3. The method of claim 1, further comprising:
if no available working identification is determined according to the query result, the identification generation process requests all process service addresses recorded in the configuration center from the configuration center, and determines a first identification generation process of which the current service state is unavailable by accessing the process service addresses;
and saving the work identifier occupied in the first identifier generation process with the service state being unavailable as an available work identifier into a global variable of the identifier generation process.
4. The method of claim 1, wherein before the identifier generation process generates the globally unique identifier from the global variable, the method further comprises:
if the available working identifier is successfully written into the working identifier record table in the relational database, the identifier generation process sends a service registration request to a configuration center, wherein the service registration request carries a process service address, the service registration request is used for requesting the configuration center to record a process service address of the identifier generation process, and the process service address is used for accessing the identifier generation process;
the identification generation process generates the global unique identification according to the available work identification in the global variable, and comprises the following steps:
and the identification generation process receives a service identification request sent by a service process according to the process service address recorded by the configuration center, generates a global unique identification according to the available work identification in the global variable, and returns the generated global unique identification to the service process.
5. The method of claim 4, wherein the process service address is obtained from the configuration center after the business process sends a process service address request to the configuration center.
6. The method according to claim 4, wherein the service identifier request is forwarded by the configuration center to the identifier generation process according to the process service address recorded by the configuration center after receiving the service identifier request sent by the service process.
7. The method of claim 1, wherein the identifier generation process generating a globally unique identifier from the available working identifiers in the global variable comprises:
and the identification generation process calls the target identification recorded in the global variable to generate a global unique identification by using a snowfall Snowflake algorithm.
8. A globally unique identifier generating apparatus, comprising:
the identification query module is used for querying a working identification record table in the relational database through an identification generation process;
the identification determining module is used for determining available working identifications according to the query result of the identification querying module;
the identification writing module is used for writing the available working identification determined by the identification determining module into a working identification record table in the relational database through an identification generation process request;
the identification storage module is used for storing the available working identification into a global variable of the identification generation process through the identification generation process when the identification writing module successfully writes the available working identification into a working identification record table in the relational database;
and the identification generation module is used for generating a global unique identification according to the available working identification in the global variable through the identification generation process.
9. Globally unique identification generating device comprising a memory, a processor and a computer program stored in said memory and executable on said processor, characterized in that said processor implements the steps of the method according to any of claims 1 to 7 when executing said computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010936028.1A CN112073554B (en) | 2020-09-08 | 2020-09-08 | Global unique identifier generation method, device and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010936028.1A CN112073554B (en) | 2020-09-08 | 2020-09-08 | Global unique identifier generation method, device and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112073554A true CN112073554A (en) | 2020-12-11 |
CN112073554B CN112073554B (en) | 2023-04-18 |
Family
ID=73664352
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010936028.1A Active CN112073554B (en) | 2020-09-08 | 2020-09-08 | Global unique identifier generation method, device and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112073554B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112243040A (en) * | 2020-12-15 | 2021-01-19 | 广东睿江云计算股份有限公司 | Method and system for generating unique identifier |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110022528A1 (en) * | 2009-07-24 | 2011-01-27 | Michael Hennessy | Method and system for transmitting information via a plurality of different formats |
CN104113435A (en) * | 2014-07-04 | 2014-10-22 | 广州华多网络科技有限公司 | Method and device for generating identifier |
CN107229555A (en) * | 2017-05-04 | 2017-10-03 | 北京小度信息科技有限公司 | Mark generating method and device |
CN109388502A (en) * | 2018-09-10 | 2019-02-26 | 珠海天燕科技有限公司 | A kind of service identification distribution method and device |
CN110636097A (en) * | 2018-06-25 | 2019-12-31 | 马上消费金融股份有限公司 | Identification generation and management method, node, system and storage device |
CN110750506A (en) * | 2019-09-17 | 2020-02-04 | 苏宁云计算有限公司 | Data object identification generation method and device, computer equipment and storage medium |
CN111353773A (en) * | 2020-02-24 | 2020-06-30 | 网银在线(北京)科技有限公司 | Method and device for processing identifier, storage medium and electronic device |
CN111385370A (en) * | 2018-12-28 | 2020-07-07 | 广州市百果园信息技术有限公司 | ID allocation method, device, storage medium and ID allocation system |
CN111538594A (en) * | 2020-04-21 | 2020-08-14 | 招商局金融科技有限公司 | Order ID generation method, device, equipment and medium based on distributed system |
-
2020
- 2020-09-08 CN CN202010936028.1A patent/CN112073554B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110022528A1 (en) * | 2009-07-24 | 2011-01-27 | Michael Hennessy | Method and system for transmitting information via a plurality of different formats |
CN104113435A (en) * | 2014-07-04 | 2014-10-22 | 广州华多网络科技有限公司 | Method and device for generating identifier |
CN107229555A (en) * | 2017-05-04 | 2017-10-03 | 北京小度信息科技有限公司 | Mark generating method and device |
CN110636097A (en) * | 2018-06-25 | 2019-12-31 | 马上消费金融股份有限公司 | Identification generation and management method, node, system and storage device |
CN109388502A (en) * | 2018-09-10 | 2019-02-26 | 珠海天燕科技有限公司 | A kind of service identification distribution method and device |
CN111385370A (en) * | 2018-12-28 | 2020-07-07 | 广州市百果园信息技术有限公司 | ID allocation method, device, storage medium and ID allocation system |
CN110750506A (en) * | 2019-09-17 | 2020-02-04 | 苏宁云计算有限公司 | Data object identification generation method and device, computer equipment and storage medium |
CN111353773A (en) * | 2020-02-24 | 2020-06-30 | 网银在线(北京)科技有限公司 | Method and device for processing identifier, storage medium and electronic device |
CN111538594A (en) * | 2020-04-21 | 2020-08-14 | 招商局金融科技有限公司 | Order ID generation method, device, equipment and medium based on distributed system |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112243040A (en) * | 2020-12-15 | 2021-01-19 | 广东睿江云计算股份有限公司 | Method and system for generating unique identifier |
CN112243040B (en) * | 2020-12-15 | 2021-03-30 | 广东睿江云计算股份有限公司 | Method and system for generating unique identifier |
Also Published As
Publication number | Publication date |
---|---|
CN112073554B (en) | 2023-04-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108596627B (en) | Big data calculation method and system based on block chain and fog calculation | |
CN110910143A (en) | Identity identification generation method, device, related node and medium | |
CN107451461B (en) | Equipment fingerprint processing method and device of mobile equipment, server and storage medium | |
CN109857450B (en) | Verification service arrangement method and device | |
CN112073554B (en) | Global unique identifier generation method, device and computer readable storage medium | |
CN111400301B (en) | Data query method, device and equipment | |
CN110287070B (en) | ESB special protocol interface test method, server and computer readable storage medium | |
CN112508472A (en) | Method and system for viewing order information of same account by multiple persons | |
CN109815351B (en) | Information query method and related product | |
CN111049988A (en) | Intimacy prediction method, system, equipment and storage medium for mobile equipment | |
CN116028696A (en) | Resource information acquisition method and device, electronic equipment and storage medium | |
CN115098738A (en) | Service data extraction method and device, storage medium and electronic equipment | |
CN110417851B (en) | Data matching method, hosting platform, storage medium and computer equipment | |
CN113986995A (en) | Request distribution method and device, storage medium and electronic equipment | |
CN110119337B (en) | Data analysis method and device and server | |
CN112541834A (en) | Identifier processing method, device and system for hydropower industry digital object | |
CN110737662A (en) | data analysis method, device, server and computer storage medium | |
CN104572649A (en) | Data processing method, device and system for distributed storage system | |
CN105138911B (en) | The method and apparatus of more portable terminals of ROOT simultaneously | |
CN111930620B (en) | Application running environment data processing method and device | |
CN115391632A (en) | Data query system, method, device and computer equipment based on RestFul protocol | |
CN114201279A (en) | Timed task management method, device, system, electronic equipment and storage medium | |
CN114996383A (en) | Employee position path generation method and device | |
CN118656417A (en) | Data processing method, apparatus, electronic device, storage medium, and program product | |
CN117113400A (en) | Data leakage tracing method, device, equipment and storage medium thereof |
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 |