CN109815716A - Access request processing method, device, storage medium and server - Google Patents
Access request processing method, device, storage medium and server Download PDFInfo
- Publication number
- CN109815716A CN109815716A CN201910015156.XA CN201910015156A CN109815716A CN 109815716 A CN109815716 A CN 109815716A CN 201910015156 A CN201910015156 A CN 201910015156A CN 109815716 A CN109815716 A CN 109815716A
- Authority
- CN
- China
- Prior art keywords
- access request
- server
- request
- set level
- access
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000003860 storage Methods 0.000 title claims abstract description 22
- 238000003672 processing method Methods 0.000 title claims abstract description 16
- 230000003139 buffering effect Effects 0.000 claims abstract description 51
- 238000012545 processing Methods 0.000 claims abstract description 24
- 238000000034 method Methods 0.000 claims abstract description 19
- 238000004590 computer program Methods 0.000 claims description 13
- 230000005540 biological transmission Effects 0.000 claims description 7
- 230000000694 effects Effects 0.000 claims description 2
- 230000015556 catabolic process Effects 0.000 abstract description 6
- 230000009885 systemic effect Effects 0.000 abstract description 6
- 230000004044 response Effects 0.000 description 9
- 230000006870 function Effects 0.000 description 7
- 238000010586 diagram Methods 0.000 description 4
- 230000007423 decrease Effects 0.000 description 3
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 239000012141 concentrate Substances 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 239000013078 crystal Substances 0.000 description 1
- 238000000151 deposition Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 239000007788 liquid Substances 0.000 description 1
- 230000014759 maintenance of location Effects 0.000 description 1
- 230000001550 time effect Effects 0.000 description 1
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The present invention relates to data processing fields, more particularly to a kind of access request processing method, device, storage medium and server, the described method includes: counting whether the access request reaches discreet value by receiving the access request that client is sent by flow buffering server;If the access request is not up to discreet value, the access request is gone to by service server according to predeterminated frequency, the access request is responded by the service server;If the access request reaches discreet value, obtain the access request that severity level in the access request is higher than pre-set level, the access request that the severity level is higher than pre-set level is gone into emergency service device, the access request is responded by the emergency service device.The present invention is capable of the processing logic of dynamic configuration access request, improves the processing capacity of access request of the system to high concurrent when, prevents systemic breakdown.
Description
Technical field
The present invention relates to data processing fields, and in particular to a kind of access request processing method, device, storage medium and clothes
Business device.
Background technique
With the development of internet technology, the number of users of client is more and more, during client operation, needs
Activity or promotion are sporadically held, the liveness of client is improved, and those moment, the amount of access of client can sharply increase
It is more, meanwhile, the access request that user end to server is sent also can sharply increase, when access request is more than for a long time server system
When the threshold value that can bear of uniting, server system may collapse under pressure, and eventually lead to and entirely service unavailable, client can not be just
It is often responded, therefore, access request when how to cope with high concurrent is in need of consideration when being current design server system to ask
Topic.
Summary of the invention
Access request when to overcome the above technical problem, the especially prior art that can not efficiently handle high concurrent is asked
Topic, spy propose following technical scheme:
In a first aspect, the present invention provides a kind of access request processing methods, comprising:
The access request that client is sent is received by flow buffering server, counts whether the access request reaches pre-
Valuation;
If the access request is not up to discreet value, the access request is gone to by service server according to predeterminated frequency,
The access request is responded by the service server;
If the access request reaches discreet value, the access that severity level in the access request is higher than pre-set level is obtained
The access request that the severity level is higher than pre-set level is gone to emergency service device, passes through the emergency service device pair by request
The access request is responded.
Further, the access request for obtaining severity level in the access request and being higher than pre-set level, will be described
The access request that severity level is higher than pre-set level goes to emergency service device, comprising:
The access request that severity level is higher than pre-set level is obtained, the access request is deposited in into quantitative cache server
In, the access request is obtained from the quantitative server according to preset frequency, the access request is forwarded to emergency
Server.
Further, after the access request that client transmission is received by flow buffering server, further includes:
Access request of the client to a business of identical IP is counted, within a preset time, by preset proportion therein
Access request be regarded as effectively requesting, remaining access request is regarded as invalidation request.
Further, the access request by preset proportion therein is regarded as effectively requesting, remaining access request is regarded as
After invalidation request, further includes:
Obtain the identity information or register information of the corresponding client user of the invalidation request;
Corresponding configuration parameter is matched according to the identity information or register information;
Preset configuration parameter is returned to the corresponding client of the invalidation request.
Further, it if the access request reaches discreet value, obtains severity level in the access request and is higher than
Before the access request of pre-set level, further includes:
The quantity for obtaining the access request adjusts the grade of the pre-set level according to the quantity of the access request.
Further, described that the access request that client is sent is received by flow buffering server, count the access
Whether request reaches after discreet value, further includes:
The access request treatment effeciency for counting the flow buffering server is matched according to the access request treatment effeciency
The capacity policy of flow buffering server.
Second aspect, the present invention provide a kind of access request processing unit, comprising:
Request receiving module: for receiving the access request of client transmission, count whether the access request reaches pre-
Valuation;
First processing module: if being not up to discreet value for the access request, the access is asked according to predeterminated frequency
It asks and goes to service server, the access request is responded by the service server;
Second processing module: if reaching discreet value for the access request, severity level in the access request is obtained
Higher than the access request of pre-set level, the access request that the severity level is higher than pre-set level is gone into emergency service device, is led to
The emergency service device is crossed to respond the access request.
Further, severity level is higher than pre-set level in the Second processing module execution acquisition access request
The access request that the severity level is higher than pre-set level is gone to emergency service device by access request, comprising:
The access request that severity level is higher than pre-set level is obtained, the access request is deposited in into quantitative cache server
In, the access request is obtained from the quantitative server according to preset frequency, the access request is forwarded to emergency
Server.
The third aspect, the present invention also provides a kind of computer readable storage medium, the computer readable storage medium
On be stored with computer program, which realizes above-mentioned access request processing method when being executed by processor.
Fourth aspect, the present invention also provides a server, the server includes one or more processors, storage
Device, one or more computer programs, wherein one or more of computer programs are stored in the memory and quilt
It is configured to be executed by one or more of processors, one or more of programs are configured to carry out above-mentioned access request
Processing method.
Compared with the prior art, the present invention has the following beneficial effects:
The case where being directed to different access number of requests the present invention provides one kind, the method for dynamically handling access request,
The access request that client is sent is received by unified flow buffering server, the access request is counted and whether reaches and estimate
Value, it is convenient that received access request is managed collectively, if the access request is not up to discreet value, control flow
The access request is gone to service server according to predeterminated frequency by cache server, by the service server to the access
Income response is requested, the result of response is then fed back into service request side, if the access request reaches discreet value, is controlled
Flow buffering server obtains the access request that severity level is higher than pre-set level, and the severity level is then higher than default grade
Other access request goes to emergency service device, is responded by the emergency service device to the access request, reaches preferential
The purpose of important access request is handled, and common access request is effectively limited, prevents excessive access request
Systemic breakdown is caused, achievees the purpose that protect database, protection system.
The additional aspect of the present invention and advantage will be set forth in part in the description, these will become from the following description
Obviously, or practice through the invention is recognized.
Detailed description of the invention
Above-mentioned and/or additional aspect and advantage of the invention will become from the following description of the accompanying drawings of embodiments
Obviously and it is readily appreciated that, in which:
Fig. 1 is an embodiment flow diagram of access request processing method of the present invention;
Fig. 2 is another embodiment flow diagram of access request processing method of the present invention;
Fig. 3 is an embodiment schematic diagram of access request processing unit of the present invention;
Fig. 4 is an example structure schematic diagram of server of the present invention.
Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end
Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached
The embodiment of figure description is exemplary, and for explaining only the invention, and is not construed as limiting the claims.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singular " one " used herein, " one
It is a ", " described " and "the" may also comprise plural form.It is to be further understood that being arranged used in specification of the invention
Diction " comprising " refers to that there are the feature, integer, step, operations, but it is not excluded that in the presence of or addition it is one or more other
Feature, integer, step, operation.
Those skilled in the art of the present technique are appreciated that unless otherwise defined, all terms used herein (including technology art
Language and scientific term), there is meaning identical with the general understanding of those of ordinary skill in fields of the present invention.Should also
Understand, those terms such as defined in the general dictionary, it should be understood that have in the context of the prior art
The consistent meaning of meaning, and unless idealization or meaning too formal otherwise will not be used by specific definitions as here
To explain.
It will be appreciated by those skilled in the art that of the invention so-called " application ", " application program ", " computer program " and
The concept of similar statement, is same concept well known to those skilled in the art, refers to and is instructed by series of computation machine and dependency number
According to the computer software for being suitable for electronics operation of the organic construction of resource.Unless specified, this name itself is not by programming language
Say type, rank, the operating system of operation of also not rely by it or platform are limited.In the nature of things, this genus also not by
Any type of terminal is limited.
The embodiment of the present invention provides a kind of access request processing method, as shown in Figure 1, the described method comprises the following steps:
S10: the access request that client is sent is received by flow buffering server, counts whether the access request reaches
To discreet value.
The technical program is applied in large-scale high concurrent system, and large-scale high concurrent system can successfully manage special time period
A large amount of access request, in the present embodiment, the large size high concurrent system includes flow buffering server, quantitative buffer service
Device, service server and emergency service device receive the access request that client is sent by the flow buffering server, i.e.,
The access request of the present embodiment is received by flow buffering server in large-scale high concurrent system is unified, the access request that will be received
It stores in flow buffering server, the access request is managed as a whole by flow buffering server, specifically, statistics
Whether the access request reaches discreet value, then whether reaches discreet value according to the access request, to received visit
Ask that different disposal is made in request.Optionally, the statistics access request can be whole access requests in statistics predetermined period
Total quantity, be also possible to count the file size of whole access requests in predetermined period.
S20: if the access request is not up to discreet value, the access request is gone to by business service according to predeterminated frequency
Device responds the access request by the service server.
Some period will not be excessively concentrated in the access request of the regular stages of business, client, when to being received
When the access request statistics arrived, if the access request is not up to discreet value, i.e., large-scale high concurrent system is within a certain period of time
Received access request is less than discreet value, then controls the flow buffering server of large-scale high concurrent system according to predeterminated frequency
The access request is gone into service server, in the present embodiment, the flow buffering server is based on bucket water flowing principle
It is designed, flows out the water in bucket according to scheduled flow, that is, will be accessed according to predeterminated frequency in this step
Request goes to service server, is responded by the service server to the access request income, then that the result of response is anti-
It is fed to service request side.
S30: it if the access request reaches discreet value, obtains severity level in the access request and is higher than pre-set level
The access request that the severity level is higher than pre-set level is gone to emergency service device, passes through the emergency service by access request
Device responds the access request.
In the particular stage of business, such as report the particular stages such as related business advertising campaign, sweepstake, client
Access request can excessively concentrate on some period, in the present embodiment, if the access request reaches discreet value, such as flow
Cache server has received the access request of 100,000 clients this period in 10:00-10:04, and discreet value is 10:
00-10:10 can only handle the access request of 100,000 clients, and actual access request quantity has been more than discreet value, and flow is slow
If part access request is unable to get normal response, i.e. access request when depositing server and receiving the access request of client again
It overflows, is overflowed similar to the water in bucket, can not normally receive, handle all access requests, at this time in continuous received client
In the access request at end, the access request that severity level is higher than pre-set level is obtained, is then higher than the severity level default
The access request of rank goes to emergency service device, is responded by the emergency service device to the access request, reaches excellent
The purpose of important access request is first handled, and common access request is effectively limited, prevents excessive access from asking
It asks and causes systemic breakdown, access speed decline, the decline of concurrent amount of access, achieve the purpose that protect database, protection system.
A kind of the case where being directed to different access number of requests is present embodiments provided, the side of access request is dynamically handled
Method receives the access request that client is sent by unified flow buffering server, counts whether the access request reaches
Discreet value, it is convenient that received access request is managed collectively, if the access request is not up to discreet value, control
The access request is gone to service server according to predeterminated frequency by flow buffering server, by the service server to described
The response of access request income, then feeds back to service request side for the result of response, if the access request reaches discreet value,
It controls flow buffering server and obtains the access request that severity level is higher than pre-set level, be then higher than the severity level pre-
If the access request of rank goes to emergency service device, the access request is responded by the emergency service device, is reached
The purpose of the important access request of priority processing, and common access request is effectively limited, prevent excessive access
Request causes systemic breakdown, achievees the purpose that protect database, protection system.
A kind of embodiment of the invention, if obtaining the visit as shown in Fig. 2, the access request reaches discreet value
Ask that severity level turns the access request that the severity level is higher than pre-set level higher than the access request of pre-set level in request
To emergency service device, comprising:
S22: if the access request reaches discreet value, the access request that severity level is higher than pre-set level is obtained, by institute
It states access request to deposit in quantitative cache server, obtains the access from the quantitative server according to preset frequency
Request, is forwarded to emergency service device for the access request, is responded by the emergency service device to the access request.
In order to guarantee that important access request is responded, and due to the negligible amounts of the important access request, originally
In embodiment, designing large-scale concurrent system further includes quantitative cache server, and the quantitative cache server is specific for storing
Access request, in one embodiment, it is flow that the quantitative cache server, which is as derived from flow buffering server,
A part of cache server, the quantitative cache server cannot occupy excessive resource, therefore, reach in access request and estimate
When value, flow buffering server obtains the access request that severity level is higher than pre-set level first, then by those access requests
It deposits in quantitative cache server, obtains the access request from the quantitative server according still further to preset frequency, it is fixed
Amount cache server is equivalent to the bucket of storage fixed capacity token (token), according to fixed rate toward token is added in bucket, only
When there is token in bucket, just request is handled, those requests is not otherwise handled, that is, is forwarded to the visit of quantitative cache server
Ask request, the access request is forwarded to service server by quantitative cache server, to guarantee quantitative cache server not
Excessive resource is occupied, while important access request can be handled in time, and flow buffering server receives client as usual
Access request, without influence flow buffering server operation.
A kind of embodiment of the invention, it is described by flow buffering server receive client send access request it
Afterwards, further includes:
Access request of the client to a business of identical IP is counted, within a preset time, by preset proportion therein
Access request be regarded as effectively requesting, remaining access request is regarded as invalidation request.
In practical applications, user continuous several times can operate visitor in a short time when that cannot respond after operating client
Family end causes to send the access request to the same business to system in the short time, or, " ox party " is in same local area network
Interior connection multiple devices open multiple client and initiate access request to same business, at this time the external access IP of those equipment
All the same, in the present embodiment, flow buffering server counts identical IP to same after receiving the access request that client is sent
Several access requests in the multiple access request, have then been regarded as by the multiple access request of a business within a preset time
Effect request, remaining access request are regarded as invalidation request, for example, flow buffering server by the client received to same industry
The access request of business, the primary request every 5S are just regarded as effectively requesting, remaining access request is considered as invalidation request, asks in vain
Ask and be not then added to flow buffering server, also no longer go to quantitative cache server, but directly invalidation request is abandoned or
Directly feed back.Further, an embodiment of the present embodiment adjusts the preset proportion according to the quantity of access request,
For example, the quantity of access request is 500 times/second, preset proportion is five point one;When the quantity of access request is 800 time/second, in advance
Setting ratio is eight point one.
A kind of embodiment of the invention, the access request by preset proportion therein are regarded as effectively requesting, remaining visit
Ask that request is regarded as after invalidation request, further includes:
Obtain the identity information or register information of the corresponding client user of the invalidation request;
Corresponding configuration parameter is matched according to the identity information or register information;
Preset configuration parameter is returned to the corresponding client of the invalidation request.
Above-described embodiment determine part access request be effectively request, determine part access request be invalidation request after,
For the invalidation request, the corresponding client of Xiang Suoshu invalidation request returns to preset configuration parameter, further, can be with
The different configuration parameter of client is returned according to the different identity information of client user or class information, and client is according to being connect
The configuration parameter received exports corresponding prompt information on a user interface, for example, according to the identity information of client user A,
Configuration parameter C1 is returned to, the pattern that client exports prompt information on a user interface is S1, according to the identity of client user B
Information returns to configuration parameter C2, and the pattern that client exports prompt information on a user interface is S2, is returned to different clients
Different configuration parameters is that the client user of different identity is arranged so that different clients be allowed to export different prompt informations
Different prompting messages to improve the otherness between client, while returning to different configuration parameters and just can allow difference
Client exports different prompt informations, without defining different prompt informations to each client, to improve to nothing
Imitate the treatment effeciency of request.
A kind of embodiment of the invention, it is described that the access request that client is sent, system are received by flow buffering server
It counts after whether the access request reach discreet value, further includes:
The access request treatment effeciency for counting the flow buffering server is matched according to the access request treatment effeciency
The capacity policy of flow buffering server.
In actual application, with the development of business, the access request of the required processing of flow buffering server is more next
More, the efficiency of flow buffering server needs strict control, guarantees the normal operation of business, the present embodiment from the source of business
In, the access request treatment effeciency of the flow buffering server is counted, then according to the treatment effeciency of the access request
Capacity policy with flow cache server can temporarily configure spare flow cache server when treatment effeciency decline
For flow buffering server, confession is currently used, improves the capacity of flow buffering server, guarantees that flow buffering server can connect
More, more fully access request is received, guarantees that access request can be forwarded to service server and access and is effectively treated.According to
The capacity plan of " grade of the pre-set level adjusted " and the access request treatment effeciency matching flow buffering server
Slightly, using the capacity policy, the preset proportion is determined.
In another embodiment, when the access request that the severity level is higher than pre-set level increases to preset value,
It configures the portion capacity of flow buffering server to the capacity of quantitative cache server, is connect to improve quantitative cache server
It receives, forward severity level higher than the efficiency of the access request of pre-set level.
A kind of embodiment of the invention obtains weight in the access request if the access request reaches discreet value
It is superior to before the access request of pre-set level, further includes:
The quantity for obtaining the access request adjusts the grade of the pre-set level according to the quantity of the access request.
Since amount of access may continue to increase, emergency service device can not also process more important access requests, this implementation
In example, when the access request reaches discreet value, the quantity of the access request is obtained, then according to the access request
Quantity adjustment is sent to the pre-set level of the access request of emergency service device, for example the quantity of access request is 500 times/second, hair
It should be 8 grades or more to the pre-set level of the access request of anxious server;And when the quantity of access request is 800 time/second, hair
9 grades or more should be then adjusted to the pre-set level of the access request of emergency service device, otherwise, if the quantity of important access request
Too much, emergency service device can not also process more important access requests, to guarantee that more important access request can more obtain
It timely responds to and handles.
As shown in figure 3, in another embodiment, the present invention provides a kind of access request processing units, comprising:
Request receiving module 10: for receiving the access request of client transmission, count whether the access request reaches
Discreet value;
First processing module 20: if being not up to discreet value for the access request, according to predeterminated frequency by the access
Request goes to service server, is responded by the service server to the access request;
Second processing module 21: if reaching discreet value for the access request, importance level in the access request is obtained
Not Gao Yu pre-set level access request, by the severity level be higher than pre-set level access request go to emergency service device,
The access request is responded by the emergency service device.
A kind of embodiment of the invention, the Second processing module 21, which executes, obtains severity level height in the access request
In the access request of pre-set level, the access request that the severity level is higher than pre-set level is gone into emergency service device, comprising:
The access request that severity level is higher than pre-set level is obtained, the access request is deposited in into quantitative cache server
In, the access request is obtained from the quantitative server according to preset frequency, the access request is forwarded to emergency
Server.
A kind of embodiment of the invention, the request receiving module 10 execute receive access request that client is sent it
Afterwards, further include executing:
Access request of the client to a business of identical IP is counted, within a preset time, by preset proportion therein
Access request be regarded as effectively requesting, remaining access request is regarded as invalidation request.
A kind of embodiment of the invention, the request receiving module 10, which executes, regards the access request of preset proportion therein
Make effectively request, remaining access request to be regarded as after invalidation request, further include executing:
Obtain the identity information or register information of the corresponding client user of the invalidation request;
Corresponding configuration parameter is matched according to the identity information or register information;
Preset configuration parameter is returned to the corresponding client of the invalidation request.
A kind of embodiment of the invention, the request receiving module 10 further include executing:
The quantity for obtaining the access request adjusts the grade of the pre-set level according to the quantity of the access request.
A kind of embodiment of the invention, the request receiving module 10 further include executing:
The access request treatment effeciency for counting the flow buffering server is matched according to the access request treatment effeciency
The capacity policy of flow buffering server.
In another embodiment, the present invention provides a kind of computer readable storage medium, computer-readable storage mediums
Computer program is stored in matter, which realizes when being executed by processor at access request described in above-described embodiment
Reason method.Wherein, the computer readable storage medium includes but is not limited to any kind of disk (including floppy disk, hard disk, light
Disk, CD-ROM and magneto-optic disk), ROM (Read-Only Memory, read-only memory), RAM (Random AcceSS
Memory, immediately memory), EPROM (EraSable Programmable Read-Only Memory, erasable programmable
Read-only memory), EEPROM (Electrically EraSable Programmable Read-Only Memory, electrically erasable
Programmable read only memory), flash memory, magnetic card or light card.It is, storage equipment includes by equipment (for example, calculating
Machine, mobile phone) with any medium for the form storage or transmission information that can be read, it can be read-only memory, disk or CD etc..
A kind of computer readable storage medium provided in an embodiment of the present invention by flow buffering server, it can be achieved that received
The access request that client is sent, counts whether the access request reaches discreet value;If the access request is not up to estimated
Value, goes to service server for the access request according to predeterminated frequency, by the service server to the access request
It is responded;If the access request reaches discreet value, the visit that severity level in the access request is higher than pre-set level is obtained
It asks request, the access request that the severity level is higher than pre-set level is gone into emergency service device, passes through the emergency service device
The access request is responded.By providing a kind of the case where being directed to different access number of requests, dynamically processing access
The method of request receives the access request that client is sent by unified flow buffering server, counts the access request
Whether discreet value is reached, it is convenient that received access request is managed collectively, if the access request is not up to estimated
Value, then control flow buffering server according to predeterminated frequency and the access request gone to service server, taken by the business
Business device responds the access request income, the result of response is then fed back to service request side, if the access request reaches
To discreet value, then controls flow buffering server and obtain the access request that severity level is higher than pre-set level, it then will be described heavy
The access request for being superior to pre-set level goes to emergency service device, by the emergency service device to the access request into
Row response, achievees the purpose that the important access request of priority processing, and effectively limited common access request, prevents
Excessive access request causes systemic breakdown, achievees the purpose that protect database, protection system.
The reality of above-mentioned access request processing method may be implemented in computer readable storage medium provided in an embodiment of the present invention
Example is applied, concrete function realizes the explanation referred in embodiment of the method, and details are not described herein.
In addition, the present invention also provides a kind of server, the server includes flow buffering clothes in another embodiment
Business device, quantitative cache server and emergency service device.As shown in figure 4, the server include processor 403, memory 405,
The devices such as input unit 407 and display unit 409.It will be understood by those skilled in the art that the structure devices shown in Fig. 4 are not
The restriction to Servers-all is constituted, may include than illustrating more or fewer components, or the certain components of combination.Memory
405 can be used for storing computer program 401 and each functional module, and processor 403 runs the computer for being stored in memory 405
Program 401, thereby executing the various function application and data processing of equipment.Memory 405 can be built-in storage or external memory
Reservoir, or including both built-in storage and external memory.Built-in storage may include read-only memory (ROM), programming ROM
(PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), flash memory or random storage
Device.External memory may include hard disk, floppy disk, ZIP disk, USB flash disk, tape etc..Memory disclosed in this invention includes but unlimited
In the memory of these types.Memory 405 disclosed in this invention is only used as example rather than as restriction.
Input unit 407 is used to receive the input of signal and receives the input of user, and input unit 407 may include touch surface
Plate and other input equipments, touch panel collect user on it or nearby touch operation (such as user using finger,
The operation of any suitable object or attachment such as stylus on touch panel or near touch panel), and according to presetting
The corresponding attachment device of driven by program;Other input equipments can include but is not limited to physical keyboard, function key (for example plays
Control button, switch key etc.), trace ball, mouse, one of operating stick etc. or a variety of.Display unit 409 can be used for showing
The information of user's input is supplied to the information of user and the various menus of computer equipment.Liquid can be used in display unit 409
The forms such as crystal display, Organic Light Emitting Diode.Processor 403 is the control centre of computer equipment, using various interfaces and
The various pieces of the entire computer of connection, by running or executing the software program being stored in memory 403 and/or mould
Block, and the data being stored in memory are called, perform various functions and handle data.
In one embodiment, the server includes one or more processors 403, and one or more storages
Device 405, one or more computer programs 401, wherein one or more of computer programs 401 are stored in memory
It in 405 and is configured as being executed by one or more of processors 403, one or more of computer programs 401 configure
For executing message push processing method described in above embodiments.One or more processors 403 shown in Fig. 4 can be held
Row realizes request receiving module 10, first processing module 20, the function of Second processing module 21 shown in Fig. 3.
A kind of server provided in an embodiment of the present invention is, it can be achieved that receive what client was sent by flow buffering server
Access request, counts whether the access request reaches discreet value;If the access request is not up to discreet value, according to default frequency
The access request is gone to service server by rate, is responded by the service server to the access request;If institute
It states access request and reaches discreet value, obtain the access request that severity level in the access request is higher than pre-set level, it will be described
The access request that severity level is higher than pre-set level goes to emergency service device, by the emergency service device to the access request
It is responded.By providing a kind of the case where being directed to different access number of requests, the method for dynamically handling access request passes through
Unified flow buffering server receives the access request that client is sent, and counts whether the access request reaches discreet value,
It is convenient that received access request is managed collectively, if the access request is not up to discreet value, it is slow to control flow
It deposits server and the access request is gone into service server according to predeterminated frequency, the access is asked by the service server
It asks income to respond, the result of response is then fed back into service request side, if the access request reaches discreet value, control stream
It measures cache server and obtains the access request that severity level is higher than pre-set level, the severity level is then higher than pre-set level
Access request go to emergency service device, the access request is responded by the emergency service device, reaches preferential place
The purpose of important access request is managed, and common access request is effectively limited, prevents excessive access request from making
At systemic breakdown, achieve the purpose that protect database, protection system.
The embodiment of the access request processing method of above-mentioned offer may be implemented in server provided in an embodiment of the present invention, tool
Body function realizes the explanation referred in embodiment of the method, and details are not described herein.
The above is only some embodiments of the invention, it is noted that for the ordinary skill people of the art
For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered
It is considered as protection scope of the present invention.
Claims (10)
1. a kind of access request processing method characterized by comprising
The access request that client is sent is received by flow buffering server, the access request is counted and whether reaches and estimate
Value;
If the access request is not up to discreet value, the access request is gone to by service server according to predeterminated frequency, is passed through
The service server responds the access request;
If the access request reaches discreet value, obtains the access that severity level is higher than pre-set level in the access request and ask
It asks, the access request that the severity level is higher than pre-set level is gone into emergency service device, by the emergency service device to institute
Access request is stated to be responded.
2. the method according to claim 1, wherein severity level is higher than in advance in the acquisition access request
If the access request of rank, the access request that the severity level is higher than pre-set level is gone into emergency service device, comprising:
The access request that severity level is higher than pre-set level is obtained, the access request is deposited in quantitative cache server,
The access request is obtained from the quantitative server according to preset frequency, the access request is forwarded to emergency service
Device.
3. the method according to claim 1, wherein described receive client transmission by flow buffering server
Access request after, further includes:
Access request of the client to a business of identical IP is counted, within a preset time, by the visit of preset proportion therein
Ask that request is regarded as effectively requesting, remaining access request is regarded as invalidation request.
4. according to the method described in claim 3, it is characterized in that, the access request by preset proportion therein has been regarded as
Effect request, remaining access request are regarded as after invalidation request, further includes:
Obtain the identity information or register information of the corresponding client user of the invalidation request;
Corresponding configuration parameter is matched according to the identity information or register information;
Preset configuration parameter is returned to the corresponding client of the invalidation request.
5. if the method according to claim 1, wherein the access request reaches discreet value, acquisition institute
Severity level in access request is stated to be higher than before the access request of pre-set level, further includes:
The quantity for obtaining the access request adjusts the grade of the pre-set level according to the quantity of the access request.
6. the method according to claim 1, wherein described receive client transmission by flow buffering server
Access request, count after whether the access request reach discreet value, further includes:
The access request treatment effeciency for counting the flow buffering server matches flow according to the access request treatment effeciency
The capacity policy of cache server.
7. a kind of access request processing unit characterized by comprising
Request receiving module: for receiving the access request of client transmission, count whether the access request reaches discreet value;
First processing module: if being not up to discreet value for the access request, the access request is turned according to predeterminated frequency
To service server, the access request is responded by the service server;
Second processing module: it if reaching discreet value for the access request, obtains severity level in the access request and is higher than
The access request that the severity level is higher than pre-set level is gone to emergency service device, passes through institute by the access request of pre-set level
Emergency service device is stated to respond the access request.
8. device according to claim 7, which is characterized in that the Second processing module, which executes, obtains the access request
Middle severity level is higher than the access request of pre-set level, and the access request that the severity level is higher than pre-set level is gone to emergency
Server, comprising:
The access request that severity level is higher than pre-set level is obtained, the access request is deposited in quantitative cache server,
The access request is obtained from the quantitative server according to preset frequency, the access request is forwarded to emergency service
Device.
9. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium
Program, the computer program realize access request processing method as claimed in any one of claims 1 to 6 when being executed by processor.
10. a kind of server characterized by comprising
One or more processors;
Memory;
One or more computer programs, wherein one or more of computer programs are stored in the memory and quilt
It is configured to be executed by one or more of processors, one or more of computer programs are configured to carry out according to right
It is required that 1 to 6 described in any item access request processing methods.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910015156.XA CN109815716A (en) | 2019-01-08 | 2019-01-08 | Access request processing method, device, storage medium and server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910015156.XA CN109815716A (en) | 2019-01-08 | 2019-01-08 | Access request processing method, device, storage medium and server |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109815716A true CN109815716A (en) | 2019-05-28 |
Family
ID=66604122
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910015156.XA Pending CN109815716A (en) | 2019-01-08 | 2019-01-08 | Access request processing method, device, storage medium and server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109815716A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110401653A (en) * | 2019-07-23 | 2019-11-01 | 苏州浪潮智能科技有限公司 | A kind of request filter method and device |
CN110784351A (en) * | 2019-10-25 | 2020-02-11 | 上海燕汐软件信息科技有限公司 | Data access control method and device, electronic equipment and storage medium |
CN111193760A (en) * | 2019-07-18 | 2020-05-22 | 腾讯科技(深圳)有限公司 | Information sending method, device and storage medium |
CN111586438A (en) * | 2020-04-27 | 2020-08-25 | 北京文香信息技术有限公司 | Method, device and system for processing service data |
CN112312145A (en) * | 2019-07-31 | 2021-02-02 | 上海幻电信息科技有限公司 | Access server, burst traffic caching method, system, computer device and readable storage medium |
CN112311684A (en) * | 2019-07-31 | 2021-02-02 | 上海幻电信息科技有限公司 | Burst traffic processing method, computer device and readable storage medium |
CN112311689A (en) * | 2019-07-31 | 2021-02-02 | 上海幻电信息科技有限公司 | Burst flow shunting method, computer equipment and readable storage medium |
CN113176856A (en) * | 2021-04-30 | 2021-07-27 | 云上青海大数据产业有限公司 | Cloud computing service system based on big data |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102999377A (en) * | 2012-11-30 | 2013-03-27 | 北京东方通科技股份有限公司 | Service concurrent access control method and device |
CN104518981A (en) * | 2013-09-27 | 2015-04-15 | 深圳市腾讯计算机***有限公司 | Flow control method and device |
CN105959392A (en) * | 2016-06-14 | 2016-09-21 | 乐视控股(北京)有限公司 | Page view control method and device |
CN107688607A (en) * | 2017-07-26 | 2018-02-13 | 努比亚技术有限公司 | The method and mobile terminal of a kind of database access, computer-readable recording medium |
CN108173938A (en) * | 2017-12-28 | 2018-06-15 | 泰康保险集团股份有限公司 | Server load shunt method and device |
-
2019
- 2019-01-08 CN CN201910015156.XA patent/CN109815716A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102999377A (en) * | 2012-11-30 | 2013-03-27 | 北京东方通科技股份有限公司 | Service concurrent access control method and device |
CN104518981A (en) * | 2013-09-27 | 2015-04-15 | 深圳市腾讯计算机***有限公司 | Flow control method and device |
CN105959392A (en) * | 2016-06-14 | 2016-09-21 | 乐视控股(北京)有限公司 | Page view control method and device |
CN107688607A (en) * | 2017-07-26 | 2018-02-13 | 努比亚技术有限公司 | The method and mobile terminal of a kind of database access, computer-readable recording medium |
CN108173938A (en) * | 2017-12-28 | 2018-06-15 | 泰康保险集团股份有限公司 | Server load shunt method and device |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111193760B (en) * | 2019-07-18 | 2022-01-07 | 腾讯科技(深圳)有限公司 | Information sending method, device and storage medium |
CN111193760A (en) * | 2019-07-18 | 2020-05-22 | 腾讯科技(深圳)有限公司 | Information sending method, device and storage medium |
CN110401653A (en) * | 2019-07-23 | 2019-11-01 | 苏州浪潮智能科技有限公司 | A kind of request filter method and device |
CN112311689A (en) * | 2019-07-31 | 2021-02-02 | 上海幻电信息科技有限公司 | Burst flow shunting method, computer equipment and readable storage medium |
CN112312145A (en) * | 2019-07-31 | 2021-02-02 | 上海幻电信息科技有限公司 | Access server, burst traffic caching method, system, computer device and readable storage medium |
CN112311684A (en) * | 2019-07-31 | 2021-02-02 | 上海幻电信息科技有限公司 | Burst traffic processing method, computer device and readable storage medium |
CN112312145B (en) * | 2019-07-31 | 2023-04-18 | 上海幻电信息科技有限公司 | Access server, burst traffic caching method, system, computer device and readable storage medium |
US11889133B2 (en) | 2019-07-31 | 2024-01-30 | Shanghai Hode Information Technology Co., Ltd. | Burst traffic processing method, computer device and readable storage medium |
CN112311689B (en) * | 2019-07-31 | 2024-03-05 | 上海幻电信息科技有限公司 | Burst traffic distribution method, computer device and readable storage medium |
CN110784351A (en) * | 2019-10-25 | 2020-02-11 | 上海燕汐软件信息科技有限公司 | Data access control method and device, electronic equipment and storage medium |
CN111586438A (en) * | 2020-04-27 | 2020-08-25 | 北京文香信息技术有限公司 | Method, device and system for processing service data |
CN111586438B (en) * | 2020-04-27 | 2021-08-17 | 安徽文香科技有限公司 | Method, device and system for processing service data |
CN113176856A (en) * | 2021-04-30 | 2021-07-27 | 云上青海大数据产业有限公司 | Cloud computing service system based on big data |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109815716A (en) | Access request processing method, device, storage medium and server | |
US11275593B2 (en) | Leveraging microservice containers to provide tenant isolation in a multi-tenant API gateway | |
US10430332B2 (en) | System and method for performance tuning of garbage collection algorithms | |
CN108776934B (en) | Distributed data calculation method and device, computer equipment and readable storage medium | |
CN113243005A (en) | Performance-based hardware emulation in on-demand network code execution systems | |
US8782233B2 (en) | Embedding a cloud-based resource request in a specification language wrapper | |
US20170061364A1 (en) | Database systems and related queue management methods | |
US10671621B2 (en) | Predictive scaling for cloud applications | |
US11010215B2 (en) | Recommending applications based on call requests between applications | |
KR20170042638A (en) | Policy-based resource management and allocation system | |
US20100005468A1 (en) | Black-box performance control for high-volume throughput-centric systems | |
CN111694646A (en) | Resource scheduling method and device, electronic equipment and computer readable storage medium | |
US20210067594A1 (en) | Computing resource management system | |
CN102147746A (en) | Dynamic thread pool management | |
CN106557369A (en) | A kind of management method and system of multithreading | |
CN113094136A (en) | Page display control method and device, storage medium and electronic equipment | |
CN109542475A (en) | Data-updating method, device, storage medium and the server of system multi version | |
CN111738446A (en) | Scheduling method, device, equipment and medium of deep learning inference engine | |
US10331488B2 (en) | Multilayered resource scheduling | |
US11256547B2 (en) | Efficient allocation of cloud computing resources to job requests | |
CN109542718A (en) | Monitoring method, device, storage medium and the server of service call | |
WO2015047302A1 (en) | Processing a hybrid flow associated with a service class | |
CN110096521A (en) | Log information processing method and device | |
CN108153584B (en) | Method and equipment for determining number of threads to be allocated to target network equipment | |
CN114175602A (en) | Authority management of cloud resources |
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 |