CN108848037A - Service request processing method, device, computer equipment and storage medium - Google Patents
Service request processing method, device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN108848037A CN108848037A CN201810547521.7A CN201810547521A CN108848037A CN 108848037 A CN108848037 A CN 108848037A CN 201810547521 A CN201810547521 A CN 201810547521A CN 108848037 A CN108848037 A CN 108848037A
- Authority
- CN
- China
- Prior art keywords
- service request
- index
- current
- service
- current limliting
- 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
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/215—Flow control; Congestion control using token-bucket
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
This application involves a kind of service request processing method, device, computer equipment and storage mediums.The method includes:The first service request is received, first service request carries service identification;First service request is distributed into first message queue;Obtain the first business token generated by global current limiter according to the first current limliting index;It identifies service unit corresponding with the service identification, first service request is added in the corresponding request queue of the service unit;Obtain the first response results corresponding with first service request that the request queue returns;The first current limliting index of the global current limiter is updated according to first response results.It can guarantee that service platform operates normally using this method.
Description
Technical field
This application involves field of computer technology, set more particularly to a kind of service request processing method, device, computer
Standby and storage medium.
Background technique
Online medical treatment refers to that user passes through the client installed in the electronic equipments such as mobile phone, it can realizes that department pushes away
It recommends, the medical acts such as online interrogation.
In user by the way that from different medical information system communication process, there is the scenes of a large number of services request, i.e.,
Medical information system receives the service request of a large number of users addition in a short time, and under such scene frequent occurrence
Due to medical information system computing capability bottleneck caused by service request fail situation, such as access time-out, access is limited,
System crash cannot respond to for a long time.
Summary of the invention
Based on this, it is necessary in view of the above technical problems, provide a kind of service request that can guarantee system and operate normally
Processing method, device, computer equipment and storage medium.
A kind of service request processing method, the method includes:
The first service request is received, first service request carries service identification;
First service request is distributed into first message queue;
Obtain the first business token generated by global current limiter according to the first current limliting index;
It identifies service unit corresponding with the service identification, first service request is added to the service unit
In corresponding request queue;
Obtain the first response results corresponding with first service request that the request queue returns;
The first current limliting index of the global current limiter is updated according to first response results.
First response results include the first the currently active length of the request queue in one of the embodiments,
With the first total length;The first current limliting index that the global current limiter is updated according to first response results, including:
The first negative of the request queue is calculated according to the described first the currently active length and first total length
Carry ratio;
Obtain the first current current limliting index of the global current limiter;
When first duty factor is greater than first threshold, then the first current limliting index of the global current limiter is updated to
The half of the first current current limliting index;
When first duty factor is less than second threshold, then the first current limliting index of the global current limiter is updated to
Default times of the first of the first current current limliting index, and the maximum stream flow of the updated first current limliting index is greater than etc.
In the maximum stream flow of the first current current limliting index.
In one of the embodiments, the method also includes:
When first service request is not added with to when the request queue, then first service request is added again
In the first message queue.
In one of the embodiments, the method also includes:
Obtain the second service request that the service unit waits for sending to third party;
Second service request is distributed into second message queue;
Obtain the second business token generated by business current limiter according to the second current limliting index;
Second service request is added in the corresponding transmit queue of the service unit;
Obtain the second response results corresponding with second service request that the transmit queue returns;
The second current limliting index of the business current limiter is updated according to second response results.
Second response results include the second the currently active length of the transmit queue in one of the embodiments,
With the second total length;The second current limliting index that the business current limiter is updated according to second response results, including:
The second negative of the transmit queue is calculated according to the described second the currently active length and second total length
Carry ratio;
Obtain the second current current limliting index of the business current limiter;
When second duty factor is greater than third threshold value, then the second current limliting index of the business current limiter is updated to
The half of the second current current limliting index;
When second duty factor is less than four threshold values, then the second current limliting index of the business current limiter is updated to
Default times of the second of the second current current limliting index, and the maximum stream flow of the updated second current limliting index is greater than etc.
In the maximum stream flow of the second current current limliting index.
In one of the embodiments, the method also includes:
When second service request is not added with to the transmit queue, then second service request is added again
In the second message queue.
A kind of service request processing unit, described device include:
First service request obtains module, and for receiving the first service request, first service request carries business
Mark;
First distribution module, for distributing first service request into first message queue;
First business token obtains module, for obtaining the first industry generated by global current limiter according to the first current limliting index
Business token;
First identification module, service unit corresponding with the service identification for identification, by first service request
It is added in the corresponding request queue of the service unit;
First response results obtain module, for obtaining the corresponding with first service request of the request queue return
The first response results;
First update module, the first current limliting for updating the global current limiter according to first response results refer to
Mark.
Described device further includes in one of the embodiments,:
Second service request obtains module, waits for that the second business sent to third party is asked for obtaining the service unit
It asks;
Second distribution module, for distributing first service request into second message queue;
Second business token obtains module, for obtaining the second industry generated by business current limiter according to the second current limliting index
Business token;
Second identification module, for second service request to be added to the corresponding transmit queue of the service unit
In;
Second response results obtain module, for obtaining the corresponding with second service request of the transmit queue return
The second response results;
Second update module, the second current limliting for updating the business current limiter according to second response results refer to
Mark.
A kind of computer equipment, including memory and processor, the memory are stored with computer program, the processing
The step of device realizes any of the above-described the method when executing the computer program.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor
The step of method described in any of the above embodiments is realized when row.
Above-mentioned service request processing method, device, computer equipment and storage medium are receiving the first service request
When, the first service request is distributed into first message queue, and after getting the first business token of global current limiter, it will
First service request is added in the corresponding request queue of service unit, and the response results of acquisition request queue, according to the sound
Should result the first current limliting index of global current limiter is updated, to achieve the purpose that real-time update current limliting index, thus
The normal operation of guarantee system.
Detailed description of the invention
Fig. 1 is the application scenario diagram of service request processing method in one embodiment;
Fig. 2 is the flow diagram of service request processing method in one embodiment;
Fig. 3 is the flow diagram of service request processing method in another embodiment;
Fig. 4 is the structural block diagram of service request processing unit in one embodiment;
Fig. 5 is the internal structure chart of computer equipment in one embodiment.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood
The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, not
For limiting the application.
Service request processing method provided by the present application can be applied in application environment as shown in Figure 1.Wherein, eventually
End is communicated with service platform by network, and wherein service platform includes gateway and several service units, each clothes
The server cluster of multiple servers composition is provided in business unit, as shown in Figure 1, wherein global current limiter with gateway is
One-to-one relationship, business current limiter and service unit are then one-to-one relationships, the corresponding request queue of each service unit.
Gateway is used to receive the first service request of terminal, and the first service request is distributed to corresponding service unit, thus
Service unit calls third party's operation system to be handled the service request to obtain final processing result.Therefore gateway
In global current limiter be to belong to first order protection, i.e. gateway passes through the first business that global current limiter is directed to all terminals
The current limliting of request, for protecting the service traffics of service platform entirety.And business current limiter is then second level protection, is to be directed to
Specific business, such as the second service request that service platform is sent to third party's operation system.And wherein business current limiter
Receive the influence of global current limiter, for example, business current limiter be can be to more fine granularity in the range of global current limiter allows
Business carry out flow restriction, such as global current limiter is provided with 400 the first service requests per second, then business current limiter can be with
100 second requests per second are set, but if there is 5 business current limiters are provided with 100 second requests per second simultaneously, then should
The summation of 5 business current limiters does not still exceed the setting of global current limiter.In addition, request queue is that service unit maintains
, which can be used Thread Pool Technology realization, such as may include 8 active threads and 100 queuing threads, institute
The first service request having all will be lined up to enter in thread pool and execute.
In practical applications, the working principle of global current limiter is as follows, and service platform receives terminal by gateway
The first service request, then the first service request is distributed into first message queue, and from global current limiter obtain first
Business token, wherein the first business token is that global current limiter is generated according to the first current limliting index, gateway is being got
After first business token, the first service request is added in the corresponding request queue of service unit, and obtains the first business and asks
Corresponding response results are sought, i.e. whether request queue receives first service request, and according to the response results of the request queue
The first current limliting index of global current limiter is updated, the dynamic for realizing the first current limliting index of global current limiter updates.Wherein,
Terminal, which can be, but not limited to, to be various personal computers, laptop, smart phone, tablet computer and portable wearable sets
It is standby.
In one embodiment, as shown in Fig. 2, providing a kind of service request processing method, it is applied to Fig. 1 in this way
In server for be illustrated, include the following steps:
S202:The first service request is received, the first service request carries service identification.
Specifically, the first service request is that service platform is sent to by terminal, and the gateway in service platform receives
First service request.Terminal can refer to that insurance institution etc. needs to call the operation system of the service of service platform.Business mark
Knowledge is the mark for distinguishing to the first service request, such as it can indicate the type of transaction of the first service request.
S204:First service request is distributed into first message queue.
Specifically, first message queue is the queue for the first service request that gateway is used to store terminal transmission, when
When gateway receives the first service request, then it is according to the arrival of the priority and the first service request of the first service request
Time distributes the first service request into first message queue, such as gateway first determines whether the first service request has
There is priority tag, if it is, the first service request is distributed according to priority tag into first message queue, if the
One service request does not have priority tag, then gateway reaches the time of gateway for first according to the first service request
Service request is distributed into first message queue, to guarantee the normal processing of the first service request in first message queue.
S206:Obtain the first business token generated by global current limiter according to the first current limliting index.
Specifically, the first business token is to be used to indicate gateway one of them first service request is added to correspondence
The business token of the request queue of service unit does not have permission will when the first business token has not been obtained in gateway
Any one first service request is added in the request queue of corresponding service unit.
First business token is to be generated by global current limiter according to the first current limliting index, be can be by global current limiter
Daemon thread generate according to the first current limliting index, and the validity period of each token is 0.5 second, generates the time interval of token
For the number of requests of 1 second/setting per second, wherein the number of requests of setting per second is the first current limliting index.For example, when the first limit
When stream index is 50 requests, then the time interval for generating token is 0.02 second, i.e., one token of generation in every 0.02 second.Service network
Available the first business token to the generation is closed, after then getting the first business token again, then according to first industry
Business token gets first service request from first message queue, and first service request is added to corresponding ask
It asks in queue.
S208:It identifies service unit corresponding with service identification, it is corresponding that the first service request is added to service unit
In request queue.
Specifically, the first service request is added in corresponding request queue by gateway according to service identification, example
Such as when the service strategy of gateway is type of message strategy, then the service identification, which then can be, indicates the synchronous industry of basic data
Business either data trade business, thus gateway the first service request can be added to according to the service strategy it is corresponding
Service unit.When the corresponding service strategy of type of transaction is transmitting side marking strategy, then the service identification can refer to transmission
Side's mark, thus the corresponding transmitting side marking of the available service request of gateway;Obtain the corresponding service of transmitting side marking
Unit marks;Service request is added to service unit corresponding with service unit mark.When the service strategy inquired is
When sender's application identities strategy, then the service identification can refer to transmitting side marking and sender's application identities, to service
Gateway obtains the corresponding transmitting side marking of service request and sender's application identities;Obtain the corresponding service unit of transmitting side marking
Mark, and service unit mark corresponding with sender's application identities is chosen from accessed service unit mark;By industry
Business request is added to service unit corresponding with selected service unit mark.
S210:The first response results corresponding with the first service request that acquisition request queue returns.
Specifically, the first service request is distributed to when corresponding request queue in gateway, request queue can generate
Two kinds of response conditions, i.e. the first service request by the distribution of work to request queue or the first service request by the request team
Column refusal.Wherein when request queue generates two kinds of response conditions, it can be returned to gateway and be used for identification request queue
Currently processed situation the first response results.
S212:The first current limliting index of global current limiter is updated according to the first response results.
Specifically, the first response results are the indexs for the currently processed situation of identification request queue, are taken according to the index
Business gateway can obtain the currently processed situation of service unit, so that the first current limliting index to global current limiter carries out dynamic update,
To realize the protection to service platform, thus avoid sending the first service request to gateway in batches in the terminal short time, from
And cause service platform when handling a large amount of first service request, lead to service platform delay machine etc..
Above-mentioned service request processing method distributes the first service request to first when receiving the first service request
In message queue, and after getting the first business token of global current limiter, the first service request is added to service unit
In corresponding request queue, and the response results of acquisition request queue, according to the response results come first to global current limiter
Current limliting index is updated, to achieve the purpose that real-time update current limliting index, to guarantee the normal operation of system.
The first response results include the first the currently active length of request queue and first total in one of the embodiments,
Length;According to the first current limliting index of the global current limiter of the first response results update, may include:According to the first the currently active length
The first duty factor of request queue is calculated in degree and the first total length;The the first current current limliting for obtaining global current limiter refers to
Mark;When the first duty factor is greater than first threshold, then the first current limliting index of global current limiter is updated to the first current limit
Flow the half of index;When the first duty factor is less than second threshold, then the first current limliting index of global current limiter is updated to work as
Default times of the first of the first preceding current limliting index, and the maximum stream flow of updated first current limliting index is more than or equal to current the
The maximum stream flow of one current limliting index.
Specifically, the first response results may include the first the currently active length and the second total length of request queue, the
One the currently active length refer to can normal processed first service request quantity, according to the computing capability of service unit
Difference and lead to, such as when the quantity of server that is online in service unit and can operating normally is more, then first works as
Preceding effective length is also correspondingly larger, and furthermore hardware configuration of the first the currently active length also with server in service unit has
It closes, when hardware configuration is preferable, then the first the currently active length is also correspondingly larger.First total length refers to the request queue
Total length.First threshold is intended to indicate that current service unit can guarantee maximum load ratio when operating normally, and generally may be used
Think 75%.It, generally can be with for indicating that current service unit keeps minimum load ratio when operating normally when second threshold
It is 25%.I.e. it is general to be greater than second threshold for first threshold.
In practical applications, when the first service request is added to request queue by gateway, regardless of whether adding successfully
One first response results can be returned, are received for example, if the first service request is requested queue, then request queue will request team
The the first the currently active length and the first total length of column are back to gateway;Refuse when the first service request is requested queue,
Then the first of request queue the currently active length and the first total length are back to gateway by request queue.
Then the first duty factor is calculated according to the first the currently active length and the first total length in gateway, specifically
Ground, first the first the currently active length of duty factor p=/the first total length.
Third, which is compared by gateway with first threshold and second threshold, when the first duty factor
When greater than first threshold, i.e. when the treating capacity of service unit current request queue is larger, then by the first current limliting of global current limiter
Index is updated to the half of current first current limliting index, it is assumed for example that current first current limliting index is x, for the side of being described below
Just, it is assumed that the x is the first current limliting index of global current limiter that user defines for the first time, the of the global current limiter defined for the first time
One current limliting index is user's maximum current limliting index according to determined by the performance of service unit, then updated first current limliting index
X '=x/2.When the first duty factor is less than second threshold, i.e. when the treating capacity of service unit current request queue is smaller, then will
First current limliting index of global current limiter is updated to first default times of current first current limliting index, wherein first default is greater than again
1.Such as the first current current limliting index is x ', then updated first current limliting index can be x "=1.05x ' again, wherein
If x ">X, then x "=x.I.e. updated first current limliting index can not be greater than x, i.e., maximum current limliting index.
In above-described embodiment, the first duty factor is calculated according to the first the currently active length and the first total length, according to
The relationship of first duty factor and first threshold and second threshold adjusts the first current limliting index in real time, ensure that the first limit
The dynamic change for flowing index, to ensure that the normal operation of service platform.
Above-mentioned service request processing method can also include in one of the embodiments,:When the first service request does not add
When adding to request queue, then the first service request is added again in first message queue.
Specifically, in practical applications, it is refused when the first service request is added to request queue by gateway
When exhausted, which can be added to first message queue again, such as be added to the original position of first message queue
Place is set, it is available on this when thereby may be ensured that gateway takes the first service request in first message queue next time
Secondary the first service request being rejected, to ensure that the first service request can be normally processed.
In above-described embodiment, when the first service request is rejected and is added to request queue, which can be asked
It asks and is added in first message queue again, wait be added into request queue next time, asked so that the first business will not be lost
It asks, ensure that the first service request can be normally processed.
It is in one of the embodiments, the process of the service request processing method in another embodiment refering to Fig. 3, Fig. 3
Figure, the service request processing method not only include the current limliting process of global current limiter shown in Fig. 2, further include business current limiter
Current limliting process, itself do not caused to handle disorder by the first service request of terminal so as to protect by global current limiter,
By the quantity for the second service request that business current limiter guarantees to send to third party's operation system, to guarantee third party's business
The normal operation of system.Therefore the service request processing method for including in the present embodiment not only includes step shown in Fig. 2, also
Include the following steps:
S302:The second service request that service unit waits for sending to third party is obtained, the second service request is distributed to the
In two message queues.
Specifically, when the first service request is added to the request queue of service unit, service unit start to this
One service request is handled, and first service request is known as the second service request for convenience at this time, and gateway will take
Second service request that business unit generates is placed in second message queue, for example, service unit is first from service queue
The first service request is got, is then handled, the second service request sent to third party's operation system is generated, to take
Being engaged in, gateway is available to arrive second service request.Such as when the first service request is inquiry request of data, service unit is first
The inquiry request is first got, the mark of data to be checked is carried in the inquiry request, is then obtained according to the inquiry request
To the mark of third party's operation system, the second industry is generated according to the mark of the mark of third party's operation system and data to be checked
Business request, so that gateway is available to arrive second industry when service unit is communicated by gateway with third party
Business request.Optionally, second message queue can be same with service queue.
Second message queue is the second business that service unit is used for that storage service unit to be sent to third party's business platform
The queue of request can pass through gateway when service unit needs to send the second service request to third party's operation system
Second service request is added in second message queue.Optionally, service unit can first determine whether the second service request
Whether there is priority tag, if it is, distributing the second service request to the according to priority tag by gateway
In two message queues, if the second service request does not have priority tag, service unit is by gateway according to second
The generation time of service request distributes the second service request into second message queue, to guarantee each second service request
Normal processing.
S304:Obtain the second business token generated by business current limiter according to the second current limliting index.
Specifically, the second business token is one of them second business for being used to indicate gateway and generating service unit
Request is sent to the business token of corresponding third party's operation system, when the second business token has not been obtained in gateway,
There is no permission that any one second service request is sent in corresponding third party's operation system.
Second business token is to be generated by business current limiter according to the second current limliting index, be can be by business current limiter
Daemon thread generated according to the second current limliting index, and the validity period of each token is 0.5 second, generates the second business token
Time interval is the number of requests of 1 second/setting per second, wherein the number of requests of setting per second is the second current limliting index.For example,
When the second current limliting index is 50 requests, then the time interval for generating the second business token is 0.02 second, i.e., every life in 0.02 second
At a second business token.Available the second business token to the generation of gateway, then get again this second
After business token, then second service request is got from second message queue according to the second business token, and should
Second service request is distributed into corresponding transmit queue.
And need to pay attention to, the second current limliting index has received the influence of the first current limliting index, i.e., all second current limliting indexs
Summation even more than the first current limliting index, but the summation of actual flow does not exceed the first current limliting index, therefore, optional
Ground, when modifying to current second current limliting index, gateway can calculate the summation of all second current limliting indexs, work as institute
When having the summation of the second current limliting index to be more than the first current limliting index, then gateway calculates in addition to current second current limliting index
Then the summation of second current limliting index is calculated current second current limliting with summation calculated by the first current limliting index and refers to
Mark, specifically may refer to described below.
S306:Second service request is added in the corresponding transmit queue of service unit.
Specifically, gateway can ask the second business according to the corresponding third party's operation system of the second service request
It asks and is added in corresponding transmit queue.Such as multiple transmit queues are set in service unit, each transmit queue corresponding one
A third party's operation system, gateway divide the second service request according to the corresponding third party's operation system of the second service request
It is assigned in corresponding transmit queue.
S308:Obtain the second response results corresponding with the second service request that transmit queue returns.
Specifically, when service unit distributes the second service request to corresponding transmit queue, transmit queue can be generated
Two kinds of response conditions, i.e. the second service request by the distribution of work to transmit queue or the second service request by the transmission team
Column refusal.Wherein when transmit queue generates two kinds of response conditions, it can return to service unit for identifying transmit queue
Currently processed situation the second response results.
S310:According to the second current limliting index of the second response results more new business current limiter.
Specifically, the second response results are the indexs for identifying the currently processed situation of transmit queue, are taken according to the index
Business gateway can obtain the currently processed situation of third party's operation system, so that the second current limliting index to business current limiter carries out dynamic
It updates, to realize the protection to third party's operation system, to avoid in the service unit short time in batches to third party's business system
System, which sends the second service request, leads to third so as to cause third party's service request when handling a large amount of second service request
Square operation system delay machine etc..
Above-mentioned service request processing method distributes the first service request to first when receiving the first service request
In message queue, and after getting the first business token of global current limiter, the first service request is added to service unit
In corresponding request queue, and the first response results of acquisition request queue, according to first response results come to global current limliting
First current limliting index of device is updated, to achieve the purpose that real-time update current limliting index, to guarantee the normal of service platform
Operation, and when sending the second service request, the second service request is distributed into second message queue, and get business limit
The the second business token for flowing device, the second service request is added in corresponding transmit queue, and gets the of transmit queue
Two response results are updated the second current limliting index of business current limiter according to second response results, therefore can be real
Shi Gengxin the second current limliting index, to guarantee the normal fortune of the third party's operation system communicated with the service unit in service platform
Row.
The second response results include the second the currently active length of transmit queue and second total in one of the embodiments,
Length;According to the second current limliting index of the second response results more new business current limiter, may include:According to the second the currently active length
The second duty factor of transmit queue is calculated in degree and the second total length;The second current current limliting of acquisition business current limiter refers to
Mark;When the second duty factor is greater than third threshold value, then the second current limliting index of business current limiter is updated to the second current limit
Flow the half of index;When the second duty factor is less than four threshold values, then the second current limliting index of business current limiter is updated to work as
Default times of the second of the second preceding current limliting index, and the maximum stream flow of updated second current limliting index is more than or equal to current the
The maximum stream flow of two current limliting indexs.
Specifically, the second response results may include the second the currently active length and the second total length of transmit queue, the
Two the currently active length refer to can normal processed second service request quantity, according to the meter of third party's operation system
The difference of calculation ability and lead to, such as when the quantity of server that is online in third party's operation system and can operating normally is more
When, then the second the currently active length is also correspondingly larger, and furthermore the second the currently active length also takes with third party's operation system
The hardware configuration of business device is related, and when hardware configuration is preferable, then the second the currently active length is also correspondingly larger.Second total length
Refer to the total length of the transmit queue.When 4th threshold value is intended to indicate that current third party operation system can guarantee to operate normally
Maximum load ratio, generally can be 75%.For indicating that current third party operation system keeps normal fortune when four threshold values
Minimum load ratio when row generally can be 25%.I.e. it is general to be greater than the 4th threshold value for third threshold value.
In practical applications, when the second service request is added to transmit queue by gateway, regardless of whether adding successfully
One second response results can be returned to, for example, if the second service request is received by transmit queue, then transmit queue will send team
The the second the currently active length and the second total length of column are back to service unit;When the second service request is refused by transmit queue,
Then the second of transmit queue the currently active length and the second total length are back to service unit by transmit queue.
Then the second duty factor is calculated according to the second the currently active length and the second total length in gateway, specifically
Ground, second the second the currently active length of duty factor p=/the second total length.
Third, which is compared by gateway with third threshold value and the 4th threshold value, when the second duty factor
When greater than third threshold value, i.e., when the second service request quantity in the currently transmitted queue of gateway is more, then by business current limliting
Second current limliting index of device is updated to the half of current second current limliting index, it is assumed for example that and current second current limliting index is y, in order to
It is described below conveniently, it is assumed that the y is the second current limliting index of the business current limiter that user defines for the first time, the business defined for the first time
Second current limliting index of current limiter is user's maximum current limliting index according to determined by the performance of third party's operation system, then updates
The second current limliting index y '=y/2 afterwards.When the second duty factor is less than four threshold values, i.e., in the currently transmitted queue of gateway
When second service request is less, then the second current limliting index of business current limiter is updated to the second pre- of current second current limliting index
If again, wherein second default times is greater than 1.Such as the second current current limliting index is y ', then updated second current limliting refers to again
Mark can be y "=1.05y ', wherein if y ">Y, then y "=y.I.e. updated second current limliting index can not be greater than y, i.e., most
Big current limliting index.
In above-described embodiment, the second duty factor is calculated according to the second the currently active length and the second total length, according to
The relationship of second duty factor and third threshold value and the 4th threshold value adjusts the second current limliting index in real time, ensure that the second limit
The dynamic change for flowing index, to ensure that the normal operation of third party's operation system.
Above-mentioned service request processing method can also include in one of the embodiments,:When the second service request does not add
When adding to addition queue, then the second service request is added again in second message queue.
Specifically, in practical applications, it is refused when the second service request is added to request queue by gateway
When exhausted, which can be returned to second message queue again, such as be added to the original position of second message queue
Place is set, it is available on this when thereby may be ensured that service unit takes the second service request in second message queue next time
Secondary the second service request being rejected, to ensure that the second service request can be normally processed.
In above-described embodiment, when the second service request is rejected and is added to transmit queue, which can be asked
It asks and is added in second message queue again, wait be added into transmit queue next time, asked so that the second business will not be lost
It asks, ensure that the second service request can be normally processed.
It registers data synchronization scenarios below with reference to hospital, above-mentioned service request processing method is described in detail:It is first
First terminal is equipped with client, and the client data that can be used to be registered or registered are synchronous, therefore terminal first is to service
Platform sends the first service request, and service platform receives first service request by gateway, that is, register request or extension
After number synchronization request, in order to guarantee the normal operation of service platform, gateway distributes first service request to
In one message queue, the first business token generated by global current limiter according to the first current limliting index is then obtained, and obtaining
To after the first business token, gateway can identify that service unit corresponding with service identification, such as gateway are got
The corresponding type of message of first service request, when type of message indicates basic data synchronous service, that is, the synchronous industry of data of registering
When business, then the first service request is distributed to the request queue of service unit corresponding with data synchronous service of registering, works as message
When type list registration is according to transaction business, i.e. register traffic, the first service request is then distributed to register traffic by corresponding request of registering
The request queue of corresponding service unit.And no matter whether request queue receives first service request, it can be to gateway
Return first response results, thus gateway can update global current limiter according to first response results first
The first duty factor is calculated according to the first the currently active length and the first total length in current limliting index, such as gateway, when
When one duty factor is greater than first threshold, i.e. when the treating capacity of service unit current request queue is larger, then by global current limiter
First current limliting index is updated to the half of current first current limliting index, and when the first duty factor is less than second threshold, i.e. service is single
When the treating capacity of first current request queue is smaller, then the first current limliting index of global current limiter is updated to current first current limliting and referred to
Default times of target first, wherein first default times is greater than 1, to carry out dynamic current limiting management to gateway, protect service platform
Normal operation.
Secondly the first service request is converted to the second business after getting corresponding first service request by service unit
Then second service request is sent to third party's operation system by gateway by request, such as hospital server carries out
Interaction is with finishing service, for example, if being request of registering, then service unit is registered by gateway to hospital server transmission
Request, wherein gateway gets the second service request that service unit waits for sending to third party first, then by the second industry
Into second message queue, gateway obtains second generated by business current limiter according to the second current limliting index for business request distribution
Business token, and the second service request is added to the corresponding transmit queue of service unit after getting the second business token
In, and no matter whether transmit queue receives second service request, and second response results, clothes can be returned to gateway
Gateway be engaged according to the second current limliting index of second response results more new business current limiter, specifically gateway is worked as according to second
The second duty factor is calculated in preceding effective length and the second total length, when the second duty factor is greater than third threshold value, i.e. service network
Close the second service request quantity in currently transmitted queue it is more when, then the second current limliting index of business current limiter is updated to work as
The half of preceding second current limliting index, when the second duty factor is less than four threshold values, i.e., in the currently transmitted queue of gateway
When two service requests are less, then the second current limliting index of business current limiter are updated to the second of current second current limliting index and preset
Times, wherein second default times is greater than 1, asked with completing the second business that dynamic control service platform is sent to third party's operation system
It asks, ensure that the normal operation of third party's operation system.
Above-mentioned service request processing method distributes the first service request to first when receiving the first service request
In message queue, and after getting the first business token of global current limiter, the first service request is added to service unit
In corresponding request queue, and the first response results of acquisition request queue, according to first response results come to global current limliting
First current limliting index of device is updated, to achieve the purpose that real-time update current limliting index, to guarantee the normal of service platform
Operation, and when sending the second service request, the second service request is distributed into second message queue, and get business limit
The the second business token for flowing device, the second service request is added in corresponding transmit queue, and gets the of transmit queue
Two response results are updated the second current limliting index of business current limiter according to second response results, therefore can be real
Shi Gengxin the second current limliting index, to guarantee the normal fortune of the third party's operation system communicated with the service unit in service platform
Row.
It should be understood that although each step in the flow chart of Fig. 2 and Fig. 3 is successively shown according to the instruction of arrow,
But these steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly state otherwise herein, these
There is no stringent sequences to limit for the execution of step, these steps can execute in other order.Moreover, in Fig. 2 and Fig. 3
At least part step may include that perhaps these sub-steps of multiple stages or stage are not necessarily same to multiple sub-steps
One moment executed completion, but can execute at different times, and the execution in these sub-steps or stage sequence is also not necessarily
Be successively carry out, but can at least part of the sub-step or stage of other steps or other steps in turn or
Alternately execute.
In one embodiment, as shown in figure 4, providing a kind of service request processing unit, including:First service request
It obtains module 100, the first distribution module 200, the first business token and obtains module 300, the response of the first identification module 400, first
As a result module 500 and the first update module 600 are obtained, wherein:
First service request obtains module 100, and for receiving the first service request, the first service request carries business mark
Know.
First distribution module 200, for distributing the first service request into first message queue.
First business token obtains module 300, for obtaining generated by global current limiter according to the first current limliting index the
One business token.
First identification module 400, service unit corresponding with service identification, the first service request is added to for identification
In the corresponding request queue of service unit.
First response results obtain module 500, corresponding with the first service request the returned for acquisition request queue
One response results.
First update module 600, for updating the first current limliting index of global current limiter according to the first response results.
The first response results include the first the currently active length of request queue and first total in one of the embodiments,
Length.
First update module 600 may include:
First computing unit, for being calculated the of request queue according to the first the currently active length and the first total length
One duty factor.
First current limliting index selection unit, for obtaining the first current current limliting index of global current limiter.
First updating unit is used for when the first duty factor is greater than first threshold, then by the first current limliting of global current limiter
Index is updated to the half of the first current current limliting index;When the first duty factor is less than second threshold, then by global current limiter
The first current limliting index be updated to first default times of the first current current limliting index, and updated first current limliting index is most
Big flow is more than or equal to the maximum stream flow of the first current current limliting index.
Above-mentioned service request processing unit can also include in one of the embodiments,:
First adding module, for being not added with to when request queue when the first service request, then by the first service request weight
New addition is in first message queue.
Above-mentioned service request processing unit can also include in one of the embodiments,:
Second service request obtains module, the second service request for waiting for sending to third party for obtaining service unit.
Second distribution module, for distributing the second service request into second message queue.
Second business token obtains module, for obtaining the second industry generated by business current limiter according to the second current limliting index
Business token.
Second identification module, for the second service request to be added in the corresponding transmit queue of service unit.
Second response results obtain module, for obtaining the second sound corresponding with the second service request of transmit queue return
Answer result.
Second update module, for the second current limliting index according to the second response results more new business current limiter.
The second response results include the second the currently active length of transmit queue and second total in one of the embodiments,
Length.
Second update module may include:
Second computing unit, for being calculated the of transmit queue according to the second the currently active length and the second total length
Two duty factors.
Second current limliting index selection unit, for obtaining the second current current limliting index of business current limiter.
Second updating unit is used for when the second duty factor is greater than third threshold value, then by the second current limliting of business current limiter
Index is updated to the half of the second current current limliting index;When the second duty factor is less than four threshold values, then by business current limiter
The second current limliting index be updated to second default times of the second current current limliting index, and updated second current limliting index is most
Big flow is more than or equal to the maximum stream flow of the second current current limliting index.
Above-mentioned service request processing unit can also include in one of the embodiments,:
Second adding module, for when the second service request is not added with to transmit queue, then by the second service request weight
New addition is in second message queue.
Specific about service request processing unit limits the limit that may refer to above for service request processing method
Fixed, details are not described herein.Modules in above-mentioned service request processing unit can fully or partially through software, hardware and its
Combination is to realize.Above-mentioned each module can be embedded in the form of hardware or independently of in the processor in computer equipment, can also be with
It is stored in the memory in computer equipment in a software form, in order to which processor calls the above modules of execution corresponding
Operation.
In one embodiment, a kind of computer equipment is provided, which can be server, internal junction
Composition can be as shown in Figure 5.The computer equipment includes processor, the memory, network interface connected by system bus.Its
In, the processor of the computer equipment is for providing calculating and control ability.The memory of the computer equipment includes non-volatile
Property storage medium, built-in storage.The non-volatile memory medium is stored with operating system, computer program and database.This is interior
Memory provides environment for the operation of operating system and computer program in non-volatile memory medium.The computer equipment
Network interface is used to communicate with external terminal by network connection.To realize one kind when the computer program is executed by processor
Service request processing method.
It will be understood by those skilled in the art that structure shown in Fig. 5, only part relevant to application scheme is tied
The block diagram of structure does not constitute the restriction for the computer equipment being applied thereon to application scheme, specific computer equipment
It may include perhaps combining certain components or with different component layouts than more or fewer components as shown in the figure.
In one embodiment, a kind of computer equipment, including memory and processor are provided, which is stored with
Computer program, the processor realize following steps when executing computer program:Received first service request, the first business are asked
It asks and carries service identification;First service request is distributed into first message queue;It obtains by global current limiter according to first
The first business token that current limliting index generates;It identifies service unit corresponding with service identification, the first service request is added to
In the corresponding request queue of service unit;The first response results corresponding with the first service request that acquisition request queue returns;
The first current limliting index of global current limiter is updated according to the first response results.
In one embodiment, it includes request queue that processor, which executes related first response results when computer program,
The first the currently active length and the first total length;Processor execute computer program when realized according to the first response results
The the first current limliting index for updating global current limiter may include:It is calculated according to the first the currently active length and the first total length
To the first duty factor of request queue;Obtain the first current current limliting index of global current limiter;When the first duty factor is greater than the
When one threshold value, then the first current limliting index of global current limiter is updated to the half of the first current current limliting index;When first negative
When carrying than being less than second threshold, then the first current limliting index of global current limiter is updated to the first of the first current current limliting index
Default times, and the maximum stream flow of updated first current limliting index is more than or equal to the maximum stream flow of the first current current limliting index.
In one embodiment, following steps are also realized when processor executes computer program:When the first service request not
When being added to request queue, then the first service request is added again in first message queue.
In one embodiment, following steps are also realized when processor executes computer program:Obtain service unit wait for
The second service request that third party sends;Second service request is distributed into second message queue;It obtains by business current limiter
The the second business token generated according to the second current limliting index;Second service request is added to the corresponding transmit queue of service unit
In;Obtain the second response results corresponding with the second service request that transmit queue returns;Industry is updated according to the second response results
Second current limliting index of business current limiter.
In one embodiment, it includes transmit queue that processor, which executes related second response results when computer program,
The second the currently active length and the second total length;Processor execute computer program when realized according to the second response results
Second current limliting index of more new business current limiter may include:It is calculated according to the second the currently active length and the second total length
To the second duty factor of transmit queue;The second current current limliting index of acquisition business current limiter;When the second duty factor is greater than the
When three threshold values, then the second current limliting index of business current limiter is updated to the half of the second current current limliting index;When second negative
When carrying than less than four threshold values, then the second current limliting index of business current limiter is updated to the second of the second current current limliting index
Default times, and the maximum stream flow of updated second current limliting index is more than or equal to the maximum stream flow of the second current current limliting index.
In one embodiment, following steps are also realized when processor executes computer program:When the second service request not
When being added to transmit queue, then the second service request is added again in second message queue.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated
Machine program realizes following steps when being executed by processor:The first service request is received, the first service request carries service identification;
First service request is distributed into first message queue;Obtain first generated by global current limiter according to the first current limliting index
Business token;It identifies service unit corresponding with service identification, the first service request is added to the corresponding request of service unit
In queue;The first response results corresponding with the first service request that acquisition request queue returns;More according to the first response results
First current limliting index of new overall situation current limiter.
In one embodiment, related first response results include request team when computer program is executed by processor
The the first the currently active length and the first total length of column;That is realized when computer program is executed by processor responds according to first
As a result the first current limliting index for updating global current limiter may include:According to the first the currently active length and the first total length meter
Calculation obtains the first duty factor of request queue;Obtain the first current current limliting index of global current limiter;When the first duty factor is big
When first threshold, then the first current limliting index of global current limiter is updated to the half of the first current current limliting index;When
When one duty factor is less than second threshold, then the first current limliting index of global current limiter is updated to the first current current limliting index
First default times, and the maximum stream flow of updated first current limliting index is more than or equal to the max-flow of the first current current limliting index
Amount.
In one embodiment, following steps are also realized when computer program is executed by processor:When the first service request
It is not added with to when request queue, then adds the first service request in first message queue again.
In one embodiment, following steps are also realized when computer program is executed by processor:Service unit is obtained to wait for
The second service request sent to third party;Second service request is distributed into second message queue;It obtains by business current limliting
The second business token that device is generated according to the second current limliting index, the second business token are business current limiters corresponding with service unit
It is generated according to the second current limliting index;Second service request is added in the corresponding transmit queue of service unit;It obtains and sends
The second response results corresponding with the second service request that queue returns;According to the of the second response results more new business current limiter
Two current limliting indexs.
In one embodiment, related second response results include sending team when computer program is executed by processor
The the second the currently active length and the second total length of column;That is realized when computer program is executed by processor responds according to second
As a result the second current limliting index of more new business current limiter may include:According to the second the currently active length and the second total length meter
Calculation obtains the second duty factor of transmit queue;The second current current limliting index of acquisition business current limiter;When the second duty factor is big
When third threshold value, then the second current limliting index of business current limiter is updated to the half of the second current current limliting index;When
When two duty factors are less than four threshold values, then the second current limliting index of business current limiter is updated to the second current current limliting index
Second default times, and the maximum stream flow of updated second current limliting index is more than or equal to the max-flow of the second current current limliting index
Amount.
In one embodiment, following steps are also realized when computer program is executed by processor:When the second service request
When being not added with to transmit queue, then the second service request is added again in second message queue.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer
In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein,
To any reference of memory, storage, database or other media used in each embodiment provided herein,
Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM
(PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include
Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms,
Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing
Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM
(RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment
In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance
Shield all should be considered as described in this specification.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously
It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art
It says, without departing from the concept of this application, various modifications and improvements can be made, these belong to the protection of the application
Range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.
Claims (10)
1. a kind of service request processing method, the method includes:
The first service request is received, first service request carries service identification;
First service request is distributed into first message queue;
Obtain the first business token generated by global current limiter according to the first current limliting index;
Identify service unit corresponding with the service identification, it is corresponding that first service request is added to the service unit
Request queue in;
Obtain the first response results corresponding with first service request that the request queue returns;
The first current limliting index of the global current limiter is updated according to first response results.
2. the method according to claim 1, wherein first response results include the of the request queue
One the currently active length and the first total length;First limit that the global current limiter is updated according to first response results
Index is flowed, including:
The first duty factor of the request queue is calculated according to the described first the currently active length and first total length;
Obtain the first current current limliting index of the global current limiter;
When first duty factor is greater than first threshold, then the first current limliting index of the global current limiter is updated to described
The half of the first current current limliting index;
When first duty factor is less than second threshold, then the first current limliting index of the global current limiter is updated to described
Default times of the first of the first current current limliting index, and the maximum stream flow of the updated first current limliting index is more than or equal to institute
State the maximum stream flow of the first current current limliting index.
3. according to the method described in claim 2, it is characterized in that, the method also includes:
When first service request is not added with to when the request queue, then first service request is added again in institute
State first message queue.
4. according to claim 1 to method described in 3 any one, which is characterized in that the method also includes:
Obtain the second service request that the service unit waits for sending to third party;
Second service request is distributed into second message queue;
Obtain the second business token generated by business current limiter according to the second current limliting index;
Second service request is added in the corresponding transmit queue of the service unit;
Obtain the second response results corresponding with second service request that the transmit queue returns;
The second current limliting index of the business current limiter is updated according to second response results.
5. according to the method described in claim 4, it is characterized in that, second response results include the of the transmit queue
Two the currently active length and the second total length;Second limit that the business current limiter is updated according to second response results
Index is flowed, including:
The second duty factor of the transmit queue is calculated according to the described second the currently active length and second total length;
Obtain the second current current limliting index of the business current limiter;
When second duty factor is greater than third threshold value, then the second current limliting index of the business current limiter is updated to described
The half of the second current current limliting index;
When second duty factor is less than four threshold values, then the second current limliting index of the business current limiter is updated to described
Default times of the second of the second current current limliting index, and the maximum stream flow of the updated second current limliting index is more than or equal to institute
State the maximum stream flow of the second current current limliting index.
6. according to the method described in claim 5, it is characterized in that, the method also includes:
When second service request is not added with to the transmit queue, then second service request is added again in institute
State second message queue.
7. a kind of service request processing unit, which is characterized in that described device includes:
First service request obtains module, and for receiving the first service request, first service request carries service identification;
First distribution module, for distributing first service request into first message queue;
First business token obtains module, is enabled by global current limiter according to the first business that the first current limliting index generates for obtaining
Board;
First identification module, service unit corresponding with the service identification, first service request is added for identification
To in the corresponding request queue of the service unit;
First response results obtain module, corresponding with first service request for obtaining that the request queue returns
One response results;
First update module, for updating the first current limliting index of the global current limiter according to first response results.
8. device according to claim 7, which is characterized in that described device further includes:
Second service request obtains module, the second service request for waiting for sending to third party for obtaining the service unit;
Second distribution module, for distributing first service request into second message queue;
Second business token obtains module, is enabled by business current limiter according to the second business that the second current limliting index generates for obtaining
Board;
Second identification module, for second service request to be added in the corresponding transmit queue of the service unit;
Second response results obtain module, corresponding with second service request for obtaining that the transmit queue returns
Two response results;
Second update module, for updating the second current limliting index of the business current limiter according to second response results.
9. a kind of computer equipment, including memory and processor, the memory are stored with computer program, feature exists
In the step of processor realizes any one of claims 1 to 6 the method when executing the computer program.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program
The step of method described in any one of claims 1 to 6 is realized when being executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810547521.7A CN108848037B (en) | 2018-05-31 | 2018-05-31 | Service request processing method, device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810547521.7A CN108848037B (en) | 2018-05-31 | 2018-05-31 | Service request processing method, device, computer equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108848037A true CN108848037A (en) | 2018-11-20 |
CN108848037B CN108848037B (en) | 2023-06-20 |
Family
ID=64210261
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810547521.7A Active CN108848037B (en) | 2018-05-31 | 2018-05-31 | Service request processing method, device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108848037B (en) |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109587069A (en) * | 2018-12-11 | 2019-04-05 | 北京首汽智行科技有限公司 | A kind of current-limiting method and system based on API gateway |
CN109714265A (en) * | 2018-12-25 | 2019-05-03 | 广州华多网络科技有限公司 | A kind of terminal current-limiting method, server, system and storage medium |
CN109951400A (en) * | 2019-03-12 | 2019-06-28 | Oppo广东移动通信有限公司 | Instruction sending method, device, electronic equipment and the readable storage medium storing program for executing of terminal |
CN110740103A (en) * | 2019-09-02 | 2020-01-31 | 深圳壹账通智能科技有限公司 | Service request processing method and device, computer equipment and storage medium |
CN110943934A (en) * | 2019-11-19 | 2020-03-31 | 上海钧正网络科技有限公司 | Service request processing method, system, terminal and readable storage medium |
CN111343240A (en) * | 2020-02-12 | 2020-06-26 | 北京字节跳动网络技术有限公司 | Service request processing method and device, electronic equipment and storage medium |
CN111899858A (en) * | 2020-07-29 | 2020-11-06 | 广州海鹚网络科技有限公司 | Hospital flow limiting method and device, computer equipment and storage medium |
WO2020233020A1 (en) * | 2019-05-17 | 2020-11-26 | 平安科技(深圳)有限公司 | Method and device for pre-distributing container ip, computer device and storage medium |
CN112217738A (en) * | 2020-11-04 | 2021-01-12 | 成都中科大旗软件股份有限公司 | Flow control method, system, storage medium and terminal for text and travel data service |
CN112866136A (en) * | 2021-03-31 | 2021-05-28 | 中国工商银行股份有限公司 | Service data processing method and device |
CN113037862A (en) * | 2021-03-30 | 2021-06-25 | 北京三快在线科技有限公司 | Service request processing method, device, equipment and storage medium |
CN113238875A (en) * | 2021-04-26 | 2021-08-10 | 西安点告网络科技有限公司 | Queue-based request frequency control system and control method |
CN114285799A (en) * | 2021-12-22 | 2022-04-05 | 深圳市优必选科技股份有限公司 | Method, device, terminal and storage medium for processing service |
CN115242727A (en) * | 2022-07-15 | 2022-10-25 | 深圳市腾讯计算机系统有限公司 | User request processing method, device, equipment and medium |
CN116627681A (en) * | 2023-07-25 | 2023-08-22 | 太平金融科技服务(上海)有限公司 | Service request processing method, device, computer equipment, medium and program product |
Citations (21)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102598728A (en) * | 2009-11-12 | 2012-07-18 | 甲骨文国际公司 | Communications marketing and advertising system |
CN103716253A (en) * | 2013-12-27 | 2014-04-09 | 广州华多网络科技有限公司 | Method and device for requesting data |
CN104572308A (en) * | 2015-02-10 | 2015-04-29 | 飞狐信息技术(天津)有限公司 | Computing resource distributing method, distributed type computing method and distributed type computing device |
CN105681426A (en) * | 2016-01-22 | 2016-06-15 | 上海携程商务有限公司 | Heterogeneous system |
CN105897610A (en) * | 2016-03-31 | 2016-08-24 | 乐视控股(北京)有限公司 | Flow control method and device |
US20160248686A1 (en) * | 2015-02-24 | 2016-08-25 | Qualcomm Incorporated | Efficient policy enforcement using network tokens for services c-plane approach |
US20160248836A1 (en) * | 2015-02-20 | 2016-08-25 | International Business Machines Corporation | Scalable self-healing architecture for client-server operations in transient connectivity conditions |
CN106330769A (en) * | 2016-11-15 | 2017-01-11 | 腾讯科技(深圳)有限公司 | Business processing method and server |
CN106411777A (en) * | 2016-09-27 | 2017-02-15 | 福建中金在线信息科技有限公司 | Method and system for processing high concurrent data |
CN106453536A (en) * | 2016-09-29 | 2017-02-22 | 车智互联(北京)科技有限公司 | Network request processing method and system and server |
CN106612238A (en) * | 2015-10-21 | 2017-05-03 | 阿里巴巴集团控股有限公司 | Flow control method, device and system |
CN107346265A (en) * | 2016-05-05 | 2017-11-14 | 北京忆恒创源科技有限公司 | Realize QoS method and apparatus |
CN107370684A (en) * | 2017-06-15 | 2017-11-21 | 腾讯科技(深圳)有限公司 | Business current-limiting method and business current-limiting apparatus |
CN107391268A (en) * | 2016-05-17 | 2017-11-24 | 阿里巴巴集团控股有限公司 | service request processing method and device |
US20170351726A1 (en) * | 2016-06-03 | 2017-12-07 | Workiva Inc. | Method and computing device for minimizing accesses to data storage in conjunction with maintaining a b-tree |
CN107528885A (en) * | 2017-07-17 | 2017-12-29 | 阿里巴巴集团控股有限公司 | A kind of service request processing method and device |
CN107566293A (en) * | 2016-06-30 | 2018-01-09 | 中兴通讯股份有限公司 | A kind of method and device for message rate-limiting |
CN107707488A (en) * | 2017-10-25 | 2018-02-16 | 北京数码视讯支付技术有限公司 | Pay on-line transaction flow control methods, current limliting service end and client |
CN107920027A (en) * | 2016-10-08 | 2018-04-17 | 腾讯科技(深圳)有限公司 | A kind of flow control methods and device |
CN107979539A (en) * | 2017-10-30 | 2018-05-01 | 新华三技术有限公司 | Message processing method and device |
CN108092915A (en) * | 2017-12-01 | 2018-05-29 | 顺丰科技有限公司 | A kind of QoS of customer flow control methods and device |
-
2018
- 2018-05-31 CN CN201810547521.7A patent/CN108848037B/en active Active
Patent Citations (21)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102598728A (en) * | 2009-11-12 | 2012-07-18 | 甲骨文国际公司 | Communications marketing and advertising system |
CN103716253A (en) * | 2013-12-27 | 2014-04-09 | 广州华多网络科技有限公司 | Method and device for requesting data |
CN104572308A (en) * | 2015-02-10 | 2015-04-29 | 飞狐信息技术(天津)有限公司 | Computing resource distributing method, distributed type computing method and distributed type computing device |
US20160248836A1 (en) * | 2015-02-20 | 2016-08-25 | International Business Machines Corporation | Scalable self-healing architecture for client-server operations in transient connectivity conditions |
US20160248686A1 (en) * | 2015-02-24 | 2016-08-25 | Qualcomm Incorporated | Efficient policy enforcement using network tokens for services c-plane approach |
CN106612238A (en) * | 2015-10-21 | 2017-05-03 | 阿里巴巴集团控股有限公司 | Flow control method, device and system |
CN105681426A (en) * | 2016-01-22 | 2016-06-15 | 上海携程商务有限公司 | Heterogeneous system |
CN105897610A (en) * | 2016-03-31 | 2016-08-24 | 乐视控股(北京)有限公司 | Flow control method and device |
CN107346265A (en) * | 2016-05-05 | 2017-11-14 | 北京忆恒创源科技有限公司 | Realize QoS method and apparatus |
CN107391268A (en) * | 2016-05-17 | 2017-11-24 | 阿里巴巴集团控股有限公司 | service request processing method and device |
US20170351726A1 (en) * | 2016-06-03 | 2017-12-07 | Workiva Inc. | Method and computing device for minimizing accesses to data storage in conjunction with maintaining a b-tree |
CN107566293A (en) * | 2016-06-30 | 2018-01-09 | 中兴通讯股份有限公司 | A kind of method and device for message rate-limiting |
CN106411777A (en) * | 2016-09-27 | 2017-02-15 | 福建中金在线信息科技有限公司 | Method and system for processing high concurrent data |
CN106453536A (en) * | 2016-09-29 | 2017-02-22 | 车智互联(北京)科技有限公司 | Network request processing method and system and server |
CN107920027A (en) * | 2016-10-08 | 2018-04-17 | 腾讯科技(深圳)有限公司 | A kind of flow control methods and device |
CN106330769A (en) * | 2016-11-15 | 2017-01-11 | 腾讯科技(深圳)有限公司 | Business processing method and server |
CN107370684A (en) * | 2017-06-15 | 2017-11-21 | 腾讯科技(深圳)有限公司 | Business current-limiting method and business current-limiting apparatus |
CN107528885A (en) * | 2017-07-17 | 2017-12-29 | 阿里巴巴集团控股有限公司 | A kind of service request processing method and device |
CN107707488A (en) * | 2017-10-25 | 2018-02-16 | 北京数码视讯支付技术有限公司 | Pay on-line transaction flow control methods, current limliting service end and client |
CN107979539A (en) * | 2017-10-30 | 2018-05-01 | 新华三技术有限公司 | Message processing method and device |
CN108092915A (en) * | 2017-12-01 | 2018-05-29 | 顺丰科技有限公司 | A kind of QoS of customer flow control methods and device |
Cited By (21)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109587069A (en) * | 2018-12-11 | 2019-04-05 | 北京首汽智行科技有限公司 | A kind of current-limiting method and system based on API gateway |
CN109714265A (en) * | 2018-12-25 | 2019-05-03 | 广州华多网络科技有限公司 | A kind of terminal current-limiting method, server, system and storage medium |
CN109951400A (en) * | 2019-03-12 | 2019-06-28 | Oppo广东移动通信有限公司 | Instruction sending method, device, electronic equipment and the readable storage medium storing program for executing of terminal |
WO2020233020A1 (en) * | 2019-05-17 | 2020-11-26 | 平安科技(深圳)有限公司 | Method and device for pre-distributing container ip, computer device and storage medium |
CN110740103A (en) * | 2019-09-02 | 2020-01-31 | 深圳壹账通智能科技有限公司 | Service request processing method and device, computer equipment and storage medium |
CN110943934A (en) * | 2019-11-19 | 2020-03-31 | 上海钧正网络科技有限公司 | Service request processing method, system, terminal and readable storage medium |
CN111343240A (en) * | 2020-02-12 | 2020-06-26 | 北京字节跳动网络技术有限公司 | Service request processing method and device, electronic equipment and storage medium |
CN111343240B (en) * | 2020-02-12 | 2022-08-16 | 北京字节跳动网络技术有限公司 | Service request processing method and device, electronic equipment and storage medium |
CN111899858A (en) * | 2020-07-29 | 2020-11-06 | 广州海鹚网络科技有限公司 | Hospital flow limiting method and device, computer equipment and storage medium |
CN112217738A (en) * | 2020-11-04 | 2021-01-12 | 成都中科大旗软件股份有限公司 | Flow control method, system, storage medium and terminal for text and travel data service |
CN113037862A (en) * | 2021-03-30 | 2021-06-25 | 北京三快在线科技有限公司 | Service request processing method, device, equipment and storage medium |
CN113037862B (en) * | 2021-03-30 | 2022-07-29 | 北京三快在线科技有限公司 | Service request processing method, device, equipment and storage medium |
CN112866136A (en) * | 2021-03-31 | 2021-05-28 | 中国工商银行股份有限公司 | Service data processing method and device |
CN112866136B (en) * | 2021-03-31 | 2023-05-02 | 中国工商银行股份有限公司 | Service data processing method and device |
CN113238875A (en) * | 2021-04-26 | 2021-08-10 | 西安点告网络科技有限公司 | Queue-based request frequency control system and control method |
CN114285799A (en) * | 2021-12-22 | 2022-04-05 | 深圳市优必选科技股份有限公司 | Method, device, terminal and storage medium for processing service |
CN114285799B (en) * | 2021-12-22 | 2024-01-19 | 深圳市优必选科技股份有限公司 | Method, device, terminal and storage medium for processing service |
CN115242727A (en) * | 2022-07-15 | 2022-10-25 | 深圳市腾讯计算机系统有限公司 | User request processing method, device, equipment and medium |
CN115242727B (en) * | 2022-07-15 | 2023-08-08 | 深圳市腾讯计算机系统有限公司 | User request processing method, device, equipment and medium |
CN116627681A (en) * | 2023-07-25 | 2023-08-22 | 太平金融科技服务(上海)有限公司 | Service request processing method, device, computer equipment, medium and program product |
CN116627681B (en) * | 2023-07-25 | 2023-10-17 | 太平金融科技服务(上海)有限公司 | Service request processing method, device, computer equipment, medium and program product |
Also Published As
Publication number | Publication date |
---|---|
CN108848037B (en) | 2023-06-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108848037A (en) | Service request processing method, device, computer equipment and storage medium | |
CN111901249B (en) | Service flow limiting method, device, equipment and storage medium | |
CN109885410A (en) | Message method, device, computer equipment and storage medium | |
CN113127192B (en) | Method, system, device and medium for sharing same GPU by multiple services | |
CN111209113B (en) | Resource allocation method, device, equipment and storage medium based on intelligent contract | |
CN110555079B (en) | Data processing method, device, equipment and storage medium | |
CN111163130A (en) | Network service system and data transmission method thereof | |
CN109544393A (en) | Date storage method and device based on block chain | |
CN108416665A (en) | Data interactive method, device, computer equipment and storage medium | |
CN112561707A (en) | Transaction data risk control method and device, computer equipment and storage medium | |
CN113595926A (en) | API data transmission method, device, equipment and medium based on data middlebox | |
CN111260475A (en) | Data processing method, block chain node point equipment and storage medium | |
CN113095936B (en) | Entrusted order processing method, entrusted order processing device, computer equipment and storage medium | |
CN113095935A (en) | Transaction order processing method and device, computer equipment and storage medium | |
CN112991023A (en) | Order data processing method and device, computer equipment and storage medium | |
US11120513B2 (en) | Capital chain information traceability method, system, server and readable storage medium | |
CN108241616B (en) | Message pushing method and device | |
CN113992586A (en) | Flow control method and device, computer equipment and storage medium | |
CN116319810A (en) | Flow control method, device, equipment, medium and product of distributed system | |
CN110585717B (en) | Information processing method and device | |
CN114244905A (en) | Data forwarding method and device, computer equipment and storage medium | |
CN111311102A (en) | Resource ratio adjusting method, device, equipment and computer readable storage medium | |
US20210042295A1 (en) | Blockchain-based data management method and related system | |
CN112188012A (en) | Method and device for establishing customer service session, electronic equipment and readable storage medium | |
CN110659288A (en) | Case statement calculation method, system, device, computer equipment 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |