CN111831757B - Method and device for generating and managing distributed global unique identification information - Google Patents

Method and device for generating and managing distributed global unique identification information Download PDF

Info

Publication number
CN111831757B
CN111831757B CN202010517683.3A CN202010517683A CN111831757B CN 111831757 B CN111831757 B CN 111831757B CN 202010517683 A CN202010517683 A CN 202010517683A CN 111831757 B CN111831757 B CN 111831757B
Authority
CN
China
Prior art keywords
machine code
application process
relational database
state
unique identification
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010517683.3A
Other languages
Chinese (zh)
Other versions
CN111831757A (en
Inventor
冯文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shishi Tongyun Technology Chengdu Co ltd
Original Assignee
Shishi Tongyun Technology Chengdu Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shishi Tongyun Technology Chengdu Co ltd filed Critical Shishi Tongyun Technology Chengdu Co ltd
Priority to CN202010517683.3A priority Critical patent/CN111831757B/en
Publication of CN111831757A publication Critical patent/CN111831757A/en
Application granted granted Critical
Publication of CN111831757B publication Critical patent/CN111831757B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2282Tablespace storage structures; Management thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2308Concurrency control
    • G06F16/2336Pessimistic concurrency control approaches, e.g. locking or multiple versions without time stamps
    • G06F16/2343Locking methods, e.g. distributed locking or locking implementation details
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application discloses a method and a device for generating distributed global unique identification information, a method and a device for managing the distributed global unique identification information, a computer storage medium and an electronic device, wherein the method for generating the distributed global unique identification information comprises the following steps: acquiring starting information of an application process; according to the starting information of the application process, locking a machine code which describes that the use state of the machine code is idle in a relational database; the relational database stores a machine code for generating distributed global unique identification information and a data table for describing service information related to the service state of the machine code; and generating globally unique identification information according to the locked machine code. And further, on the premise of ensuring the uniqueness of the machine code and the uniqueness of the generated distributed global unique identification information, the working efficiency of generating the distributed global unique identification information can be effectively improved.

Description

Method and device for generating and managing distributed global unique identification information
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for generating distributed global unique identification information, and a method and an apparatus for managing distributed global unique identification information. The application also relates to a computer storage medium and an electronic device.
Background
In internet applications, database tables typically occupy a large physical memory space, and in order to solve this problem, a database slicing technique is used. The database slicing technology is to split one database table and connect the split tables through a database middleware. Each split table requires an Id to identify, however, if each split table uses an Id self-increasing policy, duplicate ids may be generated, at which time a globally unique Id may be generated by using a distributed Id generation policy to uniquely identify a large number of data and messages in a complex distributed system. Such as in financial, electronic, payment, etc. systems, data grows progressively and a globally unique Id is required for a split sub-table of a database to identify each data or message, and the self-increasing Id of the database is clearly unsatisfactory.
In the prior art, more generation algorithms are provided for generating the globally unique Id to overcome the defect of self-increment Id, however, special attention is required to the uniqueness of the machine code in the generation process of the globally unique Id. The prior art, when guaranteeing the requirement of machine code (workerId) uniqueness in globally unique Id, involves two considerations:
Firstly, an operation and maintenance person is usually required to store a unique machine code (workerId) in a globally unique Id corresponding to each virtual process in a distributed system in a text file in advance, package and deploy the unique machine code together with a package file, and then upload the unique machine code (workerId) to a corresponding directory of a cloud service end, and user-defined parameters are required to be added in a starting script of the virtual process so as to acquire the workerId from the text file for use.
Secondly, the deployment mode of the machine code needs to support that when each service node is newly added, a unique and available machine code number which is not more than the storage capacity of the machine code at the maximum is automatically generated, and each deployment needs to record and maintain each generated machine code number so as to successfully recycle the number when the service node is released. This obviously allows the deployment system of the machine code to additionally embed unnecessary functions, so that the operation and maintenance cannot be focused on guaranteeing the essential works such as high availability, elastic expansion and contraction, and the like, and the efficiency of the work rate is reduced.
Disclosure of Invention
The application provides a generation method of distributed global unique identification information, which aims to solve the problem of low working efficiency of a distributed system in the prior art.
The application provides a method for generating distributed global unique identification information, which comprises the following steps:
acquiring starting information of an application process;
according to the starting information of the application process, locking a machine code which describes that the use state of the machine code is idle in a relational database; the relational database stores a machine code for generating distributed global unique identification information and a data table for describing service information related to the service state of the machine code;
and generating globally unique identification information according to the locked machine code.
In some embodiments, the locking the machine code in the relational database, which describes the use state of the machine code as idle, according to the start information of the application process includes:
inquiring service information with a machine code use state field value of 1 in the relational database according to the starting information of the application process; wherein the use state is 1 and indicates idle, and the use state is 2 and indicates occupied;
locking the machine code and the corresponding relevant service information with the use state field value of 1.
In some embodiments, the generating the distributed globally unique identification information from the locked machine code includes:
Modifying the use state of the locked machine code from idle to occupied;
modifying the relevant service information describing the machine code in the relational database according to the modification of the use state;
submitting transaction information which generates distributed global unique identification information according to the modified machine code;
and generating distributed global unique identification information according to the machine code in the transaction information.
In some embodiments, the generating the distributed globally unique identification information from the machine code in the transaction information comprises:
determining the machine code which is successfully occupied according to the transaction information;
storing the machine code locally;
based on the locally stored machine code, distributed global unique identification information is generated by a generation algorithm.
In some embodiments, the obtaining the start information of the application process includes:
and acquiring starting information of the application process according to the instantiation of the management object class in the software tool development kit.
In some embodiments, the obtaining starting information of the application process according to the instantiation of the management object class in the software tool development kit includes:
Determining a management class which needs to be instantiated as a management object in the software tool development package by a container starting annotation mode;
and acquiring starting information of the application process according to the instantiation processing of the determined management class.
The application also provides a device for generating the distributed global unique identification information, which comprises:
the acquisition unit is used for acquiring starting information of the application process;
the locking unit is used for locking the machine code which describes that the use state of the machine code is idle in the relational database according to the starting information of the application process; the relational database stores a machine code for generating distributed global unique identification information and a data table for describing service state related information of the machine code;
and the generating unit is used for generating globally unique identification information according to the locked machine code.
The application also provides a management method of the distributed global unique identification information, which comprises the following steps:
determining whether the current service state of the application process is normally closed;
if the machine code is determined to be normally closed, acquiring the occupied machine code in the application process;
releasing the machine code from a relational database; the relational database stores machine codes for generating distributed global unique identification information and a data table for describing service information related to the service state of the machine codes.
In some embodiments, the determining whether the current service state of the application process is normally closed includes:
when the current service state of the application process is triggered by closing a hook, determining that the application process is normally closed; wherein the closing hook is a method provided by a software tool package for invoking when the application process is closed.
In some embodiments, if the current service state is normally closed, acquiring the occupied machine code in the application process includes:
and when the service state is closed, determining the machine code occupied in the application process through the locally stored machine code information.
In some embodiments, the releasing the machine code from the relational database comprises:
inquiring a machine code matched with the machine code and the occupation state of the machine code in the relational database;
and modifying the service using state of the inquired machine code from the occupied state to the idle state.
In some embodiments, further comprising:
and updating the service closing time of the queried machine code to be the modification time for modifying the service using state from the occupied state to the idle state.
In some embodiments, further comprising:
if the abnormal closing is determined, reading a machine code which is occupied in the use state in the relational database;
determining whether the process of the application process exists according to the machine code;
and if the process does not exist, performing the step of releasing the machine code from the relational database.
In some embodiments, the determining whether the current service state of the application process is normally closed includes:
when the current service state of the application process is not triggered by closing the hook, determining that the application process is abnormally closed; wherein the closing hook is a method provided by a software tool package for invoking when the application process is closed.
In some embodiments, if the abnormal closing is determined, reading the machine code whose usage state is occupied in the relational database includes:
and when the current service state of the application process is determined to be abnormally closed, reading the machine code with the occupied use state in the relational database through a detection script.
In some embodiments, when the current service state of the application process is determined to be abnormally closed, reading the machine code with the occupied use state in the relational database through the detection script includes:
When the current service state of the application process is determined to be abnormally closed, starting the detection script to read the machine code with the occupied use state in the relational database through the set detection time.
In some embodiments, the determining whether a process of the application process exists according to the machine code includes:
detecting whether the process of the application process exists according to the machine code and the process number information of the application process occupying the machine code on an operating system and the IP address information of a server where the process occupying the machine code is located, which correspond to the machine code in the relational database, or according to the machine code and the IP address information of the server where the process occupying the machine code is located and the port number information of the operating system occupied by the application process occupying the machine code.
The application also provides a management device of the distributed global unique identification information, which comprises:
the determining unit is used for determining whether the current service state of the application process is normally closed or not;
the acquisition unit is used for acquiring the occupied machine code in the application process according to the fact that the application process is determined to be normally closed in the determination unit;
The releasing unit is used for releasing the machine code acquired by the acquiring unit from the relational database; the relational database stores machine codes for generating distributed global unique identification information and a data table for describing service information related to the service state of the machine codes.
The application also provides a computer storage medium for storing network platform generated data and a program for processing the network platform generated data;
the program, when read and executed, performs the steps of:
acquiring starting information of an application process;
according to the starting information of the application process, locking a machine code which describes that the use state of the machine code is idle in a relational database; the relational database stores a machine code for generating distributed global unique identification information and a data table for describing service information related to the service state of the machine code;
generating global unique identification information according to the locked machine code;
or alternatively;
determining whether the current service state of the application process is normally closed;
if the machine code is determined to be normally closed, acquiring the occupied machine code in the application process;
Releasing the machine code from a relational database; the relational database stores machine codes for generating distributed global unique identification information and a data table for describing service information related to the service state of the machine codes.
The application also provides an electronic device comprising:
a processor;
a memory for storing a program for processing network platform generated data, said program, when read and executed by said processor, performing the steps of:
acquiring starting information of an application process;
according to the starting information of the application process, locking a machine code which describes that the use state of the machine code is idle in a relational database; the data base stores a machine code for generating distributed global unique identification information and a data table for describing service information related to the service state of the machine code;
generating global unique identification information according to the locked machine code;
or alternatively;
determining whether the current service state of the application process is normally closed;
if the machine code is determined to be normally closed, acquiring the occupied machine code in the application process;
releasing the machine code from a relational database; the relational database stores machine codes for generating distributed global unique identification information and a data table for describing service state related information of the machine codes.
Compared with the prior art, the application has the following advantages:
according to the method for generating the distributed global unique identification information, the machine code with the idle use state of the machine code described in the relational database is locked according to the acquired starting information of the application process; the relational database stores a machine code for generating distributed global unique identification information and a data table for describing service information related to the service state of the machine code; and generating globally unique identification information according to the locked machine code. The machine codes are stored in the relational database in advance, so that the acquisition of the machine codes in the generation process of the distributed global unique identification information is not dependent on the technical capability of operation and maintenance development, the required machine codes can be obtained only through the relational database, and the relational database comprises descriptions of service information related to the service state of each machine code, so that the work efficiency of generating the distributed global unique identification information can be effectively improved on the premise of ensuring the uniqueness of the machine codes and the uniqueness of the generated distributed global unique identification information.
According to the management method of the distributed global unique identification information, the machine code can be released from the relational database for normal closing and abnormal closing according to the determination of the closing form of the current service state of the application process, so that convenience is brought to the follow-up generation of the distributed global unique identification information, the management of the distributed global unique identification information is more convenient and rapid as a whole, the acquisition of the machine code of the newly-added node does not need to be invested in a large amount of effort, and maintenance management work for the distributed global unique identification information for a large amount of operation and maintenance development is reduced.
Drawings
FIG. 1 is a flowchart of an embodiment of a method for generating distributed globally unique identification information provided herein;
FIG. 2 is a schematic structural diagram of an embodiment of a generating device for distributed globally unique identification information provided in the present application;
FIG. 3 is a flow chart of an embodiment of a method for managing distributed globally unique identification information provided herein;
fig. 4 is a schematic structural diagram of an embodiment of a management apparatus for distributed globally unique identification information provided in the present application.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. This application is, however, susceptible of embodiment in many other ways than those herein described and similar generalizations can be made by those skilled in the art without departing from the spirit of the application and the application is therefore not limited to the specific embodiments disclosed below.
The terminology used in the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the present application. The manner of description used in this application and in the appended claims is for example: "a", "a" and "a" etc. are not limited in number or order, but are used to distinguish the same type of information from each other.
It will be appreciated by the background section that distributed globally unique identification information (or called distributed globally unique Id) is used to distinguish one information from the other, and therefore, the basic requirement is globally unique, i.e., no duplicate Id can occur. The existing globally unique Id for a distributed type includes the following algorithms: UUID (Universally Unique Identifier) the unique identifier, the database self-increment Id mechanism, third party software generation (dis), the SnowFlake algorithm, etc., in this embodiment, the concept of the technical solution of the present application is mainly described by taking the SnowFlake algorithm as an example.
The SnowFlake algorithm is an algorithm designed by Twitter that can generate unique ids in a distributed system that can satisfy the requests of Twitter for allocation of tens of thousands of message ids per second, which are unique and in a generally ascending order.
The SnowFlake algorithm generates Id as a 64-bit integer, and the structure includes 4 parts, specifically as follows (each part is separated by a "-" symbol):
0-00000000000000000000000000000000000000000-0000000000-00000000000;
a 1-bit identification part, in java, since the most significant bit of long is a sign bit, the positive number is 0, the negative number is 1, and the Id generated in general is a positive number, so it is 0;
a 41-bit timestamp section, which is a millisecond-level time, typically does not store the current timestamp, but rather the difference in the timestamps (current time-fixed start time), so that the resulting Id can be started from a smaller value; a timestamp of 41 bits may be used for 69 years, (1L < < 41)/(1000L 60 24 365) =69 years;
the 10-bit node part uses the first 5 bits as a data center identifier in the Twitter implementation, the last 5 bits as a machine identifier, which is collectively called a workerId, and 1024 nodes can be deployed;
a 12-bit sequence number part supporting that the same node can generate 4096 Ids within the same millisecond;
the snowfly algorithm generates Id that is generally incremental in time, and when used in a distributed system, it is noted that a 10-bit machine Id (also referred to as a machine code) must be unique when no data Id is needed, so as to ensure that the Id generated by each node is unique. The visible machine identifier (workerId) is only one of the core points that the snowfly algorithm guarantees globally unique.
In order to ensure the uniqueness of the machine code, the prior art generally stores the machine code in a text file in advance, packages and deploys the machine code together with a package file, then obtains the machine code (workerId) from the text file in a predetermined manner, and the obtaining manner necessarily needs to depend on the development capability of an operation and maintenance developer.
The technical scheme of the method for generating the distributed global unique Id is provided from the conception point of bringing additional technical problems when generating and maintaining the machine code, so that the maintenance requirement of operation and maintenance on the uniqueness of the machine code can be omitted while the uniqueness of the machine code in the distributed global unique Id is ensured, and the working efficiency is improved.
Referring to fig. 1, fig. 1 is a flowchart of an embodiment of a method for generating a distributed globally unique Id, where the embodiment of the method includes:
Step S101: acquiring starting information of an application process;
the specific implementation process of the step S101 includes:
step S101-1: and acquiring starting information of the application process according to the instantiation of the management object class in the software tool development kit (SDK).
For example: with @ PostConstruct annotation, subsequent steps are performed when the SDK internal beans are instantiated. Where @ poststruct is an annotation introduced at the time of java5, this method is performed at the time of project start, and can be understood as being performed at the time of the start of the spring container, and can be used as a regular load of some data, such as a data dictionary. Beans can be understood as a multiplexed java class, and theoretically any java class can be considered as a Bean, and typically a Bean runs in a specific container, and cross-process access is not allowed. In this embodiment, beans inside the SDK run in spring containers, and spring instantiations of beans can be in a variety of ways, for example: the manner of instantiation is not an important aspect of the present solution, using the non-parametric build creation of classes, using static factory creation, using instance factory creation, etc., and therefore, will not be described in detail herein.
Based on the above, the specific implementation procedure of the step S101-1 may include:
step S101-11: determining a management class which needs to be instantiated as a management object in the software tool development package by a container starting annotation mode;
step S101-12: and acquiring starting information of the application process according to the instantiation processing of the determined management class.
Step S102: according to the starting information of the application process, locking a machine code which describes that the use state of the machine code is idle in a relational database; the relational database stores machine codes for generating distributed global unique identification information and a data table for describing service information related to the service state of the machine codes.
The purpose of the step S102 is to: an idle machine code (workerId) is determined from the relational database. It can be seen that in this embodiment, the machine code is stored in the relational database in the form of a data table. The specific contents in the data table may include: machine code and service information related to machine code service status. The data table can be specifically shown as the following table:
Figure BDA0002530715330000091
in this embodiment, the specific implementation procedure of step S102 may include:
Step S102-1: inquiring service information with a machine code use state field value of 1 in the relational database according to the starting information of the application process; wherein the use state is 1 and indicates idle, and the use state is 2 and indicates occupied;
step S102-2: locking the machine code and the corresponding relevant service information with the use state field value of 1.
In practice, when generating the component global unique identification information, a unique machine code is obtained by the machine code stored in the relational database, a large number of machine codes are stored in the data table, and relevant service information is recorded for each machine code, so that the current use state of the read machine code can be obtained by reading the machine code in the data table, and by combining the content in the table, the state field in the data table can be read to obtain the machine code currently in idle state in the data table, and the machine code with idle use state and the service information related to the machine code are locked for use in generating the distributed global unique Id.
The locking mode of the machine code with the idle use state, namely the value of 1, can be to change the related information of the machine code with the use state of 1 into a read-only mode, so that other application processes are prevented from preempting and modifying the related information.
In this embodiment, the lock may be, for example: 1 record in the data table global_worker_id with a state field value of 1 is queried and locked, and other transactions are not allowed to update this record until the lock is released.
Step S103: and generating globally unique identification information according to the locked machine code.
The purpose of the step S103 is to generate globally unique identification information according to the determined machine code, and the specific implementation process may include:
step S103-1: modifying the use state of the locked machine code from idle to occupied;
the machine code locked in the step S102 is modified to be occupied, that is, the machine code is modified from "1" to "2" corresponding to state information in the data table, specifically, a record is found from the data table global_worker_id according to the workbench Id value returned in the step S102, and the value of the state field is updated to 2.
Step S103-2: and modifying the relevant service information describing the machine code in the relational database according to the modification of the use state.
After the use state information of the machine code in the data table is modified according to the step S103-1, other relevant service information describing the machine code is also required to be modified, specifically, the index of the p_id field of the data table is updated to be the process Id corresponding to the current application process in the operating system, the value of the IP field is updated to be the IP of the cloud server (ECS) where the current application process is located, the value of the last_start_time field is updated to be the current time, and the value of the memo field is updated to be the description of the current application process.
Step S103-3: submitting transaction information which generates distributed global unique identification information according to the modified machine code;
the Transaction information (Transaction) is a program execution logic Unit (Unit) composed of a series of operations for accessing and updating system data, and in this embodiment, after the Transaction information is submitted successfully, it means that one or more operations of the database are successfully executed in the whole Transaction process.
It will be appreciated that when based on the modification of the machine code related service information in step S103-2, the transaction information needs to be submitted to trigger the subsequent generation of the distributed globally unique Id according to the machine code, so in this embodiment, the transaction information may be submitted through a Spring event listening mechanism, for example: processing the database transaction information and submitting successfully by using @ transactionEventListener annotation or using a transaction synchronization manager transactionSynchronization manager, and then executing subsequent operations, wherein @ transactionEventListener annotation can be specifically realized by: an adapter is added, when an event is recorded when a synchronizer is registered through the transactionSynchronization in the application ListenmethodTonsactionalAdapter, then a synchronizer transactionSynchronization EventAdapter is registered, and after the transaction information is submitted, the transactionSynchronization Anager calls back the synchronous adapter registered above. At this time, the transactionSynchronizationEventAdapter calls the hanldeOrderCreatedEvent method to execute the subsequent operation, wherein the registration information is put into ThreadLocal, and the parameters are transferred through ThreadLocal. In this embodiment, the commit transaction may be implemented directly by @ transaction annotation using spring or by connection.
Step S103-4: and generating distributed global unique identification information according to the machine code in the transaction information.
The step S103-4 generates the distributed global unique identification information according to the machine code and the related service information in the transaction information submitted in the step S103-3, and in this embodiment, the distributed global unique identification information may be generated by adopting a SnowFlake algorithm.
It should be specifically noted that, to increase the coverage of the machine code (workerId), the structure of the distributed globally unique identification information generated in the snowflash algorithm may be adjusted, that is:
1bit (symbol identification bit) +41bit timestamp+12 bit machine code+10 bit serial number=64 bit;
the original structure in the above-mentioned snowfly algorithm is combined, and the adjustment is specifically, 2bit in the 12bit serial number in the original structure is moved to original 10bit machine code, namely the machine code becomes 12bit, guarantees unique machine code in different virtual nodes like this, and the maximum can be 4095 coverage, can support 4096 virtual nodes to use, and guarantees the uniqueness of machine code under this application range.
Based on the above, in this embodiment, the specific implementation procedure of step S103-4 may include:
Step S103-41: determining the machine code which is successfully occupied according to the transaction information;
in this embodiment, verification needs to be performed on the submitted transaction information, and when the submitted transaction information is successful, the machine code in the transaction information can be determined to be the machine code occupying the success. Specifically, whether the transaction information is submitted successfully or not can be determined according to whether abnormal rollback for the submitted transaction is received or not, if the abnormal rollback exists, the transaction information is submitted to fail, and otherwise, the transaction information is submitted successfully.
Step S103-42: storing the machine code locally;
the purpose of the step S103-42 is to store the available machine code determined in the data table to the local, so that the machine code can be directly obtained from the local when the distributed global unique identification information is generated later, thereby improving the generating efficiency and reducing the maintenance work for the machine code. The local may be a service side for executing functions of an application process, and in this embodiment, may be specifically a memory space allocated by an operating system for a started process, i.e. a JVM memory space.
Step S103-43: based on the locally stored machine code, distributed global unique identification information is generated by a generation algorithm.
From the above, it is known that in this embodiment, the generation of the distributed globally unique Id may employ a snowfly algorithm that generates by acquiring a locally stored machine code.
The foregoing is a detailed description of an embodiment of a method for generating distributed globally unique identification information, corresponding to the foregoing embodiment of a method for generating distributed globally unique identification information, and referring to fig. 2, since the embodiment of the apparatus is substantially similar to the embodiment of the method, the description is relatively simple, and relevant points refer to part of the description of the embodiment of the method. The device embodiments described below are merely illustrative.
As shown in fig. 2, fig. 2 is a schematic structural diagram of an embodiment of a generating device of distributed globally unique identification information provided in the present application; the generating device embodiment comprises:
an acquiring unit 201, configured to acquire starting information of an application process;
the obtaining unit 201 is specifically configured to obtain starting information of an application process according to an instantiation of a management object class in a software tool development kit.
The acquisition unit 201 includes: the determining subunit is used for determining a management class which needs to be instantiated as a management object in the software tool development package through a container starting annotation mode. The obtaining subunit is configured to obtain starting information of the application process according to the instantiation processing of the determined management class.
A locking unit 202, configured to lock, according to the start information of the application process, a machine code that describes that a use state of the machine code is idle in a relational database; the relational database stores a machine code for generating distributed global unique identification information and a data table for describing service state related information of the machine code;
the locking unit 202 may include: a query subunit and a lock subunit;
the inquiring subunit is used for inquiring service information with the machine code using state field value of 1 in the relational database according to the starting information of the application process; wherein the use state is 1 and indicates idle, and the use state is 2 and indicates occupied;
the locking subunit is configured to lock the machine code and the corresponding service information related to the use state field value of 1.
A generating unit 203, configured to generate globally unique identification information according to the locked machine code;
the generating unit 203 may include: the system comprises a first modification subunit, a second modification subunit, a submission subunit and a generation subunit.
The first modification subunit is used for modifying the use state of the locked machine code from idle to occupied;
the second modification subunit is configured to modify, according to the modification of the usage state, relevant service information describing the machine code in the relational database;
the submitting subunit is used for submitting transaction information which generates distributed global unique identification information according to the modified machine code;
the generation subunit is configured to generate distributed global unique identification information according to the machine code in the transaction information. The generating subunit may include: determining a subunit and a storage subunit; wherein the determining subunit may be configured to determine, according to the transaction information, the machine code that is successfully occupied; the storage subunit may be configured to store the machine code locally; the generation subunit is specifically configured to generate, based on the locally stored machine code, distributed global unique identification information through a generation algorithm.
The foregoing is a description of an embodiment of a generating device of distributed global unique identification information provided in the present application, and specific content of the generating device may refer to the related description of the foregoing generating method embodiment, which is not repeated herein.
Based on the foregoing, the present application further provides a method for managing distributed global unique identifier information, referring to fig. 3, fig. 3 is a flowchart of an embodiment of a method for managing distributed global unique identifier information, where the embodiment of the method includes:
step S301: determining whether the current service state of the application process is normally closed;
the specific implementation process of the step S301 may be that when the current service state of the application process is triggered by closing a hook (shutdown), it is determined to be normally closed; wherein the closing hook is a method provided by a software tool package for invoking when the application process is closed. The shutdown hook is a secure exit mechanism that provides the application with jvm (Java Virtual Machine: java virtual machine) to handle tasks that the application has not processed when it exits jvm, by which some resources can be shut down when it exits jvm, some threads that must be gracefully shut down can be interrupted, etc. Therefore, the step S301 may be executed by determining whether the current service status performed by the application is normally closed, and determining that the application process is closed by a shutdown hook.
Step S302: and if the machine code is determined to be normally closed, acquiring the occupied machine code in the application process.
The specific implementation process of step S302 may include:
step S302-1: and when the service state is closed, determining the machine code occupied in the application process through the locally stored machine code information. Specifically, when the service state is closed, the occupied machine code in the application process is queried through the locally stored machine code information.
Step S303: releasing the machine code from a relational database; the relational database stores machine codes for generating distributed global unique identification information and a data table for describing service information related to the service state of the machine codes.
The specific implementation process of step S303 may include:
step S303-11: inquiring a machine code matched with the machine code and the occupation state of the machine code in the relational database;
step S303-12: and modifying the service using state of the inquired machine code from the occupied state to the idle state. In combination with the content of the step S103-2, the specific implementation of the step S303-2 may be to find a record in the global_worker_id of the data table according to 2 conditions that the value of the workflow id and the state field occupied by the current service is 2 (occupied), and update the value of the state field to be 1 (idle). When the positioning is needed, the content of the last_short_time (the closing time of the last service occupying the workerId, namely the last modification time) information in the data table can be correspondingly updated through modification based on the use state, so that more information can be traced.
Therefore, the step S303 may further include: and updating the service closing time of the queried machine code to be the modification time for modifying the service using state from the occupied state to the idle state.
In this embodiment, in the case where the step S301 is still another, when the current service state of the application process is abnormal shutdown, the specific implementation may include:
step S301-21: if it is determined that the operation is abnormal, in step S301, the machine code whose usage status is occupied in the relational database is read;
the determining about abnormal closing may specifically be that when the current service state of the application process is not triggered by closing a hook (shutdown), it is determined as abnormal closing; wherein the closing hook is a method provided by a software tool package for invoking when the application process is closed. The specific implementation of the reading may be that when the current service state of the application process is determined to be abnormally closed, the machine code with the usage state occupied in the relational database is read through a detection script. For example: and accessing all the works id states in the data table as occupied records through the shell script. It is understood that the application process may be a service running continuously and uninterruptedly, so that the detection script may be started to detect the use state of the machine code in the relational database by setting the detection time.
Step S301-22: determining whether the process of the application process exists according to the machine code;
the specific implementation process of step S301-22 may be that whether the process of the application process exists is detected according to the machine code and the process number information of the application process occupying the machine code on the operating system and the IP address information of the server where the process occupying the machine code is located, which correspond to the machine code in the relational database, or according to the machine code and the IP address information of the server where the process occupying the machine code is located and the port number information of the operating system occupied by the application process occupying the machine code.
Step S301-23: and if the process does not exist, performing the step of releasing the machine code from the relational database. If the process exists, no processing on the data table is needed, because the process proves that the situation that the current workerId is occupied is true.
The above description of the embodiment of the method for managing the distributed global unique identification information provided by the application shows that, according to the embodiment, the machine code stored in the relational database can be correspondingly released and acquired according to the real-time use state of the application process, so that the management of the distributed global unique identification information is convenient and fast, and no great effort is required for operation and maintenance.
Based on the foregoing, the present application further provides a detailed description of an embodiment of a management apparatus for distributed globally unique identification information, corresponding to the foregoing provided embodiment of a method for managing distributed globally unique identification information, and further discloses an embodiment of a management apparatus for distributed globally unique identification information, please refer to fig. 4, since the embodiment of the apparatus is substantially similar to the embodiment of the method, the description is relatively simple, and the relevant points refer to a part of the description of the embodiment of the method. The device embodiments described below are merely illustrative.
Referring to fig. 4, an embodiment of a management apparatus for distributed globally unique identification information provided in the present application includes:
a determining unit 401, configured to determine whether the current service state of the application process is normally closed;
the determining unit 401 may include: a normal closing determination subunit, configured to determine that the application process is normally closed when the current service state of the application process is triggered by closing a hook; wherein the closing hook is a method provided by a software tool package for invoking when the application process is closed.
An obtaining unit 402, configured to obtain, according to the determination unit that the application process is normally closed, an occupied machine code in the application process;
The obtaining unit 402 is specifically configured to determine, when the service state is closed, a machine code occupied in the application process from locally stored machine code information.
A releasing unit 403, configured to release the machine code acquired by the acquiring unit 402 from a relational database; the relational database stores machine codes for generating distributed global unique identification information and a data table for describing service information related to the service state of the machine codes.
The release unit 403 may include: the inquiring subunit is used for inquiring the machine code matched with the machine code and the occupation state of the machine code in the relational database; the modification subunit is used for modifying the queried service state of the machine code from the occupied state to the idle state.
In this embodiment, the release unit 403 may further include: and the time updating unit is used for updating the service closing time of the queried machine code into the modification time for modifying the service using state from the occupied state to the idle state.
In other embodiments, it may further include: the abnormal closing determining unit is used for determining abnormal closing when the current service state of the application process is not triggered by a closing hook; the reading unit is configured to read a machine code whose usage state is occupied in the relational database, and specifically may be that when the current service state of the application process is determined to be abnormally closed, the machine code whose usage state is occupied in the relational database is read through a detection script; and further, when the current service state of the application process is determined to be abnormally closed, starting the detection script to read the machine code with the occupied use state in the relational database through the set detection time. The process determining unit is configured to determine, according to the machine code read by the reading unit, whether a process of the application process exists, and if the process does not exist, enter the releasing unit 403.
For the specific content, reference may be made to the step S301 to the step S304, and the detailed description will not be repeated here.
Based on the foregoing, the present application further provides a computer storage medium for storing network platform generated data and a program for processing the network platform generated data;
the program, when read and executed, performs the steps of:
acquiring starting information of an application process;
according to the starting information of the application process, locking a machine code which describes that the use state of the machine code is idle in a relational database; the relational database stores a machine code for generating distributed global unique identification information and a data table for describing service information related to the service state of the machine code;
generating global unique identification information according to the locked machine code;
or alternatively;
determining whether the current service state of the application process is normally closed;
if the machine code is determined to be normally closed, acquiring the occupied machine code in the application process;
releasing the machine code from a relational database; the relational database stores machine codes for generating distributed global unique identification information and a data table for describing service information related to the service state of the machine codes.
Based on the foregoing, the present application further provides an electronic device, including:
a processor;
a memory for storing a program for processing network platform generated data, said program, when read and executed by said processor, performing the steps of:
acquiring starting information of an application process;
according to the starting information of the application process, locking a machine code which describes that the use state of the machine code is idle in a relational database; the data base stores a machine code for generating distributed global unique identification information and a data table for describing service information related to the service state of the machine code;
generating global unique identification information according to the locked machine code;
or alternatively;
determining whether the current service state of the application process is normally closed;
if the machine code is determined to be normally closed, acquiring the occupied machine code in the application process;
releasing the machine code from a relational database; the relational database stores machine codes for generating distributed global unique identification information and a data table for describing service state related information of the machine codes.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
1. Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other component Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, read only optical disk read only memory (CD-ROM), digital Versatile Disks (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer readable media, as defined herein, does not include non-transitory computer readable media (transmission media), such as modulated data signals and carrier waves.
2. It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
While the preferred embodiment has been described, it is not intended to limit the invention thereto, and any person skilled in the art may make variations and modifications without departing from the spirit and scope of the present invention, so that the scope of the present invention shall be defined by the claims of the present application.

Claims (12)

1. A method for generating distributed global unique identification information, comprising:
acquiring starting information of an application process;
according to the starting information of the application process, locking a machine code which describes that the use state of the machine code is idle in a relational database; the relational database stores a machine code for generating distributed global unique identification information and a data table for describing service information related to the service state of the machine code;
Generating global unique identification information according to the locked machine code;
the obtaining the starting information of the application process includes: when the management object class in the software tool development kit is instantiated, starting information of an application process is acquired, specifically: determining a management class which needs to be instantiated as a management object in the software tool development package by a container starting annotation mode; acquiring starting information of the application process according to the instantiation processing of the determined management class;
wherein the generating globally unique identification information from the locked machine code comprises: modifying the use state of the locked machine code from idle to occupied; modifying the relevant service information describing the machine code in the relational database according to the modification of the use state; submitting transaction information which generates distributed global unique identification information according to the modified machine code; generating distributed global unique identification information according to the machine code in the transaction information; determining the machine code which is successfully occupied according to the transaction information; storing the machine code locally; based on the locally stored machine code, distributed global unique identification information is generated by a generation algorithm.
2. The method for generating distributed globally unique identification information according to claim 1, wherein the locking the machine code describing that the use state of the machine code is idle in the relational database according to the start information of the application process comprises:
inquiring service information with a machine code use state field value of 1 in the relational database according to the starting information of the application process; wherein the use state is 1 and indicates idle, and the use state is 2 and indicates occupied;
locking the machine code and the corresponding relevant service information with the use state field value of 1.
3. A generation apparatus of distributed globally unique identification information, comprising:
the acquisition unit is used for acquiring starting information of the application process;
the locking unit is used for locking the machine code which describes that the use state of the machine code is idle in the relational database according to the starting information of the application process; the relational database stores a machine code for generating distributed global unique identification information and a data table for describing service state related information of the machine code;
a generation unit for generating globally unique identification information according to the locked machine code;
The obtaining unit is configured to obtain starting information of an application process when the management object class in the software tool development kit is instantiated, where the starting information specifically includes: determining a management class which needs to be instantiated as a management object in the software tool development package by a container starting annotation mode; acquiring starting information of the application process according to the instantiation processing of the determined management class;
the locking unit is used for modifying the use state of the locked machine code from idle to occupied; modifying the relevant service information describing the machine code in the relational database according to the modification of the use state; submitting transaction information which generates distributed global unique identification information according to the modified machine code; generating distributed global unique identification information according to the machine code in the transaction information; determining the machine code which is successfully occupied according to the transaction information; storing the machine code locally; based on the locally stored machine code, distributed global unique identification information is generated by a generation algorithm.
4. A method for managing distributed global unique identification information, comprising:
Determining whether the current service state of the application process is normally closed;
if the machine code is determined to be normally closed, acquiring the occupied machine code in the application process;
releasing the machine code from a relational database; the relational database stores a machine code for generating distributed global unique identification information and a data table for describing service information related to the service state of the machine code;
wherein said releasing the machine code from the relational database comprises: inquiring a machine code matched with the machine code and the occupation state of the machine code in the relational database; modifying the service state of the inquired machine code from an occupied state to an idle state;
further comprises:
updating the service closing time of the queried machine code into the modification time for modifying the service using state from the occupied state to the idle state;
further comprises:
if the abnormal closing is determined, reading a machine code which is occupied in the use state in the relational database; determining whether the process of the application process exists according to the machine code; if the process does not exist, the step of releasing the machine code from the relational database is performed; if the abnormal closing is determined, reading a machine code which is occupied in the use state in the relational database; the machine code, comprising: and when the current service state of the application process is determined to be abnormally closed, reading the machine code with the occupied use state in the relational database through a detection script.
5. The method for managing distributed globally unique identification information of claim 4, wherein determining whether the current service status of the application process is normally closed comprises:
when the current service state of the application process is triggered by closing a hook, determining that the application process is normally closed; wherein the closing hook is a method provided by a software tool package for invoking when the application process is closed.
6. The method for managing distributed global unique identification information according to claim 4, wherein if the current service state is normally closed, acquiring the machine code occupied in the application process includes:
and when the service state is closed, determining the machine code occupied in the application process through the locally stored machine code information.
7. The method for managing distributed globally unique identification information of claim 4, wherein determining whether the current service status of the application process is normally closed comprises:
when the current service state of the application process is not triggered by closing the hook, determining that the application process is abnormally closed; wherein the closing hook is a method provided by a software tool package for invoking when the application process is closed.
8. The method for managing distributed globally unique identification information according to claim 4, wherein when the current service status of the application process is determined to be abnormally closed, reading the machine code whose use status is occupied in the relational database by a detection script, comprises:
when the current service state of the application process is determined to be abnormally closed, starting the detection script to read the machine code with the occupied use state in the relational database through the set detection time.
9. The method for managing distributed globally unique identification information of claim 4, wherein the determining whether the process of the application process exists according to the machine code comprises:
detecting whether the process of the application process exists according to the machine code and the process number information of the application process occupying the machine code on an operating system and the IP address information of a server where the process occupying the machine code is located, which correspond to the machine code in the relational database, or according to the machine code and the IP address information of the server where the process occupying the machine code is located and the port number information of the operating system occupied by the application process occupying the machine code.
10. A management apparatus for distributed globally unique identification information, comprising:
the determining unit is used for determining whether the current service state of the application process is normally closed or not;
the acquisition unit is used for acquiring the occupied machine code in the application process according to the fact that the application process is determined to be normally closed in the determination unit;
the releasing unit is used for releasing the machine code acquired by the acquiring unit from the relational database; the relational database stores a machine code for generating distributed global unique identification information and a data table for describing service information related to the service state of the machine code;
wherein the release unit includes: inquiring a machine code matched with the machine code and the occupation state of the machine code in the relational database; modifying the service state of the inquired machine code from an occupied state to an idle state;
further comprises: the time updating unit is used for updating the service closing time of the queried machine code into the modification time for modifying the service using state from the occupied state to the idle state;
further comprises: if the abnormal closing is determined, reading a machine code which is occupied in the use state in the relational database; determining whether the process of the application process exists according to the machine code; if the process does not exist, the step of releasing the machine code from the relational database is performed; if the abnormal closing is determined, reading a machine code which is occupied in the use state in the relational database; the machine code, comprising: and when the current service state of the application process is determined to be abnormally closed, reading the machine code with the occupied use state in the relational database through a detection script.
11. A computer storage medium for storing network platform generated data and a program for processing the network platform generated data;
the program, when read and executed, performs the steps of:
acquiring starting information of an application process;
according to the starting information of the application process, locking a machine code which describes that the use state of the machine code is idle in a relational database; the relational database stores a machine code for generating distributed global unique identification information and a data table for describing service information related to the service state of the machine code;
generating global unique identification information according to the locked machine code;
the obtaining the starting information of the application process includes: when the management object class in the software tool development kit is instantiated, starting information of an application process is acquired, specifically: determining a management class which needs to be instantiated as a management object in the software tool development package by a container starting annotation mode; acquiring starting information of the application process according to the instantiation processing of the determined management class;
wherein the generating globally unique identification information from the locked machine code comprises: modifying the use state of the locked machine code from idle to occupied; modifying the relevant service information describing the machine code in the relational database according to the modification of the use state; submitting transaction information which generates distributed global unique identification information according to the modified machine code; generating distributed global unique identification information according to the machine code in the transaction information; determining the machine code which is successfully occupied according to the transaction information; storing the machine code locally; generating distributed global unique identification information through a generation algorithm based on the locally stored machine code;
Or alternatively;
determining whether the current service state of the application process is normally closed;
if the machine code is determined to be normally closed, acquiring the occupied machine code in the application process;
releasing the machine code from a relational database; the relational database stores a machine code for generating distributed global unique identification information and a data table for describing service information related to the service state of the machine code;
wherein said releasing the machine code from the relational database comprises: inquiring a machine code matched with the machine code and the occupation state of the machine code in the relational database; modifying the service state of the inquired machine code from an occupied state to an idle state;
further comprises:
updating the service closing time of the queried machine code into the modification time for modifying the service using state from the occupied state to the idle state;
further comprises:
if the abnormal closing is determined, reading a machine code which is occupied in the use state in the relational database; determining whether the process of the application process exists according to the machine code; if the process does not exist, the step of releasing the machine code from the relational database is performed; if the abnormal closing is determined, reading a machine code which is occupied in the use state in the relational database; the machine code, comprising: and when the current service state of the application process is determined to be abnormally closed, reading the machine code with the occupied use state in the relational database through a detection script.
12. An electronic device, comprising:
a processor;
a memory for storing a program for processing network platform generated data, said program, when read and executed by said processor, performing the steps of:
acquiring starting information of an application process;
according to the starting information of the application process, locking a machine code which describes that the use state of the machine code is idle in a relational database; the data base stores a machine code for generating distributed global unique identification information and a data table for describing service information related to the service state of the machine code;
generating global unique identification information according to the locked machine code;
the obtaining the starting information of the application process includes: when the management object class in the software tool development kit is instantiated, starting information of an application process is acquired, specifically: determining a management class which needs to be instantiated as a management object in the software tool development package by a container starting annotation mode; acquiring starting information of the application process according to the instantiation processing of the determined management class;
wherein the generating globally unique identification information from the locked machine code comprises: modifying the use state of the locked machine code from idle to occupied; modifying the relevant service information describing the machine code in the relational database according to the modification of the use state; submitting transaction information which generates distributed global unique identification information according to the modified machine code; generating distributed global unique identification information according to the machine code in the transaction information; determining the machine code which is successfully occupied according to the transaction information; storing the machine code locally; generating distributed global unique identification information through a generation algorithm based on the locally stored machine code;
Or alternatively;
determining whether the current service state of the application process is normally closed;
if the machine code is determined to be normally closed, acquiring the occupied machine code in the application process;
releasing the machine code from a relational database; the relational database stores a machine code for generating distributed global unique identification information and a data table for describing service state related information of the machine code;
wherein said releasing the machine code from the relational database comprises: inquiring a machine code matched with the machine code and the occupation state of the machine code in the relational database; modifying the service state of the inquired machine code from an occupied state to an idle state;
further comprises:
updating the service closing time of the queried machine code into the modification time for modifying the service using state from the occupied state to the idle state;
further comprises:
if the abnormal closing is determined, reading a machine code which is occupied in the use state in the relational database; determining whether the process of the application process exists according to the machine code; if the process does not exist, the step of releasing the machine code from the relational database is performed; if the abnormal closing is determined, reading a machine code which is occupied in the use state in the relational database; the machine code, comprising: and when the current service state of the application process is determined to be abnormally closed, reading the machine code with the occupied use state in the relational database through a detection script.
CN202010517683.3A 2020-06-09 2020-06-09 Method and device for generating and managing distributed global unique identification information Active CN111831757B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010517683.3A CN111831757B (en) 2020-06-09 2020-06-09 Method and device for generating and managing distributed global unique identification information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010517683.3A CN111831757B (en) 2020-06-09 2020-06-09 Method and device for generating and managing distributed global unique identification information

Publications (2)

Publication Number Publication Date
CN111831757A CN111831757A (en) 2020-10-27
CN111831757B true CN111831757B (en) 2023-05-12

Family

ID=72898608

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010517683.3A Active CN111831757B (en) 2020-06-09 2020-06-09 Method and device for generating and managing distributed global unique identification information

Country Status (1)

Country Link
CN (1) CN111831757B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112559558B (en) * 2020-12-07 2024-04-09 北京理房通支付科技有限公司 Method and device for generating serial numbers, computing equipment and storage medium
CN112948593A (en) * 2021-03-18 2021-06-11 北京中经惠众科技有限公司 Knowledge graph generation method, device, equipment and medium
CN113255293A (en) * 2021-05-25 2021-08-13 首约科技(北京)有限公司 Control method and device for distributed architecture scalable order number generator
CN113708983B (en) * 2021-11-01 2022-02-11 湖南新云网科技有限公司 Distributed node ID generation method, device, equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101699439A (en) * 2009-11-16 2010-04-28 中兴通讯股份有限公司 Database transaction submitting method and device
US9171019B1 (en) * 2013-02-19 2015-10-27 Amazon Technologies, Inc. Distributed lock service with external lock information database
CN106572165A (en) * 2016-10-26 2017-04-19 宜人恒业科技发展(北京)有限公司 Distributed global unique ID application method
CN106682061A (en) * 2016-10-17 2017-05-17 暨南大学 Distributed system for collection and storage of origin data
CN107800733A (en) * 2016-08-31 2018-03-13 阿里巴巴集团控股有限公司 The generation method and equipment of session identification in distributed system
CN107968847A (en) * 2017-11-13 2018-04-27 深圳市华阅文化传媒有限公司 High Availabitity ID makers and its ID generation methods and device
CN108038145A (en) * 2017-11-23 2018-05-15 携程旅游网络技术(上海)有限公司 Distributed Services tracking, system, storage medium and electronic equipment
CN110633320A (en) * 2018-05-30 2019-12-31 北京京东尚科信息技术有限公司 Processing method, system, equipment and storage medium of distributed data service
CN111124635A (en) * 2019-12-06 2020-05-08 北京达佳互联信息技术有限公司 Task processing method and device, electronic equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2010250536A1 (en) * 2009-05-18 2012-01-19 Shuhei Nishiyama Meta-information sharing distributed database system in virtual single memory storage

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101699439A (en) * 2009-11-16 2010-04-28 中兴通讯股份有限公司 Database transaction submitting method and device
US9171019B1 (en) * 2013-02-19 2015-10-27 Amazon Technologies, Inc. Distributed lock service with external lock information database
CN107800733A (en) * 2016-08-31 2018-03-13 阿里巴巴集团控股有限公司 The generation method and equipment of session identification in distributed system
CN106682061A (en) * 2016-10-17 2017-05-17 暨南大学 Distributed system for collection and storage of origin data
CN106572165A (en) * 2016-10-26 2017-04-19 宜人恒业科技发展(北京)有限公司 Distributed global unique ID application method
CN107968847A (en) * 2017-11-13 2018-04-27 深圳市华阅文化传媒有限公司 High Availabitity ID makers and its ID generation methods and device
CN108038145A (en) * 2017-11-23 2018-05-15 携程旅游网络技术(上海)有限公司 Distributed Services tracking, system, storage medium and electronic equipment
CN110633320A (en) * 2018-05-30 2019-12-31 北京京东尚科信息技术有限公司 Processing method, system, equipment and storage medium of distributed data service
CN111124635A (en) * 2019-12-06 2020-05-08 北京达佳互联信息技术有限公司 Task processing method and device, electronic equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Performance evaluation for CRUD operations in asynchronously replicated document oriented database;Ciprian-Octavian Truica et al.;《2015 20th International Conference on Control Systems and Computer Science》;191-196 *
云物联平台的数据汇聚与存储方法研究;祝幸辉;《中国优秀硕士学位论文全文数据库 信息科技辑》;I137-157 *

Also Published As

Publication number Publication date
CN111831757A (en) 2020-10-27

Similar Documents

Publication Publication Date Title
CN111831757B (en) Method and device for generating and managing distributed global unique identification information
US11586506B2 (en) System and method for indexing image backups
TWI689181B (en) Data processing method and system
CN106844014B (en) Method and device for realizing suspension prevention of distributed transactions
CN110825420B (en) Method, device, equipment and storage medium for updating configuration parameters of distributed cluster
CN111367659B (en) Resource management method, equipment and medium for nodes in Kubernetes
CN106921712B (en) Service processing method and device
CN106155775B (en) Message processing method, device and system
WO2017028394A1 (en) Example-based distributed data recovery method and apparatus
CN112558997A (en) Method and device for deploying applications
CN111399764B (en) Data storage method, data reading device, data storage equipment and data storage medium
CN110968603B (en) Data access method and device
CN107612950A (en) A kind of method, apparatus, system, electronic equipment that service is provided
CN106897345B (en) Data storage method and device
CN111258742B (en) Data synchronization method, system, computing device and storage medium
WO2022242372A1 (en) Object processing method and apparatus, computer device, and storage medium
WO2016101759A1 (en) Data routing method, data management device and distributed storage system
CN112054919B (en) Method, device, storage medium and system for generating ID (identity) of container cluster under stateless condition
US9110803B2 (en) Solvable exceptions
CN108023920B (en) Data packet transmission method, equipment and application interface
CN111367921A (en) Data object refreshing method and device
CN115587141A (en) Database synchronization method and device
US11308048B2 (en) Database migration method, apparatus, device, and computer-readable medium
CN112738181B (en) Method, device and server for cluster external IP access
US6233621B1 (en) System and method for space efficient hashcode allocation

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