The content of the invention
The embodiment of the present application provides a kind of service request processing method, can not be to by the business of current limliting to settlement server
Request is responded, the problem of causing client can not get business datum.
The embodiment of the present application uses following technical proposals:
A kind of service request processing method, including:
Gateway receives the first service request that the first client is sent;
If first service request is not to be sent out first service request by the service request of current limliting, the gateway
Give server;
The server is handled to obtain business datum to first service request, and the business datum is sent to
The gateway;
The business datum is sent to first client by the gateway, by the global state in the business datum
Data Cun Chudao is preset in storage region, and the global state data are used for the global state for characterizing business;
The gateway receives the second service request that the second client is sent;
If second service request is to be obtained by the service request of current limliting, the gateway in the default storage region
The global state data prestored, and the global state data got are sent to second client.
The embodiment of the present application also provides a kind of service request processing method, can not be to by the industry of current limliting to settlement server
Business request is responded, the problem of causing client can not get business datum.
The embodiment of the present application uses following technical proposals:
A kind of service request processing method, including:
Receive the service request that multiple client is sent;
Server will not be sent to by the service request of current limliting in the service request;
Global state data in the business datum not returned described in the reception server response by the service request of current limliting;
By the global state data, the client corresponding to the service request of current limliting is sent in the service request.
The embodiment of the present application also provides a kind of service request processing method, can not be to by the industry of current limliting to settlement server
Business request is responded, the problem of causing client can not get business datum.
The embodiment of the present application uses following technical proposals:
A kind of service request processing method, including:
Receive the first service request of the first client transmission;
If first service request is not by the service request of current limliting, first service request is sent to described
Server;
The business datum that the server returns is received, the business datum is sent to first client, by institute
The global state data Cun Chudao stated in business datum is preset in storage region, and the global state data are used to characterize business
Global state, the global state data are used to respond by the service request of current limliting.
The embodiment of the present application also provides a kind of service request processing method, can not be to by the industry of current limliting to settlement server
Business request is responded, the problem of causing client can not get business datum.
The embodiment of the present application uses following technical proposals:
A kind of service request processing method, including:
Receive the second service request of the second client transmission;
If second service request is by the service request of current limliting, obtain prestored in default storage region it is complete
Office's status data, the global state data are sent to second client, the global state data are used to characterize industry
The global state of business, the global state data are the servers to not handled what is obtained by the service request of current limliting.
The embodiment of the present application also provides a kind of electronic equipment, can not be to being entered by the service request of current limliting to settlement server
Row response, the problem of causing client can not get business datum.
The embodiment of the present application uses following technical proposals:
Processor;And
It is arranged to store the memory of computer executable instructions, the executable instruction makes the place when executed
Manage device and perform following operate:
Receive the service request that multiple client is sent;
Server will not be sent to by the service request of current limliting in the service request;
Global state data in the business datum not returned described in the reception server response by the service request of current limliting;
By the global state data, the client corresponding to the service request of current limliting is sent in the service request.
The embodiment of the present application also provides a kind of computer-readable recording medium, can not be to by current limliting to settlement server
Service request is responded, the problem of causing client can not get business datum.
The embodiment of the present application uses following technical proposals:
A kind of computer-readable recording medium, the computer-readable recording medium storage one or more program are described
One or more programs are when the electronic equipment for being included multiple application programs performs so that the electronic equipment performs following grasp
Make:
Receive the service request that multiple client is sent;
Server will not be sent to by the service request of current limliting in the service request;
Global state data in the business datum not returned described in the reception server response by the service request of current limliting;
By the global state data, the client corresponding to the service request of current limliting is sent in the service request.
The embodiment of the present application also provides a kind of electronic equipment, can not be to being entered by the service request of current limliting to settlement server
Row response, the problem of causing client can not get business datum.
The embodiment of the present application uses following technical proposals:
Processor;And
It is arranged to store the memory of computer executable instructions, the executable instruction makes the place when executed
Manage device and perform following operate:
Receive the first service request of the first client transmission;
If first service request is not by the service request of current limliting, first service request is sent to described
Server;
The business datum that the server returns is received, the business datum is sent to first client, by institute
The global state data Cun Chudao stated in business datum is preset in storage region, and the global state data are used to characterize business
Global state, the global state data are used to respond by the service request of current limliting.
The embodiment of the present application also provides a kind of computer-readable recording medium, can not be to by current limliting to settlement server
Service request is responded, the problem of causing client can not get business datum.
The embodiment of the present application uses following technical proposals:
A kind of computer-readable recording medium, the computer-readable recording medium storage one or more program are described
One or more programs are when the electronic equipment for being included multiple application programs performs so that the electronic equipment performs following grasp
Make:
Receive the first service request of the first client transmission;
If first service request is not by the service request of current limliting, first service request is sent to described
Server;
The business datum that the server returns is received, the business datum is sent to first client, by institute
The global state data Cun Chudao stated in business datum is preset in storage region, and the global state data are used to characterize business
Global state, the global state data are used to respond by the service request of current limliting.
The embodiment of the present application also provides a kind of electronic equipment, can not be to being entered by the service request of current limliting to settlement server
Row response, the problem of causing client can not get business datum.
The embodiment of the present application uses following technical proposals:
Processor;And
It is arranged to store the memory of computer executable instructions, the executable instruction makes the place when executed
Manage device and perform following operate:
Receive the second service request of the second client transmission;
If second service request is by the service request of current limliting, obtain prestored in default storage region it is complete
Office's status data, the global state data are sent to second client, the global state data are used to characterize industry
The global state of business, the global state data are the servers to not handled what is obtained by the service request of current limliting.
The embodiment of the present application also provides a kind of computer-readable recording medium, can not be to by current limliting to settlement server
Service request is responded, the problem of causing client can not get business datum.
The embodiment of the present application uses following technical proposals:
A kind of computer-readable recording medium, the computer-readable recording medium storage one or more program are described
One or more programs are when the electronic equipment for being included multiple application programs performs so that the electronic equipment performs following grasp
Make:
Receive the second service request of the second client transmission;
If second service request is by the service request of current limliting, obtain prestored in default storage region it is complete
Office's status data, the global state data are sent to second client, the global state data are used to characterize industry
The global state of business, the global state data are the servers to not handled what is obtained by the service request of current limliting.
The embodiment of the present application provides a kind of service request processing system, can not be to by the business of current limliting to settlement server
Request is responded, the problem of causing client can not get business datum.
The embodiment of the present application uses following technical proposals:
A kind of service request processing system, including gateway and server, wherein:
The gateway receives the first service request that the first client is sent;
If first service request is not to be sent out first service request by the service request of current limliting, the gateway
Give server;
The server is handled to obtain business datum to first service request, and the business datum is sent to
The gateway;
The business datum is sent to first client by the gateway, by the global state in the business datum
Data Cun Chudao is preset in storage region, and the global state data are used for the global state for characterizing business;
The gateway receives the second service request that the second client is sent;
If second service request is to be obtained by the service request of current limliting, the gateway in the default storage region
The global state data prestored, and the global state data got are sent to second client.
Above-mentioned at least one technical scheme that the embodiment of the present application uses can reach following beneficial effect:
After the service request of client transmission is received, by the way that server will not be sent to by the service request of current limliting,
Then the global state data in the business datum not returned described in the reception server response by the service request of current limliting, finally may be used
By the global state data, to be sent in the service request client corresponding to the service request of current limliting.So limited
The client of stream can also get the global state data of business, avoid in the prior art in server current limliting, client
The problem of end can not get any business datum.
Embodiment
To make the purpose, technical scheme and advantage of the application clearer, below in conjunction with the application specific embodiment and
Technical scheme is clearly and completely described corresponding accompanying drawing.Obviously, described embodiment is only the application one
Section Example, rather than whole embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not doing
Go out under the premise of creative work the every other embodiment obtained, belong to the scope of the application protection.
Below in conjunction with accompanying drawing, the technical scheme that each embodiment of the application provides is described in detail.
With the development of Internet technology, the quantity of Internet user is increased sharply in recent years, and this is to providing business support
Server brings no small test, and by current limiting measures, the normal response that partial service is asked can be ensured.
When carrying out current limliting to the service request of server by current limiting measures, service request bearing capacity ratio can be passed through
The strong gateway of server come receive client transmission request, such as, the service request bearing capacity of server is carrying per second
1000000 service requests, then the gateway of 10,000,000 service requests of carrying per second can be selected.
Referring to Fig. 1, Fig. 1 is when taking current limiting measures, the interaction flow between client, gateway and server is illustrated
Figure, gateway can be permitted when the service request received to server carries out current limliting according to the service request bearing capacity of server
Perhaps partial service request is sent to server and carries out business processing, is not sent to for ease of subsequent descriptions, when can be by current limliting
The request of server is referred to as by the service request of current limliting.Server can be responded not by the service request of current limliting, return to business datum,
And for that can not be handled by the service request of current limliting, server it, therefore it is corresponding by the service request of current limliting without normal direction
Client return business datum.
, can be to please by the business of current limliting for by the service request of current limliting in this specification one or more embodiment
Ask send global state data, global state data be by server to not handled by the service request of current limliting when obtain
, global state data can characterize the global state of business.For example for same business, some data are for difference
It is different for client, and some data are identical for different clients, the phase for different clients
With data just belong to global state data, such as, for quantity in stock when shopping, in synchronization, quantity in stock for
All it is identical for any client, then quantity in stock here can be to be used as global state data.Certainly, this area skill
Art personnel it should be clear that it is mentioned here it is identical be not absolute identical or in error allowed band phase yet
Together.
For ease of description, in this specification one or more embodiment, the executive agent of service request processing method can be with
It is gateway, hereinafter so that executive agent is gateway as an example, the embodiment of this method is introduced.It is appreciated that this method
Executive agent is that gateway is a kind of exemplary explanation, is not construed as the restriction to this method.
In this specification one or more embodiment, implementation process schematic diagram such as Fig. 2 institutes of service request processing method
Show, comprise the steps:
Step S100:Receive the service request that multiple client is sent;
Here the service request that different clients are sent, can be for asking to handle same business or using
In request different business.The service request that gateway can be sent simultaneously with concurrently receive multiple client, it is to be understood that
Here the service request of so-called concurrently receive multiple client, can be that multiple clients are received in same time interval
The service request at end, for example 1,000,000 service requests were received in 1 second, concurrently receive 1,000,000 business in 1 second can be considered as
Request.
Step S102:Server will not be sent to by the service request of current limliting in the service request;
Request then shows that server can be handled the request not by current limliting, then can be by not asking by current limliting
Ask and be sent to server, handled by server.
Step S104:Global shape in the business datum not returned described in the reception server response by the service request of current limliting
State data;
Server will handle service request after the service request of gateway transmission is received, obtain business number
According to global state data then are returned into gateway.
Step S106:By the global state data, it is sent to corresponding by the service request of current limliting in the service request
Client.
The global state data in business datum can also be so obtained by the service request of current limliting, are avoided in server
During current limliting, the problem of client can not get any business datum.
It is being described in detail how to before returning to global state data by the service request of current limliting, below first to this specification one
In individual or multiple embodiments, the process for obtaining global state data is described in detail, and the implementation process schematic diagram of the process is such as
Shown in Fig. 3, comprise the steps:
Step S200:Receive the first service request of the first client transmission;
First service request is used for server requested service data.
Step S202:If first service request is not by the service request of current limliting, by first service request
It is sent to the server;
First service request is not by the service request of current limliting, and also implying that will not limit the first service request
Stream, shows that server can also be handled the first service request, then can be so that the first service request is sent into service
Device.Will it not done herein superfluous to how to judge whether the first service request is described in detail by the service request of current limliting subsequently
State.
After the first service request is sent into server, server will be handled the first service request, obtained
Business datum, business datum will be subsequently sent to client, and such client just must be obtained by sending the first service request
The service processing result that server returns.
Step S204:The business datum that the server returns is received, the business datum is sent to first visitor
Family end, the global state data Cun Chudao in the business datum is preset in storage region.
The global state data are used for the global state for characterizing business, and the global state data are used to respond by current limliting
Service request.
In this specification one or more embodiment, gateway, can be by industry after the business datum of server return is obtained
Business data are sent to client, furthermore it is also possible to which the global state data Cun Chudao in business datum is preset in storage region.
Default storage region can be the memory space set in advance for being used to store global state data.
In this specification one or more embodiment, gateway, can be according to server when carrying out current limliting to service request
The maximum traffic request amount that can be carried carrys out current limliting, for example the maximum traffic request amount that server can carry can be arranged into current limliting
Value, so, in current time section, after the service request amount that gateway is sent to server exceedes cut-off current, gateway
Subsequently received service request is not sent to server.
When whether a certain service request for judging to receive will be by current limliting, it can be determined that in current time section, gateway
Whether the service request amount for being sent to server has exceeded cut-off current, if be not above, the service request is not by current limliting
Service request, if it does, then the service request is by the service request of current limliting.Cut-off current is in a preset time section
Allow the maximum traffic request amount for issuing server, current time section, can be current perform where at the time of judgement acts
Time interval, the length in current time section is identical with the length in preset time section.
For example, it when carrying out current limliting, can perform, be received in judgement a certain according to the predetermined time cycle
When whether service request will be by current limliting, it can be determined that in current time period, whether the service request amount for being sent to server surpasses
Cut-off current is crossed, if be not above, the service request is not by the service request of current limliting, if it does, then the business please
Seeking Truth is by the service request of current limliting.Here current time period, can be perform above-mentioned judgment step at the time of where when
Between the cycle.
For example, the cut-off current of server is 1 second 1,000,000, i.e. server can handle 1,000,000 service request in 1 second, in advance
If the length of time interval is 1 second, after service request is received, if in current time section, being sent to the industry of server
Business request has been over 1,000,000, then the service request received just will not be sent to server.
When storing global state data, if existing global state data in default storage region, will can preset
Already present global state data in storage region, it is updated to global state data corresponding with first service request.
In this specification one or more embodiment, gateway, can be by entering when handling each service request more
The mode of journey is handled, and each process handles respective service request respectively, can be with shared drive between different processes
Mode is communicated.Different processes can map same file respectively to the address space of oneself, to realize internal memory between process
It is shared.
So, the default storage region described in this specification one or more embodiment can be shared between process
Region of memory, when being stored to global state data, global state data Cun Chudao that different processes will can obtain
In the region of memory shared between default process.So different processes is receiving the global state data of server return
Afterwards, the global state data in shared drive can be updated, to ensure the ageing of global state data.
In this specification one or more embodiment, gateway often will after the first service request is sent to server
The global state data of server return are received, gateway can be after global state data be received just to presetting storage region
In global state data be updated, so, if in preset time section, the service request amount passed through is more, then
Ageing higher, the global state data so obtained by the request of current limliting of global state data in default storage region
It is ageing higher.
After the global state data Cun Chudao that will be obtained presets storage region, subsequently storage region can be preset to read
The global state data of middle storage, to respond by the service request of current limliting, below in this specification one or more embodiment,
Responded by global state data and be described in detail by the process of current limliting service request, the implementation process schematic diagram of the process is such as
Shown in Fig. 4, comprise the steps:
Step S300:Receive the second service request of the second client transmission;
This first service request is used for server requested service data, and the first service request and the second service request can
To be the request for the same business of request server processing, such as, all it is the request that same part commodity are bought in request.First visitor
Family end and the second client can be same client or different clients.
Step S302:If second service request is by the service request of current limliting, obtain pre- in default storage region
The global state data first stored, the global state data are sent to second client, the global state data
For characterizing the global state of business, the global state data are the servers to not by the service request of current limliting
What reason obtained.
Judge whether the second service request is by the embodiment of the service request of current limliting, reference can be made to judging industry above
Whether business request is by the associated description of the service request of current limliting, is not repeated herein, such as, can be it is determined that current time
When the service request total amount received in section is more than cut-off current, it is by the service request of current limliting to determine the second service request.
Because the second service request is by current limliting, although server can not handle the second service request, gateway can incite somebody to action
Global state data in predetermined memory space return to the second client, and such second client can also obtain reflecting
The global state data of business global state, i.e., the business datum that the second client can also obtain.
In addition, as it was noted above, in this specification one or more embodiment, gateway is handled to each service request
When, it can be handled by way of multi-process, the region of memory that default storage region can be shared between process, then
When reading global state data, the global state prestored can be obtained from the region of memory shared between default process
Data.
Foregoing invention design based on the application, for the ease of being better understood from the technical characteristic of the application, means and effect
Fruit, the service request processing method in this specification one or more embodiment is described further below, not had hereinafter
The concept made referrals to can be found in associated description hereinbefore.The implementation process schematic diagram of this method is as shown in figure 5, realize that scene is shown
It is intended to as shown in fig. 6, comprising the steps:
Step S400:Gateway receives the first service request that the first client is sent;
Step S402:If first service request is not by the service request of current limliting, the gateway is by described first
Service request is sent to server;
Step S404:The server is handled to obtain business datum to first service request, by the business
Data are sent to the gateway;
Step S406:The business datum is sent to first client by the gateway;
Step S408:Global state data Cun Chudao in the business datum is preset in storage region, the overall situation
Status data is used for the global state for characterizing business;
Step S410:The gateway receives the second service request that the second client is sent;
Step S412:If second service request is by the service request of current limliting, the gateway obtains described default
The global state data prestored in storage region, and the global state data got are sent to second client
End.
The service request processing method provided in this specification one or more embodiment, for not by the first industry of current limliting
Business request, will be complete in business datum after the business datum for responding the first service request of server return is received
Office's status data is preserved, so when the second service request that gateway receives is the service request by current limliting, although clothes
Business device can not be handled the second service request, but gateway can be by server to not handled by the service request of current limliting
To global state data be sent to the second client, such second client can also get the global state number of business
According to avoiding in the prior art in server current limliting, the problem of client can not get any business datum.
Foregoing invention design based on the application, for the ease of being better understood from the technical characteristic of the application, means and effect
Fruit, below so that the business of server process is electronics red packet distribution business as an example, in this specification one or more embodiment
Service request processing method be described further, the concept not made referrals to hereinafter can be found in associated description hereinbefore.
Here exemplary introduction first is done to the background context in electronics red packet distribution business, business is distributed in electronics red packet
In, client can send red packet to red packet service server and obtain request, if red packet also has residue, server can be by one
The red packet of fixed number volume distributes to the account of the client, and sends business datum to client, and can be included in the business datum should
The amount of money for the red packet that account obtains, and the remaining red packet amount of money to be allocated.
In electronics red packet distribution business, the processing method of service request comprises the steps:
Step S500:First client sends the first red packet to gateway and obtains request;
First red packet obtains request, is that account corresponding to the first client distributes electronics for asking red packet service server
Red packet.
Step S502:It is not to be obtained the first red packet by the service request of current limliting, gateway that if the first red packet, which obtains request,
Request is sent to red packet service server;
Red packet service server is used to respond red packet acquisition request, and red packet is distributed to account corresponding to client.
Step S504:Red packet service server obtains request to the first red packet and is handled to obtain business datum, by business
Data are sent to gateway;
Here the amount of money for distributing to account corresponding to the first client can be included in business datum, and distribute to this
The remaining red packet amount of money to be allocated after account.
Step S506:Business datum is sent to the first client by gateway, by the red packet gold to be allocated in business datum
Volume is stored into default storage region;
Step S508:Second client sends the second red packet to the gateway and obtains request;
Step S510:If it is by the service request of current limliting that the second red packet, which obtains request, gateway obtains default storage region
In the red packet amount of money to be allocated that prestores, and the red packet amount of money to be allocated is sent to the second client.
It is understood that the above red packet amount of money to be allocated or red packet number to be allocated etc.
Globally unique data, those skilled in the art can determine that the application is not construed as limiting to this according to actual conditions.
The service request processing method provided in this specification one or more embodiment, request is obtained by the red packet of current limliting
Corresponding client can also get the information such as the quantity of remaining red packet to be allocated, the amount of money, better user experience.
The service request processing method provided above for the embodiment of the present application, based on same thinking, the embodiment of the present application
Corresponding service request processing unit is also provided, as shown in fig. 7, the device specifically includes:
First receiving unit 601, receive the service request that multiple client is sent;
First transmitting element 602, server will not be sent to by the service request of current limliting in the service request;
Second receiving unit 603, the reception server response are described not by the business datum of the service request return of current limliting
Global state data;
Second transmitting element 604, by the global state data, being sent in the service request please by the business of current limliting
Seek corresponding client.
The embodiment of the present application also provides a kind of service request processing unit, as shown in figure 8, the device specifically includes:
3rd receiving unit 701, receive the first service request that the first client is sent;
3rd transmitting element 702, when first service request is not the service request by current limliting, by first industry
Business request is sent to the server;
Memory cell 703, the business datum that the server returns is received, the business datum is sent to described first
Client, the global state data Cun Chudao in the business datum is preset in storage region, the global state data are used
In the global state of the business of sign, the global state data are used to respond by the service request of current limliting.
In one embodiment, the memory cell 703, the existing global state number in the default storage region
According to when, by already present global state data in default storage region, be updated to the overall situation corresponding with first service request
Status data.
In one embodiment, described device also includes, and the first determining unit 704, is received in current time section
When the service request total amount arrived is more than cut-off current, it is not by the service request of current limliting to determine first service request.
In one embodiment, the region of memory that the default storage region is shared between process;
Then, the memory cell 703, will be common between the default processes of global state data Cun Chudao in the business datum
In the region of memory enjoyed.
The embodiment of the present application also provides a kind of service request processing unit, as shown in figure 9, the device specifically includes:
4th receiving unit 801, receive the second service request that the second client is sent;
4th transmitting element 802, when second service request is the service request by current limliting, obtain default memory block
The global state data prestored in domain, the global state data are sent to second client, the global shape
State data are used for the global state for characterizing business, and the global state data are the servers to not by the service request of current limliting
Handled what is obtained.
In one embodiment, described device also includes:Second determining unit, received in current time section
When service request total amount is more than cut-off current, it is by the service request of current limliting to determine second service request.
In one embodiment, the region of memory that the default storage region is shared between process;
Then, the 4th transmitting element 802, from the region of memory shared between default process, the overall situation prestored is obtained
Status data.
Figure 10 is the structural representation of one embodiment electronic equipment of the application.Figure 10 is refer to, should in hardware view
Electronic equipment includes processor, alternatively also includes internal bus, network interface, memory.Wherein, memory may include interior
Deposit, such as high-speed random access memory (Random-Access Memory, RAM), it is also possible to also including non-volatile memories
Device (non-volatile memory), for example, at least 1 magnetic disk storage etc..Certainly, the electronic equipment is also possible that other
Hardware required for business.
Processor, network interface and memory can be connected with each other by internal bus, and the internal bus can be ISA
(Industry Standard Architecture, industry standard architecture) bus, PCI (Peripheral
Component Interconnect, Peripheral Component Interconnect standard) bus or EISA (Extended Industry Standard
Architecture, EISA) bus etc..The bus can be divided into address bus, data/address bus, control always
Line etc..For ease of representing, only represented in Figure 10 with a four-headed arrow, it is not intended that an only bus or a type of
Bus.
Memory, for depositing program.Specifically, program can include program code, and described program code includes calculating
Machine operational order.Memory can include internal memory and nonvolatile memory, and provide instruction and data to processor.
Processor read from nonvolatile memory corresponding to computer program into internal memory then run, in logical layer
Service request processing unit is formed on face.Processor, the program that memory is deposited is performed, and specifically for performing following grasp
Make:
Receive the service request that multiple client is sent;
Server will not be sent to by the service request of current limliting in the service request;
Global state data in the business datum not returned described in the reception server response by the service request of current limliting;
By the global state data, the client corresponding to the service request of current limliting is sent in the service request.
The method that service request processing unit disclosed in the above-mentioned embodiment illustrated in fig. 2 such as the application performs can apply to locate
Manage in device, or realized by processor.Processor is probably a kind of IC chip, has the disposal ability of signal.In reality
During existing, each step of the above method can pass through the integrated logic circuit of the hardware in processor or the finger of software form
Order is completed.Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit,
CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital Signal
Processor, DSP), it is application specific integrated circuit (Application Specific Integrated Circuit, ASIC), existing
Field programmable gate array (Field-Programmable Gate Array, FPGA) or other PLDs, divide
Vertical door or transistor logic, discrete hardware components.It can realize or perform and be in the embodiment of the present application disclosed each
Method, step and logic diagram.General processor can be microprocessor or the processor can also be any conventional place
Manage device etc..The step of method with reference to disclosed in the embodiment of the present application, can be embodied directly in hardware decoding processor and perform
Into, or combined with the hardware in decoding processor and software module and perform completion.Software module can be located at random access memory,
This area such as flash memory, read-only storage, programmable read only memory or electrically erasable programmable memory, register maturation
In storage medium.The storage medium is located at memory, and processor reads the information in memory, and above-mentioned side is completed with reference to its hardware
The step of method.
The electronic equipment can also carry out the method that service request processing unit performs in Fig. 2, and realize that service request is handled
In the function of embodiment illustrated in fig. 2, the embodiment of the present application will not be repeated here device.
The embodiment of the present application also proposed a kind of computer-readable recording medium, the computer-readable recording medium storage one
Individual or multiple programs, one or more programs include instruction, and the instruction is held when the electronic equipment for being included multiple application programs
During row, the electronic equipment can be made to perform the method that service request processing unit performs in embodiment illustrated in fig. 2, and be specifically used for
Perform:
Receive the service request that multiple client is sent;
Server will not be sent to by the service request of current limliting in the service request;
Global state data in the business datum not returned described in the reception server response by the service request of current limliting;
By the global state data, the client corresponding to the service request of current limliting is sent in the service request.
The application also provides a kind of electronic equipment, including:
Processor;And
It is arranged to store the memory of computer executable instructions, the executable instruction makes the place when executed
Manage device and perform following operate:
Receive the first service request of the first client transmission;
If first service request is not by the service request of current limliting, first service request is sent to described
Server;
The business datum that the server returns is received, the business datum is sent to first client, by institute
The global state data Cun Chudao stated in business datum is preset in storage region, and the global state data are used to characterize business
Global state, the global state data are used to respond by the service request of current limliting.
The embodiment of the present application also proposed a kind of computer-readable recording medium, the computer-readable recording medium storage one
Individual or multiple programs, one or more programs include instruction, and the instruction is held when the electronic equipment for being included multiple application programs
During row, the electronic equipment can be made to perform the method that service request processing unit performs in embodiment illustrated in fig. 3, and be specifically used for
Perform:
Receive the first service request of the first client transmission;
If first service request is not by the service request of current limliting, first service request is sent to described
Server;
The business datum that the server returns is received, the business datum is sent to first client, by institute
The global state data Cun Chudao stated in business datum is preset in storage region, and the global state data are used to characterize business
Global state, the global state data are used to respond by the service request of current limliting.
The application also provides a kind of electronic equipment, including:
Processor;And
It is arranged to store the memory of computer executable instructions, the executable instruction makes the place when executed
Manage device and perform following operate:
Receive the second service request of the second client transmission;
If second service request is by the service request of current limliting, obtain prestored in default storage region it is complete
Office's status data, the global state data are sent to second client, the global state data are used to characterize industry
The global state of business, the global state data are the servers to not handled what is obtained by the service request of current limliting.
The embodiment of the present application also proposed a kind of computer-readable recording medium, the computer-readable recording medium storage one
Individual or multiple programs, one or more programs include instruction, and the instruction is held when the electronic equipment for being included multiple application programs
During row, the electronic equipment can be made to perform the method that service request processing unit performs in embodiment illustrated in fig. 4, and be specifically used for
Perform:
Receive the second service request of the second client transmission;
If second service request is by the service request of current limliting, obtain prestored in default storage region it is complete
Office's status data, the global state data are sent to second client, the global state data are used to characterize industry
The global state of business, the global state data are the servers to not handled what is obtained by the service request of current limliting.
The application also provides a kind of service request processing system, including gateway and server, wherein:
The gateway receives the first service request that the first client is sent;
If first service request is not to be sent out first service request by the service request of current limliting, the gateway
Give server;
The server is handled to obtain business datum to first service request, and the business datum is sent to
The gateway;
The business datum is sent to first client by the gateway, by the global state in the business datum
Data Cun Chudao is preset in storage region, and the global state data are used for the global state for characterizing business;
The gateway receives the second service request that the second client is sent;
If second service request is to be obtained by the service request of current limliting, the gateway in the default storage region
The global state data prestored, and the global state data got are sent to second client.
In this specification one or more embodiment, receive client transmission service request after, by will not by
The service request of current limliting is sent to server, the business then not returned described in the reception server response by the service request of current limliting
Global state data in data, the global state data can be finally sent in the service request by the industry of current limliting
Client corresponding to business request.The global state data of business so can be also got by the client of current limliting, are avoided existing
Have in technology in server current limliting, the problem of client can not get any business datum.
It should be noted that in the 1990s, it is hardware that the improvement for a technology, which can be distinguished clearly,
On improvement (for example, improvement to circuit structures such as diode, transistor, switches) or improvement on software (for method
The improvement of flow).However, with the development of technology, the improvement of current many method flows can be considered as hardware circuit
Structure directly improves.Designer is nearly all obtained corresponding by the way that improved method flow is programmed into hardware circuit
Hardware circuit.Therefore, it cannot be said that the improvement of a method flow cannot be realized with hardware entities module.For example, can
Programmed logic device (Programmable Logic Device, PLD) (such as field programmable gate array (Field
Programmable Gate Array, FPGA)) it is exactly such a integrated circuit, its logic function is by user to device programming
To determine.Voluntarily programmed by designer a digital display circuit " integrated " on a piece of PLD, without asking chip manufacturing
Manufacturer designs and made special IC chip.Moreover, nowadays, substitution manually makes IC chip, this
Programming also uses " logic compiler (logic compiler) " software instead to realize mostly, and it is used when being write with program development
Software compiler is similar, and the source code before compiling also write by handy specific programming language, and this is referred to as hard
Part description language (Hardware Description Language, HDL), and HDL is also not only a kind of, but have many
Kind, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware
Description Language)、Confluence、CUPL(Cornell University Programming
Language)、HDCal、JHDL(Java Hardware Description Language)、Lava、Lola、MyHDL、
PALASM, RHDL (Ruby Hardware Description Language) etc., most generally use VHDL at present
(Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog.
Those skilled in the art, which also will be apparent to the skilled artisan that, only needs that slightly programming in logic is simultaneously with above-mentioned several hardware description languages by method flow
It is programmed into integrated circuit, it is possible to be readily available the hardware circuit for realizing the logical method flow.
Controller can be implemented in any suitable manner, for example, controller can take such as microprocessor or processing
Device and storage can by the computer of the computer readable program code (such as software or firmware) of (micro-) computing device
Read medium, gate, switch, application specific integrated circuit (Application Specific Integrated Circuit,
ASIC), the form of programmable logic controller (PLC) and embedded microcontroller, the example of controller include but is not limited to following microcontroller
Device:ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20 and Silicone Labs C8051F320, are deposited
Memory controller is also implemented as a part for the control logic of memory.It is also known in the art that except with
Pure computer readable program code mode realized beyond controller, completely can be by the way that method and step is carried out into programming in logic to make
Controller is obtained in the form of gate, switch, application specific integrated circuit, programmable logic controller (PLC) and embedded microcontroller etc. to come in fact
Existing identical function.Therefore this controller is considered a kind of hardware component, and various for realizing to including in it
The device of function can also be considered as the structure in hardware component.Or even, can be by for realizing that the device of various functions regards
For that not only can be the software module of implementation method but also can be the structure in hardware component.
System, device, module or the unit that above-described embodiment illustrates, it can specifically be realized by computer chip or entity,
Or realized by the product with certain function.One kind typically realizes that equipment is computer.Specifically, computer for example may be used
Think personal computer, laptop computer, cell phone, camera phone, smart phone, personal digital assistant, media play
It is any in device, navigation equipment, electronic mail equipment, game console, tablet PC, wearable device or these equipment
The combination of equipment.
For convenience of description, it is divided into various units during description apparatus above with function to describe respectively.Certainly, this is being implemented
The function of each unit can be realized in same or multiple softwares and/or hardware during application.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program
Product.Therefore, the present invention can use the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware
Apply the form of example.Moreover, the present invention can use the computer for wherein including computer usable program code in one or more
The computer program production that usable storage medium is implemented on (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of product.
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram
Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided
The processors of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real
The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to
Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or
The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, so as in computer or
The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in individual square frame or multiple square frames.
In a typical configuration, computing device includes one or more processors (CPU), input/output interface, net
Network interface and internal memory.
Internal memory may include computer-readable medium in volatile memory, random access memory (RAM) and/or
The forms such as Nonvolatile memory, such as read-only storage (ROM) or flash memory (flash RAM).Internal memory is computer-readable medium
Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer-readable instruction, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), moved
State random access memory (DRAM), other kinds of random access memory (RAM), read-only storage (ROM), electric erasable
Programmable read only memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read-only storage (CD-ROM),
Digital versatile disc (DVD) or other optical storages, magnetic cassette tape, the storage of tape magnetic rigid disk or other magnetic storage apparatus
Or any other non-transmission medium, the information that can be accessed by a computing device available for storage.Define, calculate according to herein
Machine computer-readable recording medium does not include temporary computer readable media (transitory media), such as data-signal and carrier wave of modulation.
It should also be noted that, term " comprising ", "comprising" or its any other variant are intended to nonexcludability
Comprising so that process, method, commodity or equipment including a series of elements not only include those key elements, but also wrapping
Include the other element being not expressly set out, or also include for this process, method, commodity or equipment intrinsic want
Element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that wanted including described
Other identical element also be present in the process of element, method, commodity or equipment.
The application can be described in the general context of computer executable instructions, such as program
Module.Usually, program module includes performing particular task or realizes routine, program, object, the group of particular abstract data type
Part, data structure etc..The application can also be put into practice in a distributed computing environment, in these DCEs, by
Task is performed and connected remote processing devices by communication network.In a distributed computing environment, program module can be with
In the local and remote computer-readable storage medium including storage device.
Each embodiment in this specification is described by the way of progressive, identical similar portion between each embodiment
Divide mutually referring to what each embodiment stressed is the difference with other embodiment.It is real especially for system
For applying example, because it is substantially similar to embodiment of the method, so description is fairly simple, related part is referring to embodiment of the method
Part explanation.
Embodiments herein is the foregoing is only, is not limited to the application.For those skilled in the art
For, the application can have various modifications and variations.All any modifications made within spirit herein and principle, it is equal
Replace, improve etc., it should be included within the scope of claims hereof.