CN107666513A - Processing method, terminal and the computer-readable recording medium of burst request - Google Patents

Processing method, terminal and the computer-readable recording medium of burst request Download PDF

Info

Publication number
CN107666513A
CN107666513A CN201710798956.4A CN201710798956A CN107666513A CN 107666513 A CN107666513 A CN 107666513A CN 201710798956 A CN201710798956 A CN 201710798956A CN 107666513 A CN107666513 A CN 107666513A
Authority
CN
China
Prior art keywords
client
request
burst request
stand
burst
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710798956.4A
Other languages
Chinese (zh)
Inventor
吴欢
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Putian Yitonge Technology Ltd By Share Ltd
Original Assignee
Shenzhen Putian Yitonge Technology Ltd By Share Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Putian Yitonge Technology Ltd By Share Ltd filed Critical Shenzhen Putian Yitonge Technology Ltd By Share Ltd
Priority to CN201710798956.4A priority Critical patent/CN107666513A/en
Publication of CN107666513A publication Critical patent/CN107666513A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/62Establishing a time schedule for servicing the requests

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a kind of processing method of burst request, terminal and computer-readable recording medium, the treating method comprises:Client obtains stand-by period threshold value;When client needs to carry out burst request, the stand-by period of client is randomly selected in the stand-by period threshold value of client;After client has waited the stand-by period extracted, burst request is carried out.The present invention is when client needs to carry out burst request, in the stand-by period threshold value of client, i.e. in the maximum latency of client, randomly select the stand-by period, the stand-by period extracted has been waited to make requests on again afterwards, avoid due to there are paroxysmal a large amount of concurrent requests, cause server program processing not come, it is out of service to even result in server program collapse.

Description

Processing method, terminal and the computer-readable recording medium of burst request
Technical field
The present invention relates to communication technical field, more particularly to a kind of processing method of burst request, terminal and computer can Read storage medium.
Background technology
Just there is the problem of considering concurrent request quantity in network server program design, in concurrent quantity server all It can normally handle, but paroxysmal a large amount of concurrent requests occur in some application scenarios, so as to cause at server program Reason does not come, and it is out of service to even result in program crashing.
Such as server program is because collapse or some reasons need to restart, because server program exits rear client journey Sequence all detects transmission chain rupture simultaneously, and after server program is restarted, all client-side program can carry out reconnection simultaneously and do Request, this when can produce a large amount of concurrent requests in the short time, may exceed serve end program disposal ability, so as to cause A large amount of link processing request timed outs, cause the chain rupture reconnection again of these links, eventually entering vicious circle causes server journey Sequence paralysis can not recover.
General solution is optimization server program process performance on this question, but in the big field of concurrent request amount Optimizable space is little, and the space that reality can be lifted is little, and above mentioned problem can not solve very well.
Therefore, had yet to be improved and developed for drawbacks described above, prior art.
Invention data
In view of the deficiencies in the prior art, it is an object of the invention to provide a kind of processing method of burst request, terminal and calculating Machine readable storage medium storing program for executing, it is intended to solve to cause to service because paroxysmal a large amount of concurrent requests occurs in client in the prior art The processing of device program does not come, and even results in the problem of server program collapse is out of service.
In order to solve the above technical problems, the technical solution adopted by the present invention is as follows:A kind of processing method of burst request, its In, the processing method of the burst request comprises the following steps:
Client obtains stand-by period threshold value;
When client needs to carry out burst request, when randomly selecting the wait of client in the stand-by period threshold value of client Between;
After client has waited the stand-by period extracted, burst request is carried out.
Further, the processing method of the burst request, wherein, after the burst request is restarted including server program The reconnection requests of client, and start the logging request of client when reaching the standard grade login simultaneously to some time point client.
Further, the processing method of the burst request, wherein, the stand-by period threshold value is set in advance by client Put, be either issued to client by client and server commitment or by server.
Further, the processing method of the burst request, wherein, it is described when client needs to carry out burst request, Before the step of stand-by period of client being randomly selected in the stand-by period threshold value of client, in addition to:
When client needs to make requests on, judge whether the request is burst request.
Further, the processing method of the burst request, wherein, it is described when client needs to make requests on, judge After the step of whether request is burst request, in addition to:
If the request is not burst request, the request is sent immediately.
The present invention also provides a kind of processing terminal of burst request, wherein, the system includes processor, holder and storage The burst request processing routine that can be run on the holder and on the processor be present, wherein the burst request is handled When program is by the computing device, following steps are realized:
Client obtains stand-by period threshold value;
When client needs to carry out burst request, when randomly selecting the wait of client in the stand-by period threshold value of client Between;
After client has waited the stand-by period extracted, burst request is carried out.
Further, the processing terminal of the burst request, wherein, after the burst request is restarted including server program The reconnection requests of client, and start the logging request of client when reaching the standard grade login simultaneously to some time point client.
Further, the processing terminal of the burst request, wherein, the stand-by period threshold value is set in advance by client Put, be either issued to client by client and server commitment or by server.
Further, the processing terminal of the burst request, wherein, the burst request processing routine is by the processor During execution, following steps are also realized:
When client needs to make requests on, judge whether the request is burst request;
If the request is not burst request, the request is sent immediately.
The present invention also provides a kind of computer-readable recording medium, wherein, stored on the computer-readable recording medium There is burst request processing routine, the burst request processing routine realizes burst request as described above when being executed by processor The step of processing method.
The invention provides a kind of processing method of burst request, system and computer-readable recording medium, the processing Method includes:Client obtains stand-by period threshold value;When client needs to carry out burst request, in the stand-by period of client The stand-by period of client is randomly selected in threshold value;After client has waited the stand-by period extracted, burst request is carried out.This hair It is bright when client needs to carry out burst request, in the stand-by period threshold value of client, i.e., when client maximum waits In, the stand-by period is randomly selected, has waited the stand-by period extracted to make requests on again afterwards, is avoided sudden due to occurring A large amount of concurrent requests, cause server program processing do not come, even result in server program collapse it is out of service.
Brief description of the drawings
Accompanying drawing described herein is used for providing further understanding of the present application, forms the part of the application, this Shen Schematic description and description please is used to explain the application, does not form the improper restriction to the application.In the accompanying drawings:
Fig. 1 is the flow chart of the processing method preferred embodiment of the burst request of the present invention.
Fig. 2 is the structured flowchart of the system preferred embodiment of the present invention.
Embodiment
Presently filed embodiment is described in detail below in conjunction with drawings and Examples, and thereby how the application is applied Technological means can fully understand and implement according to this to solve technical problem and reach the implementation process of technical effect.
Fig. 1 is the flow chart of the processing method preferred embodiment of the burst request of the present invention, as shown in figure 1, the present invention is real A kind of processing method of burst request of example offer is provided, comprised the following steps:
Step S100, client obtains stand-by period threshold value;
Step S200, when client needs to carry out burst request, client is randomly selected in the stand-by period threshold value of client The stand-by period at end;
Step S300, after client has waited the stand-by period extracted, burst request is carried out.
Specifically, for sending a large amount of burst requests to server in the multiple client short time, cause server process Do not come, even result in the situation of server crash, the present invention is not asked immediately when client needs to carry out burst request Ask, but the stand-by period of client is randomly selected in the stand-by period threshold value of client, client is waited one at random Made requests on again after the stand-by period of extraction, each client that staggers carries out the time of burst request, the stand-by period of client Threshold value is the largest request stand-by period of client.Due to the stand-by period be within the largest request stand-by period of client it is random Extract, from probability for, all clients send burst request time be within the largest request stand-by period of client It is evenly distributed, the intensive request that will can thus happen suddenly is changed into distribution request, if after client maximum can receive 20 seconds Request, i.e. the largest request stand-by period of client are 20 seconds, then the request of all clients is evenly distributed into this 20 seconds It is interior, rather than just initiated request immediately at the 0th second or 1 second as prior art.
The stand-by period that each client makes requests on takes at random within the largest request stand-by period, such as client The largest request stand-by period at end is 10 seconds, then random number can be taken in 0-10, if maximum latency is 120 seconds, Random number is so just taken in 0-120.Certainly, stand-by period unit can be second or minute etc., be not specifically limited here, such as During the unit minute of fruit stand-by period, such as maximum latency is 2 minutes, then the stand-by period just takes random number in 0-2.
In further implementation, the burst request includes the reconnection requests that server program restarts rear client, and Start the logging request of client when reaching the standard grade login simultaneously to some time point client.
Specifically, after server program is restarted, all client-side program of all clients that are connected with server can be same Shi Jinhang reconnections and ask, a large amount of concurrent requests, or the visitor of some servers connection can be produced this when in the short time Family end sets in some time while starts login of reaching the standard grade, and so can also be produced when login is reached the standard grade in the short time A large amount of concurrent requests, all server process may be caused not due to producing a large amount of concurrent requests in the short time under both of these case Come over, so the burst request of the present invention restarts the reconnection of rear client including server program, and arrived some time point Client starts login of reaching the standard grade simultaneously.
In further implementation, the stand-by period threshold value is pre-set by client, or by client and server Agreement, or client is issued to by server.
Specifically, the stand-by period threshold value of client can be pre-set by client, i.e. client manufacturer or user Pre-set in client, or by client and server commitment, i.e. client manufacturer and server manufacturer agreement It is good, client can also be issued to by server.
For each client being connected with same server, its stand-by period threshold value is identical, i.e., when these clients are sent out All it is the direct access in same stand-by period threshold value when sending burst request.
It is described when client needs to carry out burst request in further implementation, in the stand-by period threshold value of client Before the step of inside randomly selecting the stand-by period of client, in addition to:
When client needs to make requests on, judge whether the request is burst request.
Specifically, burst request is to be made requests in a large amount of client short time, burst request may make server process Do not come to cause server crash to be paralysed, and usually request server is manageable, so only needing to enter in client During row burst request, request time is staggered, in general request can ask immediately when needing request, so the present invention can The type of request is judged when client needs to make requests on, judges whether it is burst request.
It is described when client needs to make requests in further implementation, judge whether the request is burst request The step of after, in addition to:
If the request is not burst request, the request is sent immediately.
Specifically, when the request of client is not burst request, can be asked immediately according in general flow processing Ask, without being waited in stand-by period threshold extraction Random Waiting Time, can so improve the operating rate of client, Server build-up of pressure will not be given again simultaneously.
The embodiment of the present invention also provides a kind of processing terminal of burst request, wherein, the processing terminal of the burst request Including processor 100, holder 200 and it is stored in the burst request that can be run on holder 200 and on processor 100 processing Program, wherein when the burst request processing routine is performed by processor 100, realize following steps:
Client obtains stand-by period threshold value;
When client needs to carry out burst request, when randomly selecting the wait of client in the stand-by period threshold value of client Between;
After client has waited the stand-by period extracted, burst request is carried out;Specifically as described above.
In further implementation, the burst request includes the reconnection requests that server program restarts rear client, and Start the logging request of client when reaching the standard grade login simultaneously to some time point client;Specifically as described above.
In further implementation, the stand-by period threshold value is pre-set by client, or by client and server Agreement, or client is issued to by server;Specifically as described above.
In further implementation, when the burst request processing routine is by the computing device, following steps are also realized:
When client needs to make requests on, judge whether the request is burst request;
If the request is not burst request, the request is sent immediately;Specifically as described above.
The embodiment of the present invention also provides a kind of computer-readable recording medium, wherein, the computer-readable recording medium On store burst request processing routine, burst as described above is realized when the burst request processing routine is executed by processor The step of processing method of request.
In summary, the invention discloses a kind of processing method of burst request, terminal and computer-readable recording medium, It the treating method comprises:Client obtains stand-by period threshold value;When client needs to carry out burst request, in client The stand-by period of client is randomly selected in stand-by period threshold value;After client has waited the stand-by period extracted, happened suddenly Request.The present invention is when client needs to carry out burst request, in the stand-by period threshold value of client, i.e., in client most In the big stand-by period, the stand-by period is randomly selected, has waited the stand-by period extracted to make requests on again afterwards, has avoided due to going out Existing paroxysmal a large amount of concurrent requests, cause server program processing not come, even result in server program collapse and stop fortune OK.
Above content is only presently preferred embodiments of the present invention, is not to do any formal limitation to the present invention.Although Disclosed above with preferred embodiment, any person skilled in the art of the invention, is not departing from technical solution of the present invention In the range of, when the technical data using the disclosure above makes a little change or modification, the equivalent embodiment of equivalent variations is obtained, In every case it is without departing from technical solution of the present invention data, the technical spirit according to the present invention is made any simple to above example Modification, equivalent variations and modification, are still within the scope of the technical scheme of the invention.

Claims (10)

1. a kind of processing method of burst request, it is characterised in that the processing method of the burst request comprises the following steps:
Client obtains stand-by period threshold value;
When client needs to carry out burst request, when randomly selecting the wait of client in the stand-by period threshold value of client Between;
After client has waited the stand-by period extracted, burst request is carried out.
2. the processing method of burst request according to claim 1, it is characterised in that the burst request includes server Program restarts the reconnection requests of rear client, and starts client when logging in of reaching the standard grade simultaneously to some time point client Logging request.
3. the processing method of burst request according to claim 1, it is characterised in that the stand-by period threshold value is by client End is pre-set, and is either issued to client by client and server commitment or by server.
4. the processing method of the burst request according to any one of claim 1-3 claim, it is characterised in that described When client needs to carry out burst request, the stand-by period of client is randomly selected in the stand-by period threshold value of client Before step, in addition to:
When client needs to make requests on, judge whether the request is burst request.
5. the processing method of burst request according to claim 4, it is characterised in that described when client needs to be asked When asking, after judging the step of whether request is burst request, in addition to:
If the request is not burst request, the request is sent immediately.
6. a kind of processing terminal of burst request, it is characterised in that the processing terminal of the burst request includes processor, storage Device and the burst request processing routine that can be run on the holder and on the processor is stored in, wherein the burst please When seeking processing routine by the computing device, following steps are realized:
Client obtains stand-by period threshold value;
When client needs to carry out burst request, when randomly selecting the wait of client in the stand-by period threshold value of client Between;
After client has waited the stand-by period extracted, burst request is carried out.
7. the processing terminal of burst request according to claim 6, it is characterised in that the burst request includes server Program restarts the reconnection requests of rear client, and starts client when logging in of reaching the standard grade simultaneously to some time point client Logging request.
8. the processing terminal of burst request according to claim 6, it is characterised in that the stand-by period threshold value is by client End is pre-set, and is either issued to client by client and server commitment or by server.
9. the processing terminal of the burst request according to any one of claim 6-8 claim, it is characterised in that described When burst request processing routine is by the computing device, following steps are also realized:
When client needs to make requests on, judge whether the request is burst request;
If the request is not burst request, the request is sent immediately.
10. a kind of computer-readable recording medium, it is characterised in that burst is stored on the computer-readable recording medium please Processing routine is sought, is realized when the burst request processing routine is executed by processor as any one of claim 1 to 5 The step of processing method of burst request.
CN201710798956.4A 2017-09-07 2017-09-07 Processing method, terminal and the computer-readable recording medium of burst request Pending CN107666513A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710798956.4A CN107666513A (en) 2017-09-07 2017-09-07 Processing method, terminal and the computer-readable recording medium of burst request

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710798956.4A CN107666513A (en) 2017-09-07 2017-09-07 Processing method, terminal and the computer-readable recording medium of burst request

Publications (1)

Publication Number Publication Date
CN107666513A true CN107666513A (en) 2018-02-06

Family

ID=61097251

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710798956.4A Pending CN107666513A (en) 2017-09-07 2017-09-07 Processing method, terminal and the computer-readable recording medium of burst request

Country Status (1)

Country Link
CN (1) CN107666513A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111193769A (en) * 2019-11-25 2020-05-22 泰康保险集团股份有限公司 Method, system, device, electronic equipment and storage medium for recovering long connection

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050143081A1 (en) * 2003-12-17 2005-06-30 Intel Corporation Channel access apparatus, systems, and methods
CN101374147A (en) * 2008-09-10 2009-02-25 深圳华为通信技术有限公司 Method, apparatus and system for software upgrading detection
CN103516536A (en) * 2012-06-26 2014-01-15 重庆新媒农信科技有限公司 Server service request parallel processing method based on thread number limit and system thereof
CN104408088A (en) * 2014-11-11 2015-03-11 北京奇虎科技有限公司 Control method and device for concurrent requests

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050143081A1 (en) * 2003-12-17 2005-06-30 Intel Corporation Channel access apparatus, systems, and methods
CN101374147A (en) * 2008-09-10 2009-02-25 深圳华为通信技术有限公司 Method, apparatus and system for software upgrading detection
CN103516536A (en) * 2012-06-26 2014-01-15 重庆新媒农信科技有限公司 Server service request parallel processing method based on thread number limit and system thereof
CN104408088A (en) * 2014-11-11 2015-03-11 北京奇虎科技有限公司 Control method and device for concurrent requests

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111193769A (en) * 2019-11-25 2020-05-22 泰康保险集团股份有限公司 Method, system, device, electronic equipment and storage medium for recovering long connection

Similar Documents

Publication Publication Date Title
US11122067B2 (en) Methods for detecting and mitigating malicious network behavior and devices thereof
CN101605108B (en) Method, system and apparatus for instant communication
CN110572229B (en) Time calibration method, device, terminal and storage medium
CN108744504B (en) Game data processing method and device, game server and game system
CN105069163B (en) Network request treating method and apparatus
CN108989359A (en) Method for verifying login and system, the readable storage medium storing program for executing and terminal of server cluster
CN106559241A (en) Using the collection of daily record, sending method, device, system and log server
CN105978938A (en) Service processing equipment service status determining method and scheduling equipment
WO2021226781A1 (en) Firewall rule updating method and apparatus, server, and storage medium
CN107666513A (en) Processing method, terminal and the computer-readable recording medium of burst request
WO2017080328A1 (en) Terminal user state acquisition method, device and system
US10412778B2 (en) Data transmission method and apparatus for data service
CN112039727B (en) Data transmission method and device, electronic equipment and storage medium
CN107819599A (en) Message processing method and device
CN106953884A (en) Middleware message treatment method, device and middleware platform
TW201644249A (en) Devices and methods for performing TCP handshakes
CN113162922B (en) Client data acquisition method and device, storage medium and electronic equipment
CN114416275A (en) Method and system for synchronizing virtual machine states by multiple management clients
CN111240867B (en) Information communication system and method
CN114363204A (en) Request monitoring method, network device and storage medium
CN107506491B (en) OSD data distribution method and device of distributed file system
CN111294335A (en) Login method and device
CN107465743B (en) Method and device for processing request
CN112769889B (en) Service data pushing method and device, storage medium and electronic device
CN113220491B (en) Remote call self-adaptive load balancing method, device and system and computer equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180206