CN109376155A - ID generation method and device, storage medium and electronic equipment - Google Patents
ID generation method and device, storage medium and electronic equipment Download PDFInfo
- Publication number
- CN109376155A CN109376155A CN201811312565.8A CN201811312565A CN109376155A CN 109376155 A CN109376155 A CN 109376155A CN 201811312565 A CN201811312565 A CN 201811312565A CN 109376155 A CN109376155 A CN 109376155A
- Authority
- CN
- China
- Prior art keywords
- request
- client
- parameter
- threshold
- storage region
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Abstract
In ID generation method provided by the invention, when receiving the ID request of client transmission, ID corresponding with ID request is obtained in the ID set pre-established;The ID that will acquire is sent to the client, and whether the consumption parameter for monitoring in transmission process ID in the ID set matches with pre-set ID threshold parameter;When the consumption parameter of ID and pre-set ID threshold parameter mismatch in ID set, according to preset ID create-rule, the ID for generating respective numbers is supplemented in the ID set.By method disclosed above, a certain number of ID can be first generated before client request ID, and by the consumption parameter of monitoring ID, to determine whether to supplement ID, can be timely responded to the ID request of large number of client, effectively be solved the problems, such as high concurrent.
Description
Technical field
The present invention relates to data processing field, in particular to a kind of ID generation method and device, storage medium and electronics are set
It is standby.
Background technique
ID is the abbreviation of English IDentity, the meaning of Identity Code.It is referred to as sequence number or account, is some
Relatively unique coding in system, in Internet application, numerous systems require a mark determine some example or
The uniqueness of person's attributive character needs a uniqueness ID in system specified range, become data expression by ID
Simply.For example, in electric business system, order under each client, system is the unique ID of each Order splitting, passes through ID table
Up to the relevant information of system and order.Order number comes expression system and the order in the electric business system, using unique ID
Relevant information.
In the application assigning process of ID, in the prior art, mainly according to the uniqueness characteristic of physical equipment, one is generated
A seed ID, binding time stab information, generate ID in time in the ID request for receiving client.But it is based on existing generation side
Method, in the case of high concurrency, it may appear that the speed for generating ID in time is unable to satisfy the ID request of large number of client, i.e.,
The ID request of client can not be timely responded in the case where high concurrent.Therefore, customer in response end request ID how is effectively solved to make
At high concurrent problem become those skilled in the art urgently solve the problems, such as.
Summary of the invention
Technical problem to be solved by the invention is to provide a kind of ID generation method, the ID set pre-established can be monitored
In ID consume parameter, the ID request of multiple client can be timely responded to, and then solve height caused by client request ID simultaneously
The problem of hair.
The present invention also provides a kind of ID generating means, to guarantee the realization and application of the above method in practice.
A kind of ID generation method, comprising:
When receiving the ID request of client transmission, obtained in the ID set pre-established corresponding with ID request
ID;
The ID that will acquire is sent to the client, and the consumption of ID in the ID set is monitored in transmission process
Whether parameter matches with pre-set ID threshold parameter;
When the consumption parameter of ID and pre-set ID threshold parameter mismatch in ID set, according to presetting
ID create-rule, the ID for generating respective numbers is supplemented in ID set.
Above-mentioned method, it is preferred that it is described when receiving the ID request of client transmission, in the ID set pre-established
It is middle to obtain ID corresponding with ID request, comprising:
Determine whether to receive the ID request for the first time;
When it is non-receive ID request for the first time when, transfer the historical record of ID request;
It is recorded according to the historical requests, obtains the ID in the ID set pre-established and request corresponding history
ID。
Above-mentioned method, it is preferred that it is described when receiving the ID request of client transmission, in the ID set pre-established
It is middle to obtain ID corresponding with ID request, comprising:
Parse the ID parameter for including in the ID request that the client is sent;
The corresponding type of service of the client is determined according to the ID parameter;
ID storage region corresponding with the type of service is searched in ID set, wherein is set in the ID set
At least one is equipped with for storing the ID storage region of ID;
In the corresponding ID storage region of the type of service, ID corresponding with ID request is obtained.
Above-mentioned method, it is preferred that described to will acquire when the ID corresponding with ID request of acquisition is multiple ID
The ID is sent to the client, comprising:
Call pre-set counting pointer;
Using the counting pointer, the multiple ID that successively will acquire sends the client.
Above-mentioned method, it is preferred that in the monitoring ID set consumption parameter of ID whether with pre-set ID
Threshold parameter matches, when the consumption parameter of ID and pre-set ID threshold parameter mismatch in ID set, according to
Preset ID create-rule, the ID for generating respective numbers are supplemented in the ID set, comprising:
It monitors in the ID storage region, whether the depletion rate of current ID is greater than pre-set threshold speed;
It is determining with the current ID's when the depletion rate of the current ID is greater than the pre-set threshold speed
The corresponding ID supplemental amount of depletion rate;The ID for generating the corresponding ID supplemental amount, is supplemented in the ID storage region.
Above-mentioned method, it is preferred that in the monitoring ID set consumption parameter of ID whether with pre-set ID
Threshold value matches, when the consumption parameter of ID and pre-set ID threshold parameter mismatch in ID set, according to preparatory
The ID create-rule of setting, the ID for generating respective numbers are supplemented in the ID set, comprising:
It monitors in the ID storage region, whether the depletion rate of current ID is greater than pre-set threshold speed;
When the depletion rate of the current ID is not more than the pre-set threshold speed, the memory block ID is judged
Whether remaining ID quantity is less than preset amount threshold in domain;
When the ID quantity remaining in the ID storage region is less than the preset amount threshold, respective counts are generated
The ID of amount is supplemented in the ID storage region, until the quantity of ID is not less than the preset quantity threshold in ID storage
Value.
Above-mentioned method, it is preferred that when receiving the ID request of multiple client transmission, the ID that will acquire
Being sent to the client includes:
The ID that each client that will acquire is sent requests corresponding ID, asks according to the ID that each client is sent is received
The time sequencing asked, the ID that successively will acquire are sent to each client.
A kind of ID generating means, comprising:
Execution unit, when receive client transmission ID request when, pre-establish ID set in obtain with it is described
ID requests corresponding ID;
Transmission unit sends the ID to client;
Monitoring unit, monitor ID in ID set consumption parameter whether with pre-set ID threshold parameter phase
Match;When the consumption parameter of ID and pre-set ID threshold parameter mismatch in ID set, according to preset ID
Create-rule, the ID for generating respective numbers are supplemented in the ID set.
A kind of storage medium, the storage medium include the instruction of storage, wherein in described instruction operation described in control
Equipment where storage medium executes above-mentioned ID generation method.
A kind of electronic equipment, including memory and one perhaps one of them or one of more than one instruction with
Upper instruction is stored in memory, and is configured to execute above-mentioned ID generation method by one or more than one processor.
Compared with prior art, the present invention includes the following advantages:
In ID generation method provided by the invention, when receiving the ID request of client transmission, what is pre-established
ID corresponding with ID request is obtained in ID set;The ID that will acquire is sent to the client, and in transmission process
Whether the consumption parameter of ID matches with pre-set ID threshold parameter in the middle monitoring ID set;When in ID set
When the consumption parameter of ID and pre-set ID threshold parameter mismatch, according to preset ID create-rule, generate corresponding
The ID of quantity is supplemented in the ID set.By method disclosed above, one can be first generated before client request ID
The ID of fixed number amount, and large number of client can be timely responded to determine whether to supplement ID by the consumption parameter of monitoring ID
ID request, effectively solve the problems, such as high concurrent.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for
For those of ordinary skill in the art, without any creative labor, it can also be obtained according to these attached drawings
His attached drawing.
Fig. 1 is a kind of method flow diagram of ID generation method provided by the invention;
Fig. 2 is a kind of another method flow diagram of ID generation method provided by the invention;
Fig. 3 is a kind of server architecture schematic diagram provided by the invention;
Fig. 4 is a kind of structural schematic diagram of ID generating means provided by the invention;
Fig. 5 is the structural schematic diagram of a kind of electronic equipment provided by the invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
The present invention can be used in numerous general or special purpose computing device environment or configurations.Such as: personal computer, service
Device computer, handheld device or portable device, laptop device, multi-processor device including any of the above devices or devices
Distributed computing environment etc..
The embodiment of the invention provides a kind of ID generation method, this method can be applied in multiple systems platform, be held
Row main body can be terminal or the processor of various mobile devices, and the method flow diagram of the method is as shown in Figure 1, tool
Body includes:
S101: when receiving the ID request of client transmission, in the ID set pre-established, acquisition is asked with the ID
Seek corresponding ID.
In method provided in an embodiment of the present invention, when client needs to obtain ID, ID request is sent to processor;It is described
Processor can receive the ID request of multiple client.
In method provided in an embodiment of the present invention, the ID collection is combined into database either ID storage table etc..If the ID
Collection is combined into database, then according to ID request in ID parameter be routed to corresponding database, obtain corresponding with ID request
ID。
S102: the ID that will acquire is sent to the client, and ID in the ID set is monitored in transmission process
Consumption parameter whether match with pre-set ID threshold parameter.
In method provided in an embodiment of the present invention, consumption parameter can be by the ID quantity meter for the ID request that processor receives
It obtains, can also be calculated by monitoring the ID quantity of ID storage region.
In method provided in an embodiment of the present invention, processor can calculate the depletion rate and remainder of corresponding types ID
Amount, but the embodiment of the present invention does not limit and only calculates above two consumption parameter, and the embodiment of the present invention can monitor above two
At least one of parameter parameter, but the present invention does not limit and only monitors both parameters.
S103: when the consumption parameter of ID and pre-set ID threshold parameter mismatch in ID set, according to pre-
The ID create-rule first set, the ID for generating respective numbers are supplemented in the ID set.
In ID generation method provided by the invention, when receiving the ID request of client transmission, what is pre-established
ID corresponding with ID request is obtained in ID set;The ID that will acquire is sent to the client, and in transmission process
Whether the consumption parameter of ID matches with pre-set ID threshold parameter in the middle monitoring ID set;When in ID set
When the consumption parameter of ID and pre-set ID threshold parameter mismatch, according to preset ID create-rule, generate corresponding
The ID of quantity is supplemented in the ID set.By method disclosed above, one can be first generated before client request ID
The ID of fixed number amount, and large number of client can be timely responded to determine whether to supplement ID by the consumption parameter of monitoring ID
ID request, effectively solve the problems, such as high concurrent.
It is described when receiving the ID request of client transmission in method provided in an embodiment of the present invention, it is pre-establishing
ID set in obtain ID corresponding with ID request, may include:
Determine whether to receive the ID request for the first time;
When it is non-receive ID request for the first time when, transfer the historical record of ID request;
It is recorded according to the historical requests, obtains the ID in the ID set pre-established and request corresponding history
ID。
Optionally, it when receiving ID request for the first time, in ID set, obtains corresponding with ID request
ID。
It is described when receiving the ID request of client transmission in method provided in an embodiment of the present invention, it is pre-establishing
ID set in obtain ID corresponding with ID request, may include:
Parse the ID parameter for including in the ID request that the client is sent;
Determine that the corresponding type of service of the client is searched and the industry in ID set according to the ID parameter
The corresponding ID storage region of service type, wherein be provided at least one for storing the ID storage region of ID in the ID set;
In the corresponding ID storage region of the type of service, ID corresponding with ID request is obtained.
In method provided in an embodiment of the present invention, the type of service may include apply a variety of internet systems or its
In the ID business in his field, such as user name ID business, user account ID business and electric business system in logging in system by user
Order number ID business etc..
Preferably, an ID storage region stores a kind of ID of type of service.
In method provided in an embodiment of the present invention, during processor parses the ID request of client, processing
Device meeting response bag contains the registration information of ID server-side or the ID request of configuration information;Processor determines whether that client can be parsed
The ID at end is requested, if cannot parse, refuses the ID request of this client.
It is described when the ID corresponding with ID request of acquisition is multiple ID in method provided in an embodiment of the present invention
The ID that will acquire is sent to the client, may include:
Call pre-set counting pointer;
Using the counting pointer, the multiple ID that successively will acquire sends the client.
In method provided in an embodiment of the present invention, if more than two different client request identical services type and identical
When the ID of data type, processor responds the request of different clients according to the chronological order for receiving client request.
In method provided in an embodiment of the present invention, it is not of the same trade or business that processor can respond more than two different clients requests simultaneously
The ID of service type and/or different types of data.
In method provided in an embodiment of the present invention, during the ID that will acquire is sent to the client,
May include:
Corresponding ID is requested to backup to Backup ID storage region ID request and the ID;Institute is received for the first time when non-
When stating ID request, the historical requests record of the ID request is transferred;It is recorded according to the historical requests, in Backup ID memory block
Domain obtains the ID and requests corresponding history ID.
Optionally, during the ID that will acquire is sent to the client, may include:
The ID is backed up and is marked in former ID storage region, when it is non-receive for the first time the ID request when, foundation
ID parameter information in ID request finds corresponding ID storage region, and corresponding history ID is got in marked ID.
In method provided in an embodiment of the present invention, when the history ID is returned to client, described go through can be backed up again
History ID.
In method provided in an embodiment of the present invention, in the monitoring ID set consumption parameter of ID whether with set in advance
The ID threshold parameter set matches, when the consumption parameter of ID and pre-set ID threshold parameter mismatch in ID set
When, according to preset ID create-rule, the ID for generating respective numbers is supplemented in the ID set, may include:
It monitors in the ID storage region, whether the depletion rate of current ID is greater than pre-set threshold speed;
It is determining with the current ID's when the depletion rate of the current ID is greater than the pre-set threshold speed
The corresponding ID supplemental amount of depletion rate;
The ID for generating the corresponding ID supplemental amount, is supplemented in the ID storage region.
In method provided in an embodiment of the present invention, when the depletion rate of the current ID is not more than the pre-set ID
It, can be according to other consumption parameters to determine whether supplement ID is into the ID storage region when threshold parameter.
In method provided in an embodiment of the present invention, depletion rate is calculated according to the quantity for consuming ID in certain time
, when the depletion rate of ID is greater than the pre-set threshold speed, then according to preset ID create-rule, determine
ID supplemental amount corresponding with the depletion rate of the current ID, the supplemental amount of the ID is preset.For example, current
The depletion rate threshold value of ID is set as 200000/second, and the supplemental amount of the ID is preset as 500000.If current ID's disappears
Consumption speed is 250000/second, i.e., the depletion rate of current ID is greater than depletion rate threshold value, then generates according to preset ID
Rule starts corresponding ID generating algorithm and generates 500000 corresponding ID.
Preferably, described when the speed for generating ID is greater than the pre-set threshold speed, it can be according to setting in advance
Fixed ID create-rule determines that ID corresponding with the depletion rate of the current ID supplements speed, for example, the consumption speed of current ID
Degree threshold value is set as 200000/second, if the depletion rate of current ID is 250000/second, i.e., the depletion rate of current ID is big
In depletion rate threshold value, then according to preset ID create-rule, starts corresponding ID generating algorithm and generate corresponding ID, mend
It is charged in the ID storage region, the supplement speed is not less than 250000/second.
In method provided in an embodiment of the present invention, in the monitoring ID set consumption parameter of ID whether with set in advance
The ID threshold value set matches, when the consumption parameter of ID and pre-set ID threshold parameter mismatch in ID set, root
According to preset ID create-rule, the ID for generating respective numbers is supplemented in the ID set, comprising:
It monitors in the ID storage region, whether the depletion rate of current ID is greater than pre-set threshold speed;
When the depletion rate of the current ID is not more than the pre-set threshold speed, the memory block ID is judged
Whether remaining ID quantity is less than preset amount threshold in domain;
When ID quantity remaining in the ID storage region is less than the preset amount threshold, respective numbers are generated
ID is supplemented in the ID storage region, until the quantity of ID is not less than the preset amount threshold in ID storage.Its
In, the type of service for being supplemented to the ID of the ID storage region is corresponding with the ID storage region.
In method provided in an embodiment of the present invention, if current ID threshold speed is set in advance as 200000/second, quantity threshold
Value is set in advance as 1000000;If current ID depletion rate is 190000/second, and current ID volume residual is 999999
A, i.e., current ID volume residual is less than ID volume residual threshold value;Processor is according to preset ID create-rule, starting pair
The ID generating algorithm answered generates corresponding ID, and the speed for generating ID is greater than 190000/second, and supplemental amount is greater than or waits
In 1;ID is supplemented, the volume residual of current ID is made to be greater than or equal to amount threshold.The speed that supplement generates ID herein can be with
It is set as fixed value, variation can also be adjusted with depletion rate.The embodiment of the present invention do not limit only through the above way into
The supplement of row ID can according to actual needs be adjusted the quantity of supplement ID.
It should be noted that in embodiments of the present invention, can also only monitor the volume residual of ID according to actual needs, really
Whether the volume residual for recognizing ID is less than volume residual threshold value, if so, generating corresponding according to preset ID create-rule
ID is supplemented in the ID set, if it is not, not supplementing the ID.
It is described to will acquire when receiving the ID request of multiple client transmission in method provided in an embodiment of the present invention
The ID be sent to the client and include:
The ID that each client that will acquire is sent requests corresponding ID, asks according to the ID that each client is sent is received
The time sequencing asked, the ID that successively will acquire are sent to each client.
Based on the ID generation method that the embodiments of the present invention provide, the ID set can be database, and the ID is deposited
Storage area domain can be the ID storage table in database, and Fig. 2 shows the sides of another ID generation method provided in an embodiment of the present invention
Method flow chart, steps are as follows for method execution:
S201: the ID request that each client is sent is received.
During executing step S201, when client needs to obtain ID, ID request is sent to processor;Processor
It can receive the ID request of multiple client.
It should be noted that processor obtains in the ID request process of client, processor can pass through the ID of client
The registration information or configuration information for the ID server-side for including in request carry out respond request, and processor determines whether that visitor can be parsed
ID request in family end refuses the ID request of this client if cannot parse.
In method provided in an embodiment of the present invention, when client needs to obtain ID, by calling corresponding application program to compile
Journey interface (Application Programming Interface, API) sends HTTP request, the HTTP to ID server
Request first reaches on the load balancer of ID server-side, is then based in reverse proxy to corresponding ID server.
S202: the ID of client is requested to be routed to corresponding database according to routing relation.
During executing step S202, the routing relation of ID server-side and database is mainly based upon the service class of ID
Type information constructs, and can also construct routing relation based on the data type information of ID, by ID request in type of service believe
Breath, data type information and number of requests inquire database for constructing SQL statement.Further, the data type of the ID
It can be numeric type ID, be also possible to character string type ID, the embodiment of the present invention can support the ID of both types simultaneously, can be with
According to system parameter, operation corresponds to different ID generating algorithms to generate different types of ID.
It should be noted that the numeric type ID consists of two parts, the length of each section can come as needed into
Row adjustment configuration may include that type of service number and serial number, format can be<type of service number><serial number>.The word
Symbol serial type ID is consisted of three parts, and it may include service class that the length of each section can be adjusted configuration as needed
Type number, ID server number and timestamp information, format can be<type of service number><ID server number><time
Stamp information >.
Further, in embodiments of the present invention, the configuration of numeric type ID is as follows: if business type field length is configured to
2, for indicating two characters, then type of service number minimum can be 00, and type of service number maximum can be 99, i.e., from 00
Number is played, can indicate 100 kinds of types of service, according to the difference of field length, the quantity for the type of service that can be indicated is also different, length
Longer, denotable type is more.If the length of serial number is configured to 9, for indicating 9 characters, then serial number is minimum
000000000, maximum can be 999999999, i.e., 9 powers of denotable serial number 10, according to the difference of the length of field,
The serial number quantity that can be indicated is also different, and length is longer, and the serial number that can be indicated is more.
S203: inquiring and obtains the ID of corresponding pre-stored in the database, and the ID that will acquire is sent to the client
End.
During executing step S203, can be requested according to ID in ID service type information carry out hash operation,
By ID request in be used for the parameter of constructing SQL statement and be routed to corresponding mysql database, constructing SQL statement inquires the number
According to library, the ID of corresponding types and corresponding number is obtained.
During execution step S203 is inquired and obtained the ID of corresponding pre-stored in the database, based on described
Service type information in ID request establishes key adjustment vernier, and timestamp information, the required ID that will include in ID request
In the information deposit database such as quantity, the start-stop point of respond style ID number, and determine the data that ID is requested in the ID request
Type obtains ID corresponding with ID request.
When the ID that processor will acquire is sent to the client, preset counting pointer is called;Using the meter
Number pointer, is successively sent to the client for each ID.Redis interface can be called to be adjusted to pointer is counted,
Keep entire ID server system synchronous.It should be noted that the ID data of the same type of service are stored in same group of mysql number
According to library, same group of mysql database can store the ID data of at least one type of service.
In method provided in an embodiment of the present invention, processor according to the ID request in ID parameter (such as ID service class
Shape parameter, ID data type parameters, ID number of requests parameter and timestamp information etc.) be recorded with corresponding ID it is described corresponding
In database, ID parameter is for uniquely mapping corresponding ID.Uniform resource identifier (the Uniform of these ID solicited messages
Resource Identifier, URI), be uniquely mapped to the ID data information of corresponding ID request, when identical URI again to
It is available to arrive identical ID data when processor sends ID request, i.e., database is directly searched, the consumption ginseng of ID is no longer included in
In number, corresponding generating algorithm is not triggered, guarantees the idempotence of ID.
S204: during the ID that will acquire is sent to client, monitor whether the ID consumption is greater than depletion rate
Threshold value, if so, executing step S205;If it is not, executing step S206.
S205: it according to preset ID create-rule, generates corresponding ID and is supplemented in the correspondence database.
S206: whether the volume residual for monitoring ID is less than volume residual threshold value, if so, executing step S207;If it is not, executing
Step S208.
S207: it according to preset ID create-rule, generates corresponding ID and is supplemented in corresponding database.
S208: ID is not supplemented into database.
ID generation method provided in an embodiment of the present invention, comprising: processor receives the ID request that client is sent, and chooses institute
The parameter for being used for constructing SQL statement in ID request is stated, the parameter is routed to by database according to routing relation, for constructing
SQL statement inquires database, obtains corresponding pre-stored ID, the ID is sent to the client;And it is being transmitted across
Whether the consumption parameter that the database is monitored in journey matches with pre-set ID threshold parameter, when mismatching, according to pre-
The ID create-rule first set generates corresponding ID and is supplemented in the database.Pass through method disclosed above, processor energy
It is enough that a certain number of ID are generated before receiving client ID request;By monitoring the consumption parameter of ID, to determine whether root
According to preset ID create-rule, the problem of corresponding ID is supplemented in the database, can effectively solve high concurrent is generated.
Based on the ID generation method that the embodiments of the present invention provide, in the process for executing S201 reception client ID request
In, it is requested according to different ID is received, the implementation procedure following example of method:
The ID of the available customer end A of processor and customer end B request, in the ID request of customer end A, the ID of request
Type of service number is 01, and the ID data type of request is numeric type, and requesting the quantity of ID is 50.The ID of customer end B is requested
In, the ID type of service number of request is 01, and the ID data type of request is character string type, and number of requests is 20.Processing
Device pre-generates a certain number of ID storages into database, wherein store in database A according to ID service end system parameter
There is the ID of type of service number 00~05, storage service type number is 01 in database A and data type is the ID of numeric type
Quantity is 100, and volume residual threshold value is set as 60.
Storage service type number is 01 in database A and data type be the ID quantity of character string is 100, remainder
Amount threshold value is set as 50, and wear rate threshold value is set as 15/second.
Processor requests to route according to the service type information in client ID request, by the ID of customer end A and customer end B
Into database A, according to ID request in data type, navigate in specific ID storage table.
According to the ID request business of customer end A number be 01, the data type of ID is numeric type and quantity is 50
ID, the ID is sent to customer end A, during the ID is sent to customer end A, monitors the volume residual of ID,
Whether the volume residual of confirmation current type ID is less than threshold value, when the ID volume residual for being sent to customer end A is more than 40, i.e.,
When the ID volume residual that type of service number is 01 in database, data type is numeric type is less than 60, then run corresponding
ID generating algorithm, generates that type of service number is 01 and data type is that the ID of numeric type adds to the corresponding ID of data A and deposits
It stores up in table;It is 01 that processor is numbered according to the ID request type of service of customer end B, 20 that ID data type is character string type
20 ID are sent to customer end B by a ID, during the ID is sent to customer end B, monitor disappearing for corresponding ID
Speed is consumed, confirms whether the depletion rate of ID is greater than preset depletion rate threshold value, it is assumed that returns to the ID consumption of customer end B
Speed is 20/second, then starts corresponding ID generating algorithm, generation type of service is 01 and data type is the ID of character string type
It adds in the corresponding ID storage table of database A.
In method provided in an embodiment of the present invention, when the request ID quantity in same client ID request is greater than 1, adjustment
Pointer is counted, the ID of each corresponding type of service and corresponding data type is successively returned into the client.
In method provided in an embodiment of the present invention, it is not of the same trade or business that client can respond more than two different clients requests simultaneously
The ID of service type and/or different types of data.
Based on the method that the embodiments of the present invention provide, inquire in execution step S203 and obtain the database corresponding to
Pre-stored ID, the ID that will acquire is sent in the client process, the ID can be requested to request with the ID
Corresponding ID carries out mapping backup.When processor receives the identical ID request of same client transmission, by corresponding backup
ID is sent to the client, and specific example is as follows:
It is 01 that customer end A sends type of service and number to processor for the first time, the data type of ID is numeric type and number of request
Amount is requested for 1 ID, and ID request is routed in correspondence database A by processor by the ID request of parsing customer end A,
According to ID type, number of requests and the timestamp information in the ID parameter, the ID that gets 1 ID, and will acquire
It is sent in customer end A.The history ID that ID request and the ID request corresponding ID to backup to database A is backed up simultaneously
In region, the corresponding relationship of the ID request and the ID is recorded;The ID can also be backed up in former ID storage region
And carry out uniquely tagged;When receiving the identical ID request of customer end A transmission again, i.e., type of service number is received again
When for 01, data type be numeric type, number of requests is 1 and the identical ID of timestamp information is requested, the ID is requested to route
Into database A, identical ID is obtained from history ID backup region or in original ID storage region, is sent to customer end A, simultaneously
The ID is backed up in database A.Wherein, the customer end A can be some equipment, be also possible to some address or account
Family etc..
Based on the method that the embodiments of the present invention provide, the embodiment of the invention also discloses a kind of server architecture, clothes
End configuration diagram of being engaged in is as shown in figure 3, may include at least one load balancer, at least one ID server and database.
The load balancer, the ID for receiving client are requested, and the load state of foundation ID server simultaneously will be described
ID request distribution obtains ID corresponding with ID request by ID server and responds to the client into ID server.
The ID server, the ID for balancing received load device are requested, and are parsed the ID request, are requested by the ID
Constructing SQL statement is routed in corresponding database, inquires and obtain the ID of corresponding pre-stored in the database.
The database may include Redis Cluster and/or relevant database.
Optionally, when client needs to obtain ID, by calling corresponding application programming interface
(Application Programming Interface, API) sends HTTP request to ID server, and the HTTP request is first
It on the load balancer for reaching ID server-side, is then based in reverse proxy to corresponding ID server, ID server is according to institute
It states request and obtains ID corresponding with the request into corresponding database.
Optionally, described to inquire and obtain in the database during the ID of corresponding pre-stored, it is based on the ID
Service type information in request establishes key adjustment vernier, and timestamp information, the required ID number that will include in ID request
In the information deposit database such as amount, the start-stop point of respond style ID number, and determine the data class that ID is requested in the ID request
Type obtains ID corresponding with ID request.
Optionally, when the ID that will acquire is sent to the client, preset counting pointer is called;Using the meter
Number pointer, is successively sent to the client for each ID.Redis interface can be called to be adjusted to pointer is counted,
Make at least one described ID server sync.
It should be noted that the ID data of the same type of service are stored in same group of mysql database, same group
Mysql database can store the ID data of at least one type of service.
ID generation method provided in an embodiment of the present invention, by providing a kind of server architecture, the server architecture packet
Include: at least one load balancer, at least one ID server and database, load balancer receive client ID request according to
According to the load state of ID server and by ID request distribution into ID server, is obtained by ID server and asked with the ID
Corresponding ID is asked to respond the efficiency for being obviously improved the request at customer in response end of server-side to the client.
ID generation method provided in an embodiment of the present invention, can apply in a variety of internet systems or other field, example
Such as, in the ordering system of shopping website, it can be used for management of the order number in ordering system, i.e. ID, ordering system is by ordering
Odd numbers uniquely to indicate the order information of a client, and when client places an order, ordering system processor receives client
Order number ID request, the ID of client is requested to be routed to corresponding database according to routing relation, for inquiring and obtaining
The corresponding ID for pre-generating and storing in database, and the order number is returned into client;Wherein, the order number is root
It is generated according to preset ID service end system parameter operation ID generating algorithm.
Processor is by pre-generating a certain number of ID storages in the database, and ID described in real-time monitoring consumes parameter
Whether it is greater than threshold value, if so, running corresponding ID generating algorithm according to the system parameter generates and store ID, can effectively solves
Certainly high concurrent problem in ordering system, i.e., when having a large amount of client request order number in the short time, ordering system can be rung in time
Answer the request of client.
Based on ID generation method disclosed in the embodiments of the present invention, the embodiment of the present invention is also corresponding to disclose a kind of ID life
It can be applied in each Terminal Type at device, structural schematic diagram is as shown in figure 4, specifically include:
Execution unit 301, when receiving the ID request of client transmission, acquisition and institute in the ID set pre-established
It states ID and requests corresponding ID.
Transmission unit 302 sends the ID to client.
Monitoring unit 303, monitor ID in ID set consumption parameter whether with pre-set ID threshold parameter phase
Matching;When the consumption parameter of ID and pre-set ID threshold parameter mismatch in ID set, according to preset
ID create-rule, the ID for generating respective numbers are supplemented in the ID set.
In one embodiment of the invention, aforementioned schemes are based on, execution unit 301 is configured that
Determine whether to receive the ID request for the first time;
When it is non-receive ID request for the first time when, transfer the historical record of ID request;
It is recorded according to the historical requests, obtains the ID in the ID set pre-established and request corresponding history
ID。
When receiving ID request for the first time, in ID set, ID corresponding with ID request is obtained.
In one embodiment of the invention, aforementioned schemes are based on, execution unit 301 is configured that
Parse the ID parameter for including in the ID request that the client is sent;
The corresponding type of service of the client is determined according to the ID parameter;
ID storage region corresponding with the type of service is searched in ID set, wherein is set in the ID set
At least one is equipped with for storing the ID storage region of ID;
In the corresponding ID storage region of the type of service, ID corresponding with ID request is obtained.
In one embodiment of the invention, aforementioned schemes are based on, execution unit 301 is configured that
Call pre-set counting pointer;
Using the counting pointer, the multiple ID that successively will acquire sends the client.
In one embodiment of the invention, aforementioned schemes are based on, transmission unit 302 is configured that
The ID that each client that will acquire is sent requests corresponding ID, asks according to the ID that each client is sent is received
The time sequencing asked, the ID that successively will acquire are sent to each client.
In one embodiment of the invention, aforementioned schemes are based on, monitoring unit 303 is configured that
It monitors in the ID storage region, whether the depletion rate of current ID is greater than pre-set threshold speed;
It is determining with the current ID's when the depletion rate of the current ID is greater than the pre-set threshold speed
The corresponding ID supplemental amount of depletion rate;
The ID for generating the corresponding ID supplemental amount, is supplemented in the ID storage region.
In one embodiment of the invention, aforementioned schemes are based on, monitoring unit 303 is configured that
It monitors in the ID storage region, whether the depletion rate of current ID is greater than pre-set threshold speed;
When the depletion rate of the ID is not more than the pre-set threshold speed, judge in the ID storage region
Whether remaining ID quantity is less than preset amount threshold;
When the ID quantity remaining in the ID storage region is less than the preset amount threshold, respective counts are generated
The ID of amount is supplemented in the ID storage region, until the quantity of ID is not less than the preset quantity in ID storage
Threshold value.
ID generating means provided in an embodiment of the present invention, client during obtaining ID, can according to actual needs,
It sends ID to request to processor, processor is made to receive ID request, when receiving the ID request of client transmission, pre-
ID corresponding with ID request is obtained in the ID set first established;The ID that will acquire is sent to the client, and
Whether the consumption parameter that ID in the ID set is monitored in transmission process matches with pre-set ID threshold parameter;When described
When the consumption parameter of ID and pre-set ID threshold parameter mismatch in ID set, according to preset ID create-rule,
The ID for generating respective numbers is supplemented in the ID set.It, can be before client request ID by method disclosed above
A certain number of ID are first generated, and can be timely responded to large number of by the consumption parameter of monitoring ID to determine whether to supplement ID
Client ID request, effectively solve the problems, such as high concurrent.
The embodiment of the invention also provides a kind of storage medium, the storage medium includes the instruction of storage, wherein in institute
It states the equipment where controlling the storage medium when instruction operation and executes above-mentioned ID generation method, the method specifically includes:
When receiving the ID request of client transmission, obtained in the ID set pre-established corresponding with ID request
ID;
The ID that will acquire is sent to the client, and the consumption of ID in the ID set is monitored in transmission process
Whether parameter matches with pre-set ID threshold parameter;
When the consumption parameter of ID and pre-set ID threshold parameter mismatch in ID set, according to presetting
ID create-rule, the ID for generating respective numbers is supplemented in ID set.
Above-mentioned method, it is preferred that it is described when receiving the ID request of client transmission, in the ID set pre-established
It is middle to obtain ID corresponding with ID request, comprising:
Determine whether to receive the ID request for the first time;
When it is non-receive ID request for the first time when, transfer the historical record of ID request;
It is recorded according to the historical requests, obtains the ID in the ID set pre-established and request corresponding history
ID。
Above-mentioned method, it is preferred that it is described when receiving the ID request of client transmission, in the ID set pre-established
It is middle to obtain ID corresponding with ID request, comprising:
Parse the ID parameter for including in the ID request that the client is sent;
The corresponding type of service of the client is determined according to the ID parameter;
ID storage region corresponding with the type of service is searched in ID set, wherein is set in the ID set
At least one is equipped with for storing the ID storage region of ID;In the corresponding ID storage region of the type of service, acquisition and institute
It states ID and requests corresponding ID.
Above-mentioned method, it is preferred that described to will acquire when the ID corresponding with ID request of acquisition is multiple ID
The ID is sent to the client, comprising:
Call pre-set counting pointer;
Using the counting pointer, the multiple ID that successively will acquire sends the client.
Above-mentioned method, it is preferred that in the monitoring ID set consumption parameter of ID whether with pre-set ID
Threshold parameter matches, when the consumption parameter of ID and pre-set ID threshold parameter mismatch in ID set, according to
Preset ID create-rule, the ID for generating respective numbers are supplemented in the ID set, comprising:
It monitors in the ID storage region, whether the depletion rate of current ID is greater than pre-set threshold speed;
It is determining with the current ID's when the depletion rate of the current ID is greater than the pre-set threshold speed
The corresponding ID supplemental amount of depletion rate;The ID for generating the corresponding ID supplemental amount, is supplemented in the ID storage region.
Above-mentioned method, it is preferred that in the monitoring ID set consumption parameter of ID whether with pre-set ID
Threshold value matches, when the consumption parameter of ID and pre-set ID threshold parameter mismatch in ID set, according to preparatory
The ID create-rule of setting, the ID for generating respective numbers are supplemented in the ID set, comprising:
It monitors in the ID storage region, whether the depletion rate of current ID is greater than pre-set threshold speed;
When the depletion rate of the current ID is not more than the pre-set threshold speed, the memory block ID is judged
Whether remaining ID quantity is less than preset amount threshold in domain;
When the ID quantity remaining in the ID storage region is less than the preset amount threshold, respective counts are generated
The ID of amount is supplemented in the ID storage region, until the quantity of ID is not less than the preset quantity threshold in ID storage
Value.
Above-mentioned method, it is preferred that when receiving the ID request of multiple client transmission, the ID that will acquire
Being sent to the client includes:
The ID that each client that will acquire is sent requests corresponding ID, asks according to the ID that each client is sent is received
The time sequencing asked, the ID that successively will acquire are sent to each client.
The embodiment of the invention also provides a kind of electronic equipment, structural schematic diagram is as shown in figure 5, specifically include memory
401 and one perhaps more than one 402 one of them or more than one instruction of instruction 402 be stored in memory 401
In, and be configured to by one or more than one processor 403 execute the one or more instruction 402 carry out with
Lower operation:
When receiving the ID request of client transmission, obtained in the ID set pre-established corresponding with ID request
ID;
The ID that will acquire is sent to the client, and the consumption of ID in the ID set is monitored in transmission process
Whether parameter matches with pre-set ID threshold parameter;
When the consumption parameter of ID and pre-set ID threshold parameter mismatch in ID set, according to presetting
ID create-rule, the ID for generating respective numbers is supplemented in ID set.
It should be noted that all the embodiments in this specification are described in a progressive manner, each embodiment weight
Point explanation is the difference from other embodiments, and the same or similar parts between the embodiments can be referred to each other.
For device class embodiment, since it is basically similar to the method embodiment, so being described relatively simple, related place ginseng
See the part explanation of embodiment of the method.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation
Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning
Covering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes that
A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or
The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged
Except there is also other identical elements in the process, method, article or apparatus that includes the element.
For convenience of description, it is divided into various units when description apparatus above with function to describe respectively.Certainly, implementing this
The function of each unit can be realized in the same or multiple software and or hardware when invention.
As seen through the above description of the embodiments, those skilled in the art can be understood that the present invention can
It realizes by means of software and necessary general hardware platform.Based on this understanding, technical solution of the present invention essence
On in other words the part that contributes to existing technology can be embodied in the form of software products, the computer software product
It can store in storage medium, such as ROM/RAM, magnetic disk, CD, including some instructions are used so that a computer equipment
(can be personal computer, server or the network equipment etc.) executes the certain of each embodiment or embodiment of the invention
Method described in part.
A kind of ID generation method provided by the present invention and device are described in detail above, tool used herein
Principle and implementation of the present invention are described for body example, the above embodiments are only used to help understand this hair
Bright method and its core concept;At the same time, for those skilled in the art, according to the thought of the present invention, specific real
Apply in mode and application range that there will be changes, in conclusion the content of the present specification should not be construed as to limit of the invention
System.
Claims (10)
1. a kind of ID generation method characterized by comprising
When receiving the ID request of client transmission, obtained in the ID set pre-established corresponding with ID request
ID;
The ID that will acquire is sent to the client, and the consumption parameter of ID in the ID set is monitored in transmission process
Whether match with pre-set ID threshold parameter;
When the consumption parameter of ID and pre-set ID threshold parameter mismatch in ID set, according to preset ID
Create-rule, the ID for generating respective numbers are supplemented in the ID set.
2. the method according to claim 1, wherein it is described when receive client transmission ID request when,
ID corresponding with ID request is obtained in the ID set pre-established, comprising:
Determine whether to receive the ID request for the first time;
When it is non-receive ID request for the first time when, transfer the historical requests record of ID request;
It is recorded according to the historical requests, obtains the ID in the ID set pre-established and request corresponding history ID.
3. the method according to claim 1, wherein it is described when receive client transmission ID request when,
ID corresponding with ID request is obtained in the ID set pre-established, comprising:
Parse the ID parameter for including in the ID request that the client is sent;
The corresponding type of service of the client is determined according to the ID parameter;
ID storage region corresponding with the type of service is searched in ID set, wherein is provided in the ID set
At least one is used to store the ID storage region of ID;
In the corresponding ID storage region of the type of service, ID corresponding with ID request is obtained.
4. according to the method described in claim 3, it is characterized in that, when the ID corresponding with ID request obtained is multiple ID
When, the ID that will acquire is sent to the client, comprising:
Call pre-set counting pointer;
Using the counting pointer, the multiple ID that successively will acquire sends the client.
5. according to the method described in claim 3, it is characterized in that, in the monitoring ID set ID consumption parameter whether
Match with pre-set ID threshold parameter, when the consumption parameter of ID and pre-set ID threshold parameter in ID set
When mismatch, according to preset ID create-rule, the ID for generating respective numbers is supplemented in the ID set, comprising:
It monitors in the ID storage region, whether the depletion rate of current ID is greater than pre-set threshold speed;
When the depletion rate of the current ID is greater than the pre-set threshold speed, the determining consumption with the current ID
The corresponding ID supplemental amount of speed;
The ID for generating the corresponding ID supplemental amount, is supplemented in the ID storage region.
6. according to the method described in claim 3, it is characterized in that, in the monitoring ID set ID consumption parameter whether
Match with pre-set ID threshold value, when the consumption parameter of ID and pre-set ID threshold parameter be not in ID set
Timing, according to preset ID create-rule, the ID for generating respective numbers is supplemented in the ID set, comprising:
It monitors in the ID storage region, whether the depletion rate of current ID is greater than pre-set threshold speed;
When the depletion rate of the ID is not more than the pre-set threshold speed, judge remaining in the ID storage region
ID quantity whether be less than preset amount threshold;
When the ID quantity remaining in the ID storage region is less than the preset amount threshold, respective numbers are generated
ID is supplemented in the ID storage region, until the quantity of ID is not less than the preset amount threshold in ID storage.
7. the method according to claim 1, wherein when receive multiple client transmission ID request when, institute
The ID that stating will acquire is sent to the client
The ID that each client that will acquire is sent requests corresponding ID, according to the ID request for receiving each client transmission
Time sequencing, the ID that successively will acquire are sent to each client.
8. a kind of ID generating means characterized by comprising
Execution unit is obtained in the ID set pre-established and is asked with the ID when receiving the ID request of client transmission
Seek corresponding ID;
Transmission unit sends the ID to client;
Whether monitoring unit, the consumption parameter for monitoring ID in the ID set match with pre-set ID threshold parameter;When
When the consumption parameter of ID and pre-set ID threshold parameter mismatch in the ID set, is generated and advised according to preset ID
Then, the ID for generating respective numbers is supplemented in the ID set.
9. a kind of storage medium, which is characterized in that the storage medium includes store instruction, wherein in described instruction operation
Equipment where controlling the storage medium executes the ID generation method as described in claim 1~7 any one.
10. a kind of electronic equipment, which is characterized in that including memory and one or more than one instruction, one of them
Or more than one instruction is stored in memory, and is configured to execute such as claim by one or more than one processor
ID generation method described in 1~7 any one.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811312565.8A CN109376155B (en) | 2018-11-06 | 2018-11-06 | ID generation method and device, storage medium and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811312565.8A CN109376155B (en) | 2018-11-06 | 2018-11-06 | ID generation method and device, storage medium and electronic device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109376155A true CN109376155A (en) | 2019-02-22 |
CN109376155B CN109376155B (en) | 2021-07-20 |
Family
ID=65397239
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811312565.8A Active CN109376155B (en) | 2018-11-06 | 2018-11-06 | ID generation method and device, storage medium and electronic device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109376155B (en) |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110046192A (en) * | 2019-04-22 | 2019-07-23 | 广州荔支网络技术有限公司 | The serial number gencration system and method for solicited message |
CN110489253A (en) * | 2019-07-05 | 2019-11-22 | 中国平安财产保险股份有限公司 | Data processing method, device, equipment and computer readable storage medium |
CN110795604A (en) * | 2019-10-29 | 2020-02-14 | 中国工商银行股份有限公司 | Method, apparatus, computing device and medium for generating transaction serial number |
CN111241112A (en) * | 2019-12-27 | 2020-06-05 | 山大地纬软件股份有限公司 | Micro-service call supervision system and method for guaranteeing idempotent |
CN111708997A (en) * | 2020-06-19 | 2020-09-25 | 浙江大华技术股份有限公司 | Method and device for determining target object identity identifier and storage medium |
CN111784425A (en) * | 2019-04-03 | 2020-10-16 | 北京车和家信息技术有限公司 | Order number generation method, exception handling method and device |
CN111950232A (en) * | 2019-05-16 | 2020-11-17 | 北京京东尚科信息技术有限公司 | Method and device for automatically switching number segments |
CN111985187A (en) * | 2020-08-31 | 2020-11-24 | 卫宁健康科技集团股份有限公司 | Distributed ID acquisition method, device, electronic equipment and storage medium |
CN112328598A (en) * | 2020-11-09 | 2021-02-05 | 北京达佳互联信息技术有限公司 | ID generation method, device, electronic equipment and storage medium |
CN112685750A (en) * | 2020-12-25 | 2021-04-20 | 联想(北京)有限公司 | Data processing method and device |
CN113065034A (en) * | 2021-03-29 | 2021-07-02 | 上海安畅网络科技股份有限公司 | Distributed system number generation method and system |
CN113641583A (en) * | 2021-08-16 | 2021-11-12 | 拉扎斯网络科技(上海)有限公司 | Data processing method, data processing apparatus, electronic device, storage medium, and program product |
CN113743786A (en) * | 2021-09-06 | 2021-12-03 | 携程科技(上海)有限公司 | Order number distribution method, system, equipment and storage medium for multi-class service line |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050256931A1 (en) * | 2004-04-30 | 2005-11-17 | Bernd Follmeg | Methods and apparatuses for processing messages in an enterprise computing environment |
US20110057025A1 (en) * | 2009-09-04 | 2011-03-10 | Paycode Systems, Inc. | Generation, management and usage of on-demand payment ids |
CN102769667A (en) * | 2012-06-29 | 2012-11-07 | 北京奇虎科技有限公司 | Method, equipment and system for generating ID |
CN103813475A (en) * | 2014-02-20 | 2014-05-21 | 联想(北京)有限公司 | Data transmission method, data acquisition method and electronic device |
CN104092756A (en) * | 2014-07-09 | 2014-10-08 | 东南大学 | Cloud storage system resource dynamic allocation method based on DHT mechanism |
CN104317749A (en) * | 2014-10-31 | 2015-01-28 | 小米科技有限责任公司 | Information writing method and device |
CN104486407A (en) * | 2014-12-12 | 2015-04-01 | 北京国双科技有限公司 | Method and device for generating numbers |
CN105653639A (en) * | 2015-12-25 | 2016-06-08 | 北京奇虎科技有限公司 | ID generation method and apparatus |
CN108182250A (en) * | 2017-12-28 | 2018-06-19 | 福建中金在线信息科技有限公司 | Article update reminding method, apparatus and system |
-
2018
- 2018-11-06 CN CN201811312565.8A patent/CN109376155B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050256931A1 (en) * | 2004-04-30 | 2005-11-17 | Bernd Follmeg | Methods and apparatuses for processing messages in an enterprise computing environment |
US20110057025A1 (en) * | 2009-09-04 | 2011-03-10 | Paycode Systems, Inc. | Generation, management and usage of on-demand payment ids |
CN102769667A (en) * | 2012-06-29 | 2012-11-07 | 北京奇虎科技有限公司 | Method, equipment and system for generating ID |
CN103813475A (en) * | 2014-02-20 | 2014-05-21 | 联想(北京)有限公司 | Data transmission method, data acquisition method and electronic device |
CN104092756A (en) * | 2014-07-09 | 2014-10-08 | 东南大学 | Cloud storage system resource dynamic allocation method based on DHT mechanism |
CN104317749A (en) * | 2014-10-31 | 2015-01-28 | 小米科技有限责任公司 | Information writing method and device |
CN104486407A (en) * | 2014-12-12 | 2015-04-01 | 北京国双科技有限公司 | Method and device for generating numbers |
CN105653639A (en) * | 2015-12-25 | 2016-06-08 | 北京奇虎科技有限公司 | ID generation method and apparatus |
CN108182250A (en) * | 2017-12-28 | 2018-06-19 | 福建中金在线信息科技有限公司 | Article update reminding method, apparatus and system |
Non-Patent Citations (2)
Title |
---|
KOUSHIK AKKINAPALLI 等: "A Survey on Encryption and Improved Virtualization Security Techniques for Cloud Infrastructure", 《GLOBAL JOURNAL OF COMPUTER SCIENCE AND TECHNOLOGY》 * |
刘振兴: "一种基于消息摘要的人机验证应用研究", 《网络安全技术与应用》 * |
Cited By (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111784425A (en) * | 2019-04-03 | 2020-10-16 | 北京车和家信息技术有限公司 | Order number generation method, exception handling method and device |
CN111784425B (en) * | 2019-04-03 | 2023-10-17 | 北京车和家信息技术有限公司 | Order number generation method, exception handling method and device |
CN110046192A (en) * | 2019-04-22 | 2019-07-23 | 广州荔支网络技术有限公司 | The serial number gencration system and method for solicited message |
CN111950232A (en) * | 2019-05-16 | 2020-11-17 | 北京京东尚科信息技术有限公司 | Method and device for automatically switching number segments |
CN111950232B (en) * | 2019-05-16 | 2023-09-05 | 北京京东振世信息技术有限公司 | Method and device for automatically switching number segments |
CN110489253A (en) * | 2019-07-05 | 2019-11-22 | 中国平安财产保险股份有限公司 | Data processing method, device, equipment and computer readable storage medium |
CN110795604A (en) * | 2019-10-29 | 2020-02-14 | 中国工商银行股份有限公司 | Method, apparatus, computing device and medium for generating transaction serial number |
CN111241112A (en) * | 2019-12-27 | 2020-06-05 | 山大地纬软件股份有限公司 | Micro-service call supervision system and method for guaranteeing idempotent |
CN111708997B (en) * | 2020-06-19 | 2023-06-13 | 浙江大华技术股份有限公司 | Method, device and storage medium for determining target object identity identifier |
CN111708997A (en) * | 2020-06-19 | 2020-09-25 | 浙江大华技术股份有限公司 | Method and device for determining target object identity identifier and storage medium |
CN111985187A (en) * | 2020-08-31 | 2020-11-24 | 卫宁健康科技集团股份有限公司 | Distributed ID acquisition method, device, electronic equipment and storage medium |
CN111985187B (en) * | 2020-08-31 | 2021-06-08 | 卫宁健康科技集团股份有限公司 | Distributed ID acquisition method, device, electronic equipment and storage medium |
CN112328598A (en) * | 2020-11-09 | 2021-02-05 | 北京达佳互联信息技术有限公司 | ID generation method, device, electronic equipment and storage medium |
CN112328598B (en) * | 2020-11-09 | 2024-01-09 | 北京达佳互联信息技术有限公司 | ID generation method, ID generation device, electronic equipment and storage medium |
CN112685750A (en) * | 2020-12-25 | 2021-04-20 | 联想(北京)有限公司 | Data processing method and device |
CN113065034A (en) * | 2021-03-29 | 2021-07-02 | 上海安畅网络科技股份有限公司 | Distributed system number generation method and system |
CN113641583A (en) * | 2021-08-16 | 2021-11-12 | 拉扎斯网络科技(上海)有限公司 | Data processing method, data processing apparatus, electronic device, storage medium, and program product |
CN113743786A (en) * | 2021-09-06 | 2021-12-03 | 携程科技(上海)有限公司 | Order number distribution method, system, equipment and storage medium for multi-class service line |
Also Published As
Publication number | Publication date |
---|---|
CN109376155B (en) | 2021-07-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109376155A (en) | ID generation method and device, storage medium and electronic equipment | |
CN103841134B (en) | Based on API transmission, the method for receive information, apparatus and system | |
CN107682397B (en) | Customer resources acquisition methods, device, terminal device and storage medium | |
US7949712B2 (en) | High availability presence engine for instant messaging | |
US20090119233A1 (en) | Power Optimization Through Datacenter Client and Workflow Resource Migration | |
CN107622102B (en) | Entity card number generation method and terminal device | |
CN104243598B (en) | A kind of information recommendation method and device | |
CN109586969A (en) | Content distributing network disaster recovery method, device, computer equipment and storage medium | |
CN104092555B (en) | A kind of methods, devices and systems of undated parameter value | |
CN110430274A (en) | A kind of document down loading method and system based on cloud storage | |
CN103685603B (en) | Domain name system resolution and equipment | |
CN108881516A (en) | A kind of method and apparatus for dispatching more CDN service systems | |
CN104995899A (en) | Server load management | |
CN107819825A (en) | A kind of service scheduling method, device and electronic equipment | |
CN108804242A (en) | A kind of data counts De-weight method, system, server and storage medium | |
CN105530311A (en) | Load distribution method and device | |
KR20190103199A (en) | Transaction object reservation system, method and apparatus | |
CN108446170A (en) | A kind of DNS thread management methods, device and server based on machine learning | |
CN107908481A (en) | A kind of method of data synchronization, device and system | |
CN105245367B (en) | A kind of sequence number generation method and electronic equipment | |
CN108874805B (en) | Data processing method and device | |
CN108900314A (en) | A kind of the number of request charging method and device of network acceleration service | |
CN102769583B (en) | User distribution device and user distribution method of instant messaging server | |
CN106161547B (en) | A kind of method and apparatus generating cloud service experience tool | |
CN110019456A (en) | Data lead-in method, device and system |
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 | ||
CP03 | Change of name, title or address |
Address after: Floor 36, Zheshang Building, No. 718 Jianshe Avenue, Jiang'an District, Wuhan, Hubei 430019 Patentee after: TK.CN INSURANCE Co.,Ltd. Patentee after: TAIKANG INSURANCE GROUP Co.,Ltd. Address before: Taikang Life Building, 156 fuxingmennei street, Xicheng District, Beijing 100031 Patentee before: TAIKANG INSURANCE GROUP Co.,Ltd. Patentee before: TK.CN INSURANCE Co.,Ltd. |
|
CP03 | Change of name, title or address |