Method, equipment and system for generating ID
A technology for generating units and corresponding relationships, applied in the field of data processing, can solve problems such as inability to effectively generate globally unique IDs, and achieve high reliability, simple and convenient call interface, and easy-to-use effects
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0053] The embodiment of the present invention provides an ID generation method, such as figure 1 Shown, including:
[0054] Step S101: The first server receives an ID acquisition instruction initiated by the calling end;
[0055] In this step, the first server is configured with a Get interface for sending and receiving information with each of the calling terminals; the calling terminal is configured with a calling interface for sending and receiving information with the first server .
[0056] Preferably, the memcache protocol is used for communication between the first server end and the calling end. When the memcache protocol is used for communication, the memcache client can be directly used as the caller, which reduces the workload of caller deployment and facilitates maintenance.
[0057] Step S102: According to the ID acquisition instruction, the first server generates an ID value based on the server identification number and self-increment sequence, or generates an ID value...
Embodiment 2
[0069] The embodiment of the present invention provides an ID generating device, which is preferably a server, such as figure 2 As shown, it includes: an instruction receiving unit 210, an ID generating unit 220, and an ID sending unit 230, where:
[0070] The instruction receiving unit 210 is configured to receive an ID acquisition instruction initiated by the calling terminal;
[0071] The ID generating unit 220 is configured to generate an ID value based on the device identification number and self-increment sequence according to the ID acquisition instruction, or generate an ID value based on the current time stamp, the device identification number and the self-increment sequence;
[0072] The ID sending unit 230 is configured to send the ID generated by the ID generating unit 220 to the calling end.
[0073] Wherein, the instruction receiving unit 210 and the ID sending unit 230 communicate with each caller through the Get interface configured by the device. Preferably, the prot...
Embodiment 3
[0083] The embodiment of the present invention provides an ID generation system, such as image 3 As shown, it includes: a first server 310 and one or more calling terminals 320;
[0084] The calling terminal 320 is configured to initiate an ID acquisition instruction to the first server 310 under the trigger of the service, and receive the ID value fed back by the first server 320;
[0085] The first server 310 is configured to generate an ID value based on the server identification number and self-increment sequence according to the received ID acquisition instruction, or generate an ID value based on the current timestamp, server identification number and self-increment sequence, and The generated ID value is sent to the calling end 320.
[0086] Among them, the first server 310 is configured with a Get interface responsible for sending and receiving information with each calling terminal 320; the calling terminal 320 is configured with a calling interface for sending and receivin...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com