CN109525658A - A kind of production method, server, equipment, storage medium and operation system - Google Patents

A kind of production method, server, equipment, storage medium and operation system Download PDF

Info

Publication number
CN109525658A
CN109525658A CN201811330409.4A CN201811330409A CN109525658A CN 109525658 A CN109525658 A CN 109525658A CN 201811330409 A CN201811330409 A CN 201811330409A CN 109525658 A CN109525658 A CN 109525658A
Authority
CN
China
Prior art keywords
identification number
business
orderly
cluster network
segment
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.)
Pending
Application number
CN201811330409.4A
Other languages
Chinese (zh)
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.)
Guangzhou Huya Technology Co Ltd
Original Assignee
Guangzhou Huya Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Huya Technology Co Ltd filed Critical Guangzhou Huya Technology Co Ltd
Priority to CN201811330409.4A priority Critical patent/CN109525658A/en
Publication of CN109525658A publication Critical patent/CN109525658A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/61Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources taking into account QoS or priority requirements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1073Registration or de-registration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1044Group management mechanisms 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/133Protocols for remote procedure calls [RPC]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0861Generation of secret information including derivation or calculation of cryptographic keys or passwords
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0861Generation of secret information including derivation or calculation of cryptographic keys or passwords
    • H04L9/0869Generation of secret information including derivation or calculation of cryptographic keys or passwords involving random numbers or seeds

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Mathematical Physics (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Multimedia (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a kind of production method, server, equipment, storage medium and operation systems.This method is requested by receiving from service server according to the number of taking that business operation is sent;The business information of the service server is extracted from the number of taking request;According to the business information determine number segment section, from cluster network generate and with obtain identification number in the matched orderly number segment in the number segment section;By the identification number assignment to the service server, solve the problems, such as that existing production system can not guarantee that simultaneously identification number is continuous, and the unified management due to using the production server number of being identified, it can be adapted for high concurrent scene, guarantee the performance capabilities of identification number assignment, strong consistency and the generalization of identification number are further realized, to facilitate O&M.

Description

A kind of production method, server, equipment, storage medium and operation system
Technical field
The present embodiments relate to cluster network technology more particularly to a kind of production method, server, equipment, storage Jie Matter and operation system.
Background technique
During current internet is fast-developing, back-end services framework also becomes increasingly complex, in complicated distribution In system, there are more and more application scenarios to need a globally unique identifier number, such as account system, ordering system and message System etc..
Current some technic relization schemes existing in the industry are realized including database from implementation, the snowflake increased Algorithm and related derivative algorithm etc..But there is certain technological deficiency in both the above implementation.
In one-of-a-kind system, the insertion characteristic of relevant database (such as MYSQL) can rely on, to generate unique identifying number. But the shortcomings that this scheme is excessive dependence database, when database is abnormal, whole system will paralyse.And Database can have single-point in distributed scene, not be suitable for being deployed in cluster network.Further, the reading of database Write performance is lower, under high concurrent scene, can there is severe performance problem.
Snowflake algorithm performance is higher, but the sequence of its generated identification number is discontinuous, is unfavorable for identification number Generalization and uniformity, so that being unfavorable for the service operation in later period.
Summary of the invention
The present invention provides a kind of production method, server, equipment, storage medium and operation system, to realize identification number Strong consistency and generalization, to further facilitate O&M.
In a first aspect, the method is applied in production server the embodiment of the invention provides a kind of production method, packet It includes:
It receives and is requested from service server according to the number of taking that business operation is sent;
The business information of the service server is extracted from the number of taking request;
According to the business information determine number segment section, from cluster network generate and with the number segment section Identification number is obtained in matched orderly number segment;
By the identification number assignment to the service server.
Further, it receives and is requested from service server according to the number of taking that business demand operation is sent, comprising:
It receives and is requested from service server according to the number of taking that business demand is sent, and the number of taking request is stored in request In queue;
If the quantity that the number of taking is requested in the request queue is more than preset quantity, filter described in the request queue The number of taking request.
Further, the business information includes: the quantity required of type of service and identification number;
According to the business information determine number segment section, from cluster network generate and with the number segment section Identification number is obtained in matched orderly number segment, comprising:
The number segment section for type of service setting is determined in preset business configuration;
It determines for being stored with the memory space with the matched orderly number segment in the number segment section, wherein described to have Serial number section is stored with continuous identification number;
Judge whether the quantity of the identification number stored in the memory space meets the quantity required;
If so, obtaining the identification number that quantity meets the quantity required from the memory space;
If it is not, then requesting to generate quantity to be mark designated value and positioned at the number segment section to the cluster network Know number orderly number segment of composition, the orderly number segment is stored in the memory space, and returns and deposited described in execution judgement Whether the quantity of the identification number stored in storage space meets the quantity required.
Further, further includes:
Detect the quantity of unappropriated identification number in the memory space;
If the quantity of unappropriated identification number is less than preset threshold in the memory space, requested to the cluster network Generating quantity is identification number composition orderly number segment designated value and positioned at the number segment section, has serial number for described Section is stored in the memory space.
Further, Xiang Suoshu cluster network request generate quantity be the designated value and be located at the number segment area Between identification number form orderly number segment, the orderly number segment is stored in the memory space, comprising:
The designated value of the quantity of request production number every time is determined from the business configuration;
Determine the section tail identification number for the orderly number segment being stored in the memory space;
It sends and produces a number notice, to notify the cluster network is generated to be composed of the identification number that quantity is the designated value Orderly number segment, wherein the identification number of generation is after being in described section of tail identification number according to preset ordering rule Continuous identification number;
The orderly number segment of generation is stored in the memory space.
Further, it sends and produces a number notice, be the mark of the designated value by quantity to notify the cluster network to generate Number orderly number segment being composed, comprising:
It sends and produces a number notice, generated in a manner of notifying the cluster network according to leader's host switching at runtime and optimistic locking Quantity is the identification number of the designated value, to be combined into orderly number segment.
Second aspect, the embodiment of the invention provides a kind of production server, which includes:
The number of taking request receiving module is requested for receiving from service server according to the number of taking that business demand is sent;
Business information extraction module, for extracting the business information of the service server from the number of taking request;
Identification number obtains module, and the number segment section for being determined according to the business information is generated from cluster network Identification number is obtained with the matched orderly number segment in the number segment section;
Identification number assignment module is used for the identification number assignment to the service server.
Further, the cluster network includes: business cluster network and backup cluster network;
The system backs up the business cluster network in the normal processing business server of the business cluster network In the backup cluster network;
The system uses the backup cluster network processing business service when the business cluster network breaks down Device.
The third aspect, the embodiment of the invention provides a kind of operation system, which includes: service server, collection Group network and production server;
The service server is used to send the number of taking request to the production server according to business operation;
The production server is used to extract the business information of the service server from the number of taking request;
The production server is also used to the number segment section determined according to the business information;
The cluster network is for generating and the matched orderly number segment in the number segment section;
It is that the production server is also used to generate from cluster network and with the number segment section is matched serial number Identification number is obtained in section;
The production server is also used to the identification number assignment to the service server.
Further, the cluster network includes: business cluster network and backup cluster network;
The system backs up the business cluster network in described in the normal processing business of the business cluster network In backup cluster network;
The system uses the backup cluster network processing business when the business cluster network breaks down.
Fourth aspect, the embodiment of the invention provides a kind of production equipment, which includes: memory and one or more A processor;
The memory, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processing Device realizes the production method as described in any in first aspect.
5th aspect, the embodiment of the invention provides a kind of storage medium comprising computer executable instructions, the meters Calculation machine executable instruction by computer processor when being executed for executing the production method as described in any in first aspect.
The embodiment of the present invention is requested by receiving from service server according to the number of taking that business operation is sent;From the number of taking The business information of the service server is extracted in request;According to the number segment section that the business information determines, from cluster net Network generate and with obtain identification number in the matched orderly number segment in the number segment section;By the identification number assignment to institute Service server is stated, as a result, due to using by unified distribution of the productions server to identification number, and is corresponded to different Business information is assigned corresponding orderly number segment, solves in existing production system using mark caused by snowflake algorithm The discontinuous problem of sequence of knowledge number, and it is advantageously implemented strong consistency and the generalization of identification number, to facilitate O&M;Separately Outside, different from using the database number of being identified distribution by the way of, but use productions server notify cluster network produced Number, single-point problem caused by using database is avoided, so that the embodiment of the present invention is suitable for distributed type assemblies High concurrent scene in network, guarantees the performance capabilities of identification number assignment.To sum up, production method provided by the embodiment of the present invention Not only it can guarantee that the identification number corresponding to same business information is continuous, but also the number of being identified point in a distributed system can be improved The performance capabilities matched.
Detailed description of the invention
Fig. 1 is a kind of flow chart for production method that the embodiment of the present invention one provides;
Fig. 2A is a kind of flow chart of production method provided by Embodiment 2 of the present invention;
Fig. 2 B is a kind of schematic diagram of pair buffers provided by Embodiment 2 of the present invention;
Fig. 3 is a kind of structural schematic diagram for production server that the embodiment of the present invention three provides;
Fig. 4 is a kind of structural schematic diagram for operation system that the embodiment of the present invention four provides;
Fig. 5 is a kind of structural schematic diagram for production equipment that the embodiment of the present invention five provides.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to just Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
Embodiment one
Fig. 1 is a kind of flow chart for production method that the embodiment of the present invention one provides, and the present embodiment is applicable to as business Server provides the case where globally unique identifier, and this method can be applied in production server.This method can pass through production Number equipment executes, and the present embodiment is not construed as limiting production equipment.The present embodiment is said so that the number of production equipment is server as an example It is bright, wherein server can be separate server or cluster server, can be property server or virtual server.
With reference to Fig. 1, this method specifically comprises the following steps:
S110, it receives and is requested from service server according to the number of taking that business operation is sent.
In the present embodiment, service server is integrated in operation system, for responding business operation, is needed with processing business It asks.The present embodiment is not construed as limiting the application of service server, which is integrated in order management system, message system With Account Administration system etc..Corresponding different operation system has different business demands, and different business demands has different Business operation, different service servers respond different business operations.It is corresponding if ordering system is mainly used for the management of order Business operation can be addition, deletion and change of order etc..For another example, Account Administration system is mainly used for the management of account number, Corresponding business operation can be registration, cancellation and change of account number etc..
Further, the number of the taking request in the present embodiment is for requesting production server assigned identification number.Current mutual During networking is fast-developing, back-end services framework also becomes increasingly complex, and different business operations is responded in service server When, need to determine the business object of business operation according to globally unique identifier number, to guarantee the orderly processing of business.
The present embodiment is not construed as limiting to how production server receives the number of taking request.In one embodiment, service server It can be sent out by the remote procedure call (Remote Procedure Call, RPC) that production server provides to production server The number of taking is sent to request, so that production server receives the number of taking request.
Further, the present embodiment is not construed as limiting the generation opportunity that the number of taking is requested.In one embodiment, the number of taking is requested Generation opportunity is that service server responds business operation, and the corresponding business object of the business operation is unallocated identification number.With It is illustrated for Account Administration system, when Account Administration system receives the request of registration of the Client-initiated about account number, Whether registered registration service is then called to judge the user, if it is not, then the number of taking request is sent to production server, for user point With identification number.
S120, the business information that the service server is extracted from the number of taking request.
In the present embodiment, the number of taking request in include service server response business operation business information, the business Information may be used to indicate that the specific request content of the number of taking request, can be also used for showing business corresponding to service server Operation and business object.Business object is to carry out the corresponding object of business operation.Such as in registration service, business object is to need The user registered.
Further, in the present embodiment, production server is by according to the unified distribution of the business information number of being identified, to protect Demonstrate,prove the standardization of identification number.
S130, according to the business information determine number segment section, from cluster network generate and with the number segment Identification number is obtained in the matched orderly number segment in section.
In the present embodiment, cluster network is the component part of distributed system.In general, cluster network is used to take in business In the device course of work of being engaged in, data caused by the business object of business operation are read and write.In order to enable cluster network can be looked for smoothly To the storage location of the corresponding data of business object, the read-write of data is carried out, cluster network is needed to generate the business object Globally unique identifier number.
Further, in the present embodiment, to identification number by taking business information and number segment section are provided with corresponding relationship as an example Carry out unified distribution management.The corresponding relationship can be configured by configuration center.That is, not according to business information Together, the identification number in jack per station section section is distributed for the corresponding business object of service server.If business information includes service class Type distributes different number segment sections then for different types of service.
The present embodiment is not construed as limiting the composition of identification number, can be any combination of number, letter and additional character.It should Combination can be set to fixed length or random length.Random length is set by identification number, to allow the later period for the needs of operation expanding, In identification number prefixing.The present embodiment is illustrated by taking fixed length as an example, sets fixed length for identification number, it is ensured that identification number Unified management.
It should be noted that the present embodiment is checked numbers, the definition in section section is not construed as limiting, and can be preset to identification number Ordering rule, that is, can determine the section of number segment.
In one embodiment, identification number is that pure digi-tal can be then ranked up according to the size of number.
In one embodiment, identification number is that pure letter can be then ranked up according to sequence of the letter in alphabet.
In one embodiment, identification number is the combination of number, letter and additional character, then can be according to predetermined three The ordering rule of person is ranked up.The ordering rule can be the sequence according to number, letter and additional character.As " 5 ", " 2 ", " z ", " a ", " b " and " * ", according to the ordering rule, this is ordered as " 25abz* ".
It should be noted that should be also such as ranked up according to the actual situation to identification number when being ranked up to identification number When, when identification number is set as random length, can from left to right be compared;It, can be from the right side when identification number is set as fixed length It is compared to a left side.
Further, orderly number segment is matched with number segment section refers to that orderly number segment is one section in number segment section Consecutive number section.And the quantity of the identification number in orderly number segment is not construed as limiting in the present embodiment.If number segment section is " 0- 1000 ", then orderly number segment " 500 " and " 300-600 " are matched with number segment section " 0-1000 ".
The disposable quantity for obtaining identification number is not construed as limiting in the present embodiment, single acquisition is can be or batch obtains It takes.Further, the present embodiment is also not construed as limiting to how to obtain identification number, be can be and is obtained or obtain in real time in advance.
In one embodiment, it is illustrated for obtaining in real time.According to the business information determine number segment section, It is sent to cluster network and produces a number request, wherein is described to produce number request for requesting cluster network to generate and the number segment section Matched orderly number segment, the quantity of identification number can be by the quantity required of identification number in business information in the orderly number segment It determines.By receiving the number of taking request, is then sent to cluster network and produce a number request, to reach according to service server identification number Quantity required generates the effect of the identification number of respective numbers, it is possible to reduce occupancy of the identification number to memory.
In one embodiment, it is illustrated for obtaining in advance.Cluster network has and the number segment area in advance Between matched orderly number segment be stored in preset memory space, wherein memory space can be located at memory in;It obtains in advance It may is that production server is generated from cluster network and marked with being obtained in the matched orderly number segment in the number segment section Knowledge number, and orderly number segment is stored in advance in memory space.Further, after receiving the number of taking request, it can from Identification number is obtained in memory space.By obtaining in advance, it is possible to reduce the io operation in cluster network reduces service delay, Promotion is handled up, and when cluster network breaks down, and production server apparatus still can be with of short duration external offer identification number Distribution, improves availability.
S140, by the identification number assignment to the service server.
In the present embodiment, service server is after getting the identification number being assigned to, can be in subsequent business operation Using the identification number, as the exclusive evidence for carrying out reading and writing data in cluster network.
The embodiment of the present invention is requested by receiving from service server according to the number of taking that business operation is sent;From the number of taking The business information of the service server is extracted in request;According to the number segment section that the business information determines, from cluster net Network generate and with obtain identification number in the matched orderly number segment in the number segment section;By the identification number assignment to institute Service server is stated, as a result, due to using by unified distribution of the productions server to identification number, and is corresponded to different Business information is assigned corresponding orderly number segment, solves in existing production system using mark caused by snowflake algorithm The discontinuous problem of sequence of knowledge number, and it is advantageously implemented strong consistency and the generalization of identification number, to facilitate O&M;Separately Outside, different from using the database number of being identified distribution by the way of, but use productions server notify cluster network produced Number, single-point problem caused by using database is avoided, so that the embodiment of the present invention is suitable for distributed type assemblies High concurrent scene in network, guarantees the performance capabilities of identification number assignment.To sum up, production method provided by the embodiment of the present invention Not only it can guarantee that the identification number corresponding to same business information is continuous, but also the number of being identified point in a distributed system can be improved The performance capabilities matched.
Embodiment two
Fig. 2A is a kind of flow chart of production method provided by Embodiment 2 of the present invention, and Fig. 2 B is that the embodiment of the present invention two mentions A kind of schematic diagram of the pair buffers supplied.The present embodiment further refines on the basis of the above embodiments, Fig. 2A this method Specifically includes the following steps:
S201, it receives and is requested from service server according to the number of taking that business demand is sent, and the number of taking is requested to store In request queue.
In the present embodiment, request queue is the queue of first in first out, for storing the number of taking request to be managed collectively.
If the quantity that the number of taking is requested in S202, the request queue is more than preset quantity, filter in the request queue The number of the taking request.
In the present embodiment, it can be avoided the occurrence of by the quantity of the number of taking request in limitation request queue, guarantee because the number of taking is asked The case where asking quantity excessive and leading to production servers go down.Specific filter type can be when the quantity of the number of taking request is super When crossing preset quantity, the subsequent number of taking request is shielded.
S203, the business information that the service server is extracted from the number of taking request, wherein the business information packet It includes: the quantity required of type of service and identification number.
In the present embodiment, type of service can be hierarchical structure, and business is arranged in type of service according to business demand Type.
For clarity, the present embodiment is illustrated so that service server is integrated in Account Administration system as an example.One In embodiment, registration service is being sent out by remote procedure call (Remote Procedure Call, RPC) to production server When the number of taking being sent to request, the business information of the quantity required of type of service and identification number is accompanied in the number of taking request.Further, The type of service may include the business subtype such as business scenario type and service area.Specifically, business scenario type can be with It is customer identification number and anonymous identification number etc.;Service area can be Asia, Europe and America etc..
S204, the number segment section being arranged for the type of service is determined in preset business configuration.
In the present embodiment, preset business configuration is for configuring the corresponding number segment section of different types of service.This is pre- If business configuration can unify to be configured by configuration center.When in use, it is obtained from configuration center.
S205, it determines for being stored with the memory space with the matched orderly number segment in the number segment section.
The present embodiment is illustrated for being obtained orderly number segment in advance in memory space, which can position In memory.The orderly number segment is stored with continuous identification number.
Specifically, cluster network have in advance be stored in the matched orderly number segment in the number segment section it is preset In memory space, production server is after receiving the number of taking request, it can identification number is obtained from memory space, it is possible to reduce Read-write operation in cluster network reduces service delay, and promotion is handled up, and when cluster network breaks down, produces a number clothes Business device still can improve availability with the distribution of of short duration external offer identification number.
S206, judge whether the quantity of the identification number stored in the memory space meets the quantity required.
If the quantity of the identification number stored in the memory space is unsatisfactory for the quantity required, S207 is executed;If institute The quantity for stating the identification number stored in memory space meets the quantity required, thens follow the steps S208.
It is mark designated value and positioned at the number segment section that the request of S207, Xiang Suoshu cluster network, which generates quantity, Number orderly number segment of composition, the orderly number segment is stored in the memory space.
In the present embodiment, production server is sent to cluster network produces a number request, and cluster network is generated according to a number request is produced Quantity is identification number composition orderly number segment designated value and positioned at the number segment section, and the orderly number segment is deposited It is stored in the memory space.
In the present embodiment, after executing the step S207, S206 is returned to step.
In this implementation example to how to the cluster network request generate quantity be designated value and be located at the number The identification number in section section forms orderly number segment, and the orderly number segment is stored in the memory space and is not construed as limiting.
In one embodiment, step S207 can be further refined as step S2071-S2074:
S2071, the designated value that the quantity of request production number every time is determined from the business configuration.
In the present embodiment, business configuration can be downloaded from configuration center, and request production number every time is provided in the business configuration Quantity designated value.
S2072, the section tail identification number for determining the orderly number segment being stored in the memory space.
In the present embodiment, section tail identification number is to be stored in memory space to sort in a last identification number.Pass through Section tail identification number is determined, to determine the initial position for generating orderly number segment to cluster network request.As section tail identification number is " 1000 ", then cluster network will generate the orderly number segment with identification number " 1001 " for origin identification number according to production number request.
S2073, production number notice is sent, is the identification number group of the designated value by quantity to notify the cluster network to generate Orderly number segment made of conjunction.
In the present embodiment, the identification number of generation is after being in described section of tail identification number according to preset ordering rule Continuous identification number.
It should be noted that cluster network is the component part of distributed system in the present embodiment.And in distributed system Environment in, if using the insertion characteristic of relevant database (such as MYSQL) to generate unique identifying number, when database occur it is different When normal, whole system will paralyse.And database can have single-point in the environment of distributed system, not be suitable for It is deployed in cluster network.Further, the readwrite performance of database is lower, under high concurrent scene, can there is serious performance Problem.
In order to solve this problem, it in the present embodiment, sends and produces a number notice, to notify the cluster network according to leader's host The mode generation quantity of switching at runtime and optimistic locking is the identification number of the designated value, to be combined into orderly number segment.
Illustratively, cluster network can use zookeeper cluster.Zookeeper cluster has data strong consistency And the characteristics of High Availabitity.Each machine in Zookeeper cluster is divided into leader host (Leader) and follows host (Follower) two roles.When data are written, Leader is first written, and after Leader agrees to write-in, reinforms Follower write-in.This ensure that the consistency of data.In addition, when client reads number, because data are the same, Data can be read from any one machine.Here Leader role there is the hidden danger of Single Point of Faliure, Zookeeper slave Solve the problems, such as the Single Point of Faliure of Leader, Leader are what which platform machine was unfixed, but was elected in system.Choosing Lifting process is, as soon as do not have Leader in any machine discovery cluster in cluster, recommends oneself to be Leader, other machines Agree to, when machine more than a half agrees to it for Leader, election terminates.Even if working as Leader machine delay machine in this way Afterwards, new Leader can be elected quickly, ensure that the High Availabitity of Zookeeper cluster itself.
S2074, the orderly number segment of generation is stored in the memory space.
S208, the identification number that quantity meets the quantity required is obtained from the memory space.
In the present embodiment, the mark that quantity meets the quantity required is obtained from memory space according to preset ordering rule Knowledge number.If quantity required is 5, the orderly number segment in memory space is " 1-100 ", then takes out 5 identification numbers " 1-5 ".
S209, by the identification number assignment to the service server.
In the present embodiment, the identification number is sent back into service server, service server is getting the mark being assigned to Know number after, in subsequent business operation, the identification number can be used, as in cluster network carry out reading and writing data it is unique Voucher.
The quantity of unappropriated identification number in S210, the detection memory space.
In the present embodiment, if the quantity of unappropriated identification number is less than preset threshold in the memory space, step is executed Rapid S207.
In the present embodiment, by using serial number section is previously stored in memory space, Lai Jinhang cache optimization is avoided Because every time only obtain an identification number caused by and cluster network carry out frequent io interaction, and then increase update inconsistency and Increase the time-consuming situation of corresponding response.But when the orderly number segment has been assigned, still there can be primary production number again and ask Ask, using to the cluster network request generate quantity as designated value and be located at the number segment section identification number formed The orderly number segment is stored in the memory space by serial number section.That is, to service server allocation identification Before number, need that first orderly number segment is stored in memory space, then the time lag curve of service server will appear an idol Your spine.For this problem, the present embodiment passes through the mechanism more cached, a preset threshold is set, when in memory space Orderly number segment consumption when reaching preset threshold, then it is asynchronous that next orderly number segment is loaded into memory space, this Sample continues to use the distribution of the buffered good orderly number segment number of being identified after this orderly number segment is finished, so that it may To accomplish the smooth number of taking, so that the response for promoting service is time-consuming.
The present embodiment is not construed as limiting to the orderly number segment is stored in the specific storage mode in the memory space, It can be and the orderly number segment that multiple production number request obtains is stored in a piece of memory space, be also possible to ask multiple production number The orderly number segment asked is stored in different memory spaces.It should be noted that repeatedly production number requests what is obtained to have serial number It is also continuous between code section.
In one embodiment, it is illustrated by taking pair buffers as an example.Referring to Fig. 2 B, orderly number segment A and there is serial number The orderly number segment that section B obtains for production number request twice, the memory space A and memory space B being stored respectively in memory space, And the designated value of the quantity of request production number is 1000 every time.Producing a number process for request twice may is that having for memory space A storage Serial number section A (1-1000) is by after the number of taking to 800 or 800, it is assumed that preset threshold 800 then carries out secondary production Number request, to obtain orderly number segment B (1001-2000), and orderly number segment B is stored in memory space B.Until orderly Identification number in number segment A is all assigned, then during the number of taking in later period, obtains quantity from orderly number segment B and meet The identification number of the quantity required.Likewise, when the orderly number segment B of memory space B storage has been taken 800 marks Number, remaining 200 identification numbers then carry out the production number request of third time, to obtain new orderly number segment A, and will be new orderly Number segment A is stored in memory space A.
The embodiment of the present invention is requested by receiving from service server according to the number of taking that business demand is sent, and is taken described Number request is stored in request queue;If in the request queue number of taking request quantity be more than preset quantity, filtering described in The number of the taking request in request queue, realizes the quantity of the number of taking request in limitation request queue, uses request queue pair as a result, The number of taking request is managed collectively, and guarantee to avoid the occurrence of causes production server apparatus to be paralysed because the number of taking number of requests is excessive Situation, further, so that the embodiment of the present invention is suitable for the application scenarios of high concurrent.
Further, the business information of the service server, the business information packet are extracted from the number of taking request It includes: the quantity required of type of service and identification number;Number for type of service setting is determined in preset business configuration Code section section, as a result, due to using by unified distribution of the productions server to identification number, and the business that correspondence is different Information is assigned corresponding orderly number segment, solves in existing production system using identification number caused by snowflake algorithm The discontinuous problem of sequence, and strong consistency and the generalization of identification number are advantageously implemented, to facilitate O&M;
Further, due to by having cluster network in advance and the matched orderly number segment in the number segment section It is stored in preset memory space, production server is after receiving the number of taking request, it can mark is obtained from memory space Knowledge number, it is possible to reduce the read-write operation in cluster network reduces service delay, and promotion is handled up, and occurs in cluster network When failure, production server still can improve availability with the distribution of of short duration external offer identification number.
Further, different from using the database number of being identified distribution by the way of, but use by notifying the collection Group network is the identification number of the designated value according to the mode generation quantity of leader's host switching at runtime and optimistic locking, to be combined into Orderly number segment avoids single-point problem caused by using database, so that the embodiment of the present invention is suitable for dividing High concurrent scene in cloth cluster network realizes the high availability of cluster itself, guarantees the performance capabilities of identification number assignment.
Further, using the quantity for detecting unappropriated identification number in the memory space, if in the memory space The quantity of unappropriated identification number is less than preset threshold, then sends again to cluster network and produce a number request, avoid service server Time lag curve there is the case where spine once in a while, realize the smooth number of taking effect.
Embodiment three
Fig. 3 is a kind of structural schematic diagram for production server that the embodiment of the present invention three provides, and the present embodiment is applicable to The case where providing globally unique identifier for the business object in service server.The production server can be separate server Or cluster server, it can be property server or virtual server.
With reference to Fig. 3, which is specifically included such as flowering structure: the number of taking request receiving module 310, business information are extracted Module 320, identification number obtain module 330 and identification number assignment module 340.
The number of taking request receiving module 310 is requested for receiving from service server according to the number of taking that business demand is sent.
Business information extraction module 320, for extracting the business information of the service server from the number of taking request.
Identification number obtains module 330, and the number segment section for being determined according to the business information is generated from cluster network With obtain identification number in the matched orderly number segment in the number segment section.
Identification number assignment module 340 is used for the identification number assignment to the service server.
The embodiment of the present invention is requested by receiving from service server according to the number of taking that business operation is sent;From the number of taking The business information of the service server is extracted in request;According to the number segment section that the business information determines, from cluster net Network generate and with obtain identification number in the matched orderly number segment in the number segment section;By the identification number assignment to institute Service server is stated, as a result, due to using by unified distribution of the productions server to identification number, and is corresponded to different Business information is assigned corresponding orderly number segment, solves in existing production system using mark caused by snowflake algorithm The discontinuous problem of sequence of knowledge number, and it is advantageously implemented strong consistency and the generalization of identification number, to facilitate O&M;Separately Outside, different from using the database number of being identified distribution by the way of, but use productions server notify cluster network produced Number, single-point problem caused by using database is avoided, so that the embodiment of the present invention is suitable for distributed type assemblies High concurrent scene in network, guarantees the performance capabilities of identification number assignment.To sum up, production method provided by the embodiment of the present invention Not only it can guarantee that the identification number corresponding to same business information is continuous, but also the number of being identified point in a distributed system can be improved The performance capabilities matched.
On the basis of the above embodiments, the number of taking request receiving module 310, comprising:
The number of taking request reception unit is requested for receiving from service server according to the number of taking that business demand is sent, and will The number of the taking request is stored in request queue.
Filter element is requested, if the quantity for the number of taking in the request queue to be requested is more than preset quantity, filters institute State the number of the taking request in request queue.
On the basis of the above embodiments, the business information includes: the quantity required of type of service and identification number.
Identification number obtains module 330
Number segment interval determination unit, for determining number for type of service setting in preset business configuration Code section section.
Memory space determination unit, for determining for being stored with and the matched orderly number segment in the number segment section Memory space, wherein the orderly number segment is stored with continuous identification number.
Quantity required judging unit, for judging it is described whether the quantity of the identification number stored in the memory space meets Quantity required.
Identification number acquiring unit, if the quantity of the identification number for storing in the memory space meets the demand number Amount then obtains the identification number that quantity meets the quantity required from the memory space.
Orderly number segment storage unit, if the quantity of the identification number for storing in the memory space is unsatisfactory for the need Quantity is sought, then requests to generate quantity to be identification number group designated value and positioned at the number segment section to the cluster network At orderly number segment, the orderly number segment is stored in the memory space, and returns to execution and judges the memory space Whether the quantity of the identification number of middle storage meets the quantity required.
On the basis of the above embodiments, which includes:
Unallocated identification number detection module, for detecting the quantity of unappropriated identification number in the memory space.
Orderly number segment memory module, if the quantity for unappropriated identification number in the memory space is less than default threshold Value, then to the cluster network request generate quantity be designated value and be located at the number segment section identification number composition have The orderly number segment is stored in the memory space by serial number section.
On the basis of the above embodiments, orderly number segment memory module includes:
Designated value determination unit, for the cluster network request generate quantity be the designated value and be located at The identification number in the number segment section forms orderly number segment, when the orderly number segment is stored in the memory space, The designated value of the quantity of request production number every time is determined from the business configuration.
Section tail identification number determination unit, for determining the section tail tag for the orderly number segment being stored in the memory space Knowledge number.
A number notice transmission unit is produced, a number notice is produced for sending, is described to notify the cluster network to generate by quantity The orderly number segment that the identification number of designated value is composed, wherein the identification number of generation is according to preset ordering rule Continuous identification number after described section of tail identification number.
Orderly number segment generation unit, for the orderly number segment generated to be stored in the memory space.
On the basis of the above embodiments, producing a number notice transmission unit includes:
A number notice transmission sub-unit is produced, produces a number notice for sending, to notify that the cluster network is dynamic according to leader's host The mode generation quantity of state switching and optimistic locking is the identification number of the designated value, to be combined into orderly number segment.
Method provided by any embodiment of the invention can be performed in the said goods, has the corresponding functional module of execution method And beneficial effect.
Example IV
Fig. 4 is the structural schematic diagram of a kind of operation system that the embodiment of the present invention four provides, the present embodiment be applicable to for The case where business object in service server provides globally unique identifier.
Illustratively, service server is integrated in operation system, for responding business operation, with processing business demand. The present embodiment to service server application be not construed as limiting, the service server be integrated in order management system, message system and Account Administration system etc..Corresponding different operation system has different business demands, and different business demands has different industry Business operation, different service servers respond different business operations.It is corresponding if ordering system is mainly used for the management of order Business operation can be addition, deletion and change of order etc.,.For another example, Account Administration system is mainly used for the management of account number, right The business operation answered can be registration, cancellation and change of account number etc..
The operation system includes: service server 410, cluster network 420 and production server 430.
The service server 410 is used to send the number of taking request to the production server 430 according to business operation.
The production server 430 is used to extract the business information of the service server 410 from the number of taking request.
The production server 430 is also used to the number segment section determined according to the business information.
The cluster network 420 is for generating and the matched orderly number segment in the number segment section.
It is that the production server 430 is also used to generate from cluster network 420 and with the number segment section is matched has Identification number is obtained in serial number section.
The production server 430 is also used to the identification number assignment to the service server 410.
The embodiment of the present invention is requested by receiving from service server 410 according to the number of taking that business operation is sent;From described The business information of the service server 410 is extracted in the number of taking request;According to the business information determine number segment section, from Cluster network 420 generate and with obtain identification number in the matched orderly number segment in the number segment section;By the identification number It distributes to the service server 410, solves the problems, such as that existing production system can not guarantee that simultaneously identification number is continuous, and due to It using the unified management of the production server number of being identified, can be adapted for high concurrent scene, guarantee the performance of identification number assignment Performance further realizes strong consistency and the generalization of identification number, to facilitate O&M.
On the basis of the above embodiments, the cluster network 420 includes: business cluster network 421 and backup cluster net Network 422.
The system is in the 421 normal processing business server 410 of business cluster network, by the business cluster net Network 421 backs up in the backup cluster network 422.
The system handles industry when the business cluster network 421 breaks down, using the backup cluster network 422 Business server 410.
How the present embodiment is to not limiting the business cluster network 421 backup in the backup cluster network 422 It is fixed, it can be according to predetermined period, by the business cluster network 421 backup in the backup cluster network 422.
Method provided by any embodiment of the invention can be performed in the said goods, has the corresponding functional module of execution method And beneficial effect.
Embodiment five
Fig. 5 is a kind of structural schematic diagram for production equipment that the embodiment of the present invention five provides.As shown in figure 5, the production number is set Standby includes: processor 50, memory 51, input unit 52 and output device 53.The quantity of processor 50 in the production equipment It can be one or more, in Fig. 5 by taking a processor 50 as an example.The quantity of memory 51 can be one in the production equipment It is a or multiple, in Fig. 5 by taking a memory 51 as an example.The processor 50 of the production equipment, memory 51, input unit 52 with And output device 53 can be connected by bus or other modes, in Fig. 5 for being connected by bus.The present embodiment is to produce Number equipment is to be illustrated for server, and wherein server can be separate server or cluster server, can be entity Server or virtual server.
Memory 51 is used as a kind of computer readable storage medium, can be used for storing software program, journey can be performed in computer Sequence and module, the corresponding program instruction/module of production method as described in any embodiment of that present invention is (for example, produce a number service The number of taking request receiving module 310, business information extraction module 320, identification number in device obtain module 330 and identification number assignment mould Block 340).Memory 51 can mainly include storing program area and storage data area, wherein storing program area can store operation system Application program needed for system, at least one function;Storage data area, which can be stored, uses created data etc. according to equipment.This Outside, memory 51 may include high-speed random access memory, can also include nonvolatile memory, for example, at least a magnetic Disk storage device, flush memory device or other non-volatile solid state memory parts.In some instances, memory 51 can be further Including the memory remotely located relative to processor 50, these remote memories can pass through network connection to equipment.It is above-mentioned The example of network includes but is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Input unit 52 can be used for receiving the number or character information of input, and generates and set with the user of production equipment It sets and the related key signals of function control inputs, can also be the camera for obtaining image and obtain audio data Pick up facility.Output device 53 may include the audio frequency apparatuses such as loudspeaker.It should be noted that input unit 52 and output device 53 concrete composition may be set according to actual conditions.
Software program, instruction and the module that processor 50 is stored in memory 51 by operation, thereby executing equipment Various function application and data processing, that is, realize above-mentioned production method.
Embodiment six
The embodiment of the present invention six also provides a kind of storage medium comprising computer executable instructions, and the computer can be held Row instruction by computer processor when being executed for executing a kind of production method, comprising:
It receives and is requested from service server according to the number of taking that business operation is sent;
The business information of the service server is extracted from the number of taking request;
According to the business information determine number segment section, from cluster network generate and with the number segment section Identification number is obtained in matched orderly number segment;
By the identification number assignment to the service server.
Certainly, a kind of storage medium comprising computer executable instructions, computer provided by the embodiment of the present invention The production method operation that executable instruction is not limited to the described above, can also be performed production number provided by any embodiment of the invention Relevant operation in method, and have corresponding function and beneficial effect.
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the present invention It can be realized by software and required common hardware, naturally it is also possible to which by hardware realization, but in many cases, the former is more Good embodiment.Based on this understanding, technical solution of the present invention substantially in other words contributes to the prior art Part can be embodied in the form of software products, which can store in computer readable storage medium In, floppy disk, read-only memory (Read-Only Memory, ROM), random access memory (Random such as computer Access Memory, RAM), flash memory (FLASH), hard disk or CD etc., including some instructions are with so that a computer is set Standby (can be robot, personal computer, server or the network equipment etc.) executes production described in any embodiment of that present invention Number method.
It is worth noting that, included each unit and module are only according to function logic in above-mentioned production server It is divided, but is not limited to the above division, as long as corresponding functions can be realized;In addition, each functional unit Specific name be also only for convenience of distinguishing each other, the protection scope being not intended to restrict the invention.
It should be appreciated that each section of the invention can be realized with hardware, software, firmware or their combination.Above-mentioned In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware Any one of column technology or their combination are realized: having a logic gates for realizing logic function to data-signal Discrete logic, with suitable combinational logic gate circuit specific integrated circuit, programmable gate array (PGA), scene Programmable gate array (FPGA) etc..
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not Centainly refer to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be any One or more embodiment or examples in can be combined in any suitable manner.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.

Claims (11)

1. a kind of production method, which is characterized in that the method is applied in production server, comprising:
It receives and is requested from service server according to the number of taking that business operation is sent;
The business information of the service server is extracted from the number of taking request;
According to the business information determine number segment section, from cluster network generate and matched with the number segment section Orderly number segment in obtain identification number;
By the identification number assignment to the service server.
2. being sent the method according to claim 1, wherein receiving and being operated from service server according to business demand The number of taking request, comprising:
It receives and is requested from service server according to the number of taking that business demand is sent, and the number of taking request is stored in request queue In;
If the quantity that the number of taking is requested in the request queue is more than preset quantity, the number of taking in the request queue is filtered Request.
3. the method according to claim 1, wherein the business information includes: type of service and identification number Quantity required;
According to the business information determine number segment section, from cluster network generate and matched with the number segment section Orderly number segment in obtain identification number, comprising:
The number segment section for type of service setting is determined in preset business configuration;
It determines for being stored with the memory space with the matched orderly number segment in the number segment section, wherein described to have serial number Code section is stored with continuous identification number;
Judge whether the quantity of the identification number stored in the memory space meets the quantity required;
If so, obtaining the identification number that quantity meets the quantity required from the memory space;
If it is not, then requesting to generate quantity to be identification number designated value and positioned at the number segment section to the cluster network Orderly number segment is formed, the orderly number segment is stored in the memory space, and returns to execution and judges that the storage is empty Between the quantity of identification number of middle storage whether meet the quantity required.
4. according to the method described in claim 3, it is characterized by further comprising:
Detect the quantity of unappropriated identification number in the memory space;
If the quantity of unappropriated identification number is less than preset threshold in the memory space, request to generate to the cluster network Quantity is identification number composition orderly number segment designated value and positioned at the number segment section, and the orderly number segment is deposited It is stored in the memory space.
5. according to the method described in claim 4, it is characterized in that, requesting to generate quantity to be described specified to the cluster network Identification number that is being worth and being located at the number segment section forms orderly number segment, and the orderly number segment is stored in described deposit It stores up in space, comprising:
The designated value of the quantity of request production number every time is determined from the business configuration;
Determine the section tail identification number for the orderly number segment being stored in the memory space;
It sends and produces a number notice, had to notify the cluster network to generate by what the identification number that quantity is the designated value was composed Serial number section, wherein the identification number of generation is continuous after being in described section of tail identification number according to preset ordering rule Identification number;
The orderly number segment of generation is stored in the memory space.
6. according to the method described in claim 5, a number notice is produced it is characterized in that, sending, to notify the cluster network to generate The orderly number segment being composed of the identification number that quantity is the designated value, comprising:
It sends and produces a number notice, the generation quantity in a manner of notifying the cluster network according to leader's host switching at runtime and optimistic locking For the identification number of the designated value, to be combined into orderly number segment.
7. a kind of production server characterized by comprising
The number of taking request receiving module is requested for receiving from service server according to the number of taking that business demand is sent;
Business information extraction module, for extracting the business information of the service server from the number of taking request;
Identification number obtain module, for according to the business information determine number segment section, from cluster network generate with institute It states in the matched orderly number segment in number segment section and obtains identification number;
Identification number assignment module is used for the identification number assignment to the service server.
8. a kind of operation system characterized by comprising service server, cluster network and production server;
The service server is used to send the number of taking request to the production server according to business operation;
The production server is used to extract the business information of the service server from the number of taking request;
The production server is also used to the number segment section determined according to the business information;
The cluster network is for generating and the matched orderly number segment in the number segment section;
The production server be also used to from cluster network generate and in the matched orderly number segment in the number segment section Obtain identification number;
The production server is also used to the identification number assignment to the service server.
9. system according to claim 8, which is characterized in that the cluster network includes: business cluster network and backup Cluster network;
The system backs up the business cluster network in the backup in the normal processing business of the business cluster network In cluster network;
The system uses the backup cluster network processing business when the business cluster network breaks down.
10. a kind of production equipment characterized by comprising memory and one or more processors;
The memory, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processors are real Now such as production method as claimed in any one of claims 1 to 6.
11. a kind of storage medium comprising computer executable instructions, which is characterized in that the computer executable instructions by For executing such as production method as claimed in any one of claims 1 to 6 when computer processor executes.
CN201811330409.4A 2018-11-09 2018-11-09 A kind of production method, server, equipment, storage medium and operation system Pending CN109525658A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811330409.4A CN109525658A (en) 2018-11-09 2018-11-09 A kind of production method, server, equipment, storage medium and operation system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811330409.4A CN109525658A (en) 2018-11-09 2018-11-09 A kind of production method, server, equipment, storage medium and operation system

Publications (1)

Publication Number Publication Date
CN109525658A true CN109525658A (en) 2019-03-26

Family

ID=65773330

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811330409.4A Pending CN109525658A (en) 2018-11-09 2018-11-09 A kind of production method, server, equipment, storage medium and operation system

Country Status (1)

Country Link
CN (1) CN109525658A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110598472A (en) * 2019-09-18 2019-12-20 广州虎牙科技有限公司 Equipment identification method, device, server and storage medium
CN110807035A (en) * 2019-11-05 2020-02-18 泰康保险集团股份有限公司 Serial number generation method, device, equipment and storage medium
CN110933196A (en) * 2019-11-26 2020-03-27 上海莉莉丝科技股份有限公司 ID distribution method, system and storage medium for global uniform framework
CN111741081A (en) * 2020-06-05 2020-10-02 安徽三实信息技术服务有限公司 Distributed server management system
CN111913956A (en) * 2020-06-28 2020-11-10 中国船舶重工集团公司第七一六研究所 Unified service coding method and device
CN112256930A (en) * 2020-10-09 2021-01-22 北京沃东天骏信息技术有限公司 Method, device and system for batch generation of identification codes for distributed services
CN112256443A (en) * 2020-10-14 2021-01-22 杭州当虹科技股份有限公司 Dynamic cluster lock system based on redis
CN112862574A (en) * 2021-04-08 2021-05-28 上海哔哩哔哩科技有限公司 Distributed order number generation method and system
CN113065034A (en) * 2021-03-29 2021-07-02 上海安畅网络科技股份有限公司 Distributed system number generation method and system
CN113127561A (en) * 2020-01-14 2021-07-16 北京京东振世信息技术有限公司 Method and device for generating service order number, electronic equipment and storage medium
CN113495888A (en) * 2020-04-03 2021-10-12 北京沃东天骏信息技术有限公司 Identification management method and device
CN113722323A (en) * 2021-08-30 2021-11-30 康键信息技术(深圳)有限公司 Service serial number generation method, sender assembly, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160078432A1 (en) * 2011-04-11 2016-03-17 Samsung Electronics Co., Ltd. Apparatus and method for providing a transaction service
CN105447023A (en) * 2014-08-25 2016-03-30 阿里巴巴集团控股有限公司 Service identifier generation method and apparatus
CN106911780A (en) * 2017-02-28 2017-06-30 北京三快在线科技有限公司 Traffic ID generation method, apparatus and system
CN108509433A (en) * 2017-02-23 2018-09-07 北京京东金融科技控股有限公司 The method, apparatus and electronic equipment of formation sequence number based on distributed system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160078432A1 (en) * 2011-04-11 2016-03-17 Samsung Electronics Co., Ltd. Apparatus and method for providing a transaction service
CN105447023A (en) * 2014-08-25 2016-03-30 阿里巴巴集团控股有限公司 Service identifier generation method and apparatus
CN108509433A (en) * 2017-02-23 2018-09-07 北京京东金融科技控股有限公司 The method, apparatus and electronic equipment of formation sequence number based on distributed system
CN106911780A (en) * 2017-02-28 2017-06-30 北京三快在线科技有限公司 Traffic ID generation method, apparatus and system

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110598472A (en) * 2019-09-18 2019-12-20 广州虎牙科技有限公司 Equipment identification method, device, server and storage medium
CN110807035A (en) * 2019-11-05 2020-02-18 泰康保险集团股份有限公司 Serial number generation method, device, equipment and storage medium
CN110933196B (en) * 2019-11-26 2022-12-06 上海莉莉丝科技股份有限公司 ID distribution method, system and storage medium for global uniform framework
CN110933196A (en) * 2019-11-26 2020-03-27 上海莉莉丝科技股份有限公司 ID distribution method, system and storage medium for global uniform framework
CN113127561A (en) * 2020-01-14 2021-07-16 北京京东振世信息技术有限公司 Method and device for generating service order number, electronic equipment and storage medium
CN113127561B (en) * 2020-01-14 2023-09-22 北京京东振世信息技术有限公司 Method and device for generating service single number, electronic equipment and storage medium
CN113495888A (en) * 2020-04-03 2021-10-12 北京沃东天骏信息技术有限公司 Identification management method and device
CN111741081A (en) * 2020-06-05 2020-10-02 安徽三实信息技术服务有限公司 Distributed server management system
CN111913956A (en) * 2020-06-28 2020-11-10 中国船舶重工集团公司第七一六研究所 Unified service coding method and device
CN112256930A (en) * 2020-10-09 2021-01-22 北京沃东天骏信息技术有限公司 Method, device and system for batch generation of identification codes for distributed services
CN112256443A (en) * 2020-10-14 2021-01-22 杭州当虹科技股份有限公司 Dynamic cluster lock system based on redis
CN112256443B (en) * 2020-10-14 2024-02-06 杭州当虹科技股份有限公司 Redis-based dynamic cluster lock system
CN113065034A (en) * 2021-03-29 2021-07-02 上海安畅网络科技股份有限公司 Distributed system number generation method and system
CN113065034B (en) * 2021-03-29 2022-11-18 上海安畅网络科技股份有限公司 Distributed system number generation method and system
CN112862574A (en) * 2021-04-08 2021-05-28 上海哔哩哔哩科技有限公司 Distributed order number generation method and system
CN113722323A (en) * 2021-08-30 2021-11-30 康键信息技术(深圳)有限公司 Service serial number generation method, sender assembly, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109525658A (en) A kind of production method, server, equipment, storage medium and operation system
CN109995859A (en) A kind of dispatching method, dispatch server and computer readable storage medium
CN108897628A (en) A kind of implementation method of distributed lock, device and electronic equipment
CN108845877B (en) Method, device and system for managing memory
CN105468718B (en) Data consistency processing method, device and system
CN107211003B (en) Distributed storage system and method for managing metadata
CN103716383A (en) Method and device for accessing shared resources
CN107992491A (en) A kind of method and device of distributed file system, data access and data storage
CN109213567B (en) Method and equipment for managing VNF instantiation
CN114979286A (en) Access control method, device and equipment for container service and computer storage medium
US11252121B2 (en) Message sending method and terminal device
CN111143033B (en) Operation execution method and device based on scalable operation system
CN107430510A (en) Data processing method, device and system
CN113419672A (en) Storage capacity management method, system and storage medium
CN112463305A (en) Management method, system and related device of cloud virtualization GPU
CN109587218B (en) Cluster election method and device
CN106598706B (en) Method and device for improving stability of server and server
CN109976881B (en) Transaction identification method and apparatus, storage medium, and electronic apparatus
CN108073453B (en) Method and device for scheduling CPU (Central processing Unit) resources in distributed cluster
CN114090249A (en) Resource allocation method, device, electronic equipment and storage medium
CN109101367A (en) The management method and device of component in cloud computing system
CN109818767B (en) Method and device for adjusting Redis cluster capacity and storage medium
CN113239059A (en) Switching method and device of distributed lock, server and storage medium
CN108092790B (en) Management method and device
CN112395081A (en) Resource online automatic recovery method, system, server and storage medium

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190326