CN110138677A - Request flow control methods, system, terminal and medium - Google Patents

Request flow control methods, system, terminal and medium Download PDF

Info

Publication number
CN110138677A
CN110138677A CN201910403156.7A CN201910403156A CN110138677A CN 110138677 A CN110138677 A CN 110138677A CN 201910403156 A CN201910403156 A CN 201910403156A CN 110138677 A CN110138677 A CN 110138677A
Authority
CN
China
Prior art keywords
token
request
answer
flow control
question
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.)
Withdrawn
Application number
CN201910403156.7A
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.)
Jizhi (shanghai) Enterprise Management Consulting Co Ltd
Original Assignee
Jizhi (shanghai) Enterprise Management Consulting Co 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 Jizhi (shanghai) Enterprise Management Consulting Co Ltd filed Critical Jizhi (shanghai) Enterprise Management Consulting Co Ltd
Priority to CN201910403156.7A priority Critical patent/CN110138677A/en
Publication of CN110138677A publication Critical patent/CN110138677A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/215Flow control; Congestion control using token-bucket
    • 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

Abstract

Request flow control methods provided by the invention, comprising the following steps: monitoring unit time current network message request;Based on monitoring result, start corresponding flow control policy.This method uses different strategies using different periods, and the time difference answered a question according to different user, instantaneous flow peak is cut to the flow gentle for a period of time, this method is also by way of taking token, the flow for obtaining token passes through, do not obtain the traffic interception of token, with the quantity of token determine eventually by flow quantity, to realize the purpose of control flow.

Description

Request flow control methods, system, terminal and medium
Technical field
The invention belongs to Internet technical fields, and in particular to request flow control methods, system, terminal and medium.
Background technique
The existing network platform is for expansion of business volume, it will usually hold the advertising campaign in the short time, such as panic buying, second Kill equal Transient activities.So in a short time, it just will appear commodity purchasing number concentration, it is more than usual that consumer, which disposably buys, Several times, even tens times of sell quantity;It fights for mutually buying between consumer, spells network speed, spells mad purchase quick of eye and deft of hand.With this Meanwhile consumer logs in Web bank simultaneously, Alipay, wealth pay it is logical etc. quickly paid the bill, improve clicking rate and the amount of logging in, Reach the form being packed.So the existing network platform is when holding the advertising campaign in the short time, it may appear that momentary request amount It is very high, the excessively high problem of request flow.
Summary of the invention
For the defects in the prior art, the present invention provides a kind of request flow control methods, system, terminal and medium, Instantaneous flow peak can be cut as the gentle flow in a period of time, the purpose of realization control flow.
In a first aspect, a kind of request flow control methods, comprising the following steps:
A kind of request flow control methods, which comprises the following steps:
Monitor unit time current network message request;
Based on monitoring result, start corresponding flow control policy.
Wherein, when unit time current network message request quantity is more than a certain threshold value, with first rate to token bucket Token is stored, while starting the first control strategy.
Wherein, first control strategy are as follows:
Preset question and answer topic is read, the question and answer topic is sent to requesting party;
Based on requesting party's response results, response is controlled.
Wherein, when unit time current network message request quantity be less than or equal to a certain threshold value when, with the second rate to Token bucket stores token.
Wherein, the first rate is greater than second rate.
Wherein, described to be based on requesting party's response results, control response includes:
It receives requesting party and is directed to the answer that the question and answer topic uploads;
If the answer is correct, the request of response mobile terminal submission.
Wherein, described to be based on requesting party's response results, control response further include:
It receives requesting party and is directed to the answer that the question and answer topic uploads;
If the answer mistake reads new question and answer topic, new question and answer topic is sent to requesting party.
Wherein, if the described answer is correct, the request that response mobile terminal is submitted is specifically included:
If the answer is correct, token request instruction is generated, requests token to preset token module;
Receive the request results that token module returns;
When the request results include token, the request that the requesting party submits is responded;
When the request results include error message, the request that the requesting party submits is intercepted.
Wherein, the request results are handled to obtain by the token module to the token request instruction, specific to wrap It includes:
When token module receives token request, token volume residual is read;
When the token volume residual is greater than 0, token volume residual subtracts 1, returns to the request results comprising token;
When the token volume residual is equal to 0, the request results comprising error message are returned.
Second aspect, a kind of request flow control system characterized by comprising
Monitoring unit is used to monitor unit time current network message request;
Strategy control unit is used to start corresponding flow control policy based on monitoring result.Preferably, the plan Slightly control unit is specifically used for:
It receives requesting party and is directed to the answer that the question and answer topic uploads;
If the answer is correct, the request of respond request side's submission;
If the answer mistake reads new question and answer topic, new question and answer topic is sent to requesting party.
Preferably, the strategy control unit is specifically used for:
If the answer is correct, token request instruction is generated, requests token to preset token module;
Receive the request results that token module returns;
When the request results include token, the request that the requesting party submits is responded;
When the request results include error message, the request that the requesting party submits is intercepted.
Preferably, the request results are handled to obtain by the token module to the token request instruction, specifically Include:
When token module receives token request, token volume residual is read;
When the token volume residual is greater than 0, token volume residual subtracts 1, returns to the request results comprising token;
When the token volume residual is equal to 0, the request results comprising error message are returned.
The third aspect, a kind of terminal, including processor, input equipment, output equipment and memory, it is the processor, defeated Enter equipment, output equipment and memory to be connected with each other, wherein the memory is for storing computer program, the computer Program includes program instruction, and the processor is configured for calling described program instruction, executes method described in first aspect.
Fourth aspect, a kind of computer readable storage medium, the computer storage medium are stored with computer program, institute Stating computer program includes program instruction, and described program instruction makes the processor execute first aspect when being executed by a processor The method.
As shown from the above technical solution, request flow control methods, system, terminal and medium provided by the invention utilize Instantaneous flow peak, is cut the flow gentle for a period of time by the time difference that different user is answered a question, and this method also passes through The mode for taking token, the flow for obtaining token pass through, and do not obtain the traffic interception of token, with the quantity of token determine eventually by Flow quantity, thus realize control flow purpose.
Detailed description of the invention
It, below will be to specific in order to illustrate more clearly of the specific embodiment of the invention or technical solution in the prior art Embodiment or attached drawing needed to be used in the description of the prior art are briefly described.In all the appended drawings, similar element Or part is generally identified by similar appended drawing reference.In attached drawing, each element or part might not be drawn according to actual ratio.
Fig. 1 is the flow chart for the request flow control methods that a certain embodiment of the present invention provides
Fig. 2 be another embodiment of the present invention provides request flow control methods flow chart.
Fig. 3 is the module frame chart for the request flow control system that a certain embodiment of the present invention provides.
Fig. 4 be another embodiment of the present invention provides request flow control system module frame chart.
Fig. 5 is the structural schematic diagram for the terminal that a certain embodiment of the present invention provides.
Specific embodiment
It is described in detail below in conjunction with embodiment of the attached drawing to technical solution of the present invention.Following embodiment is only used for Clearly illustrate technical solution of the present invention, therefore be only used as example, and cannot be used as a limitation and limit protection model of the invention It encloses.It should be noted that unless otherwise indicated, technical term or scientific term used in this application are should be belonging to the present invention The ordinary meaning that field technical staff is understood.
It should be appreciated that ought use in this specification and in the appended claims, term " includes " and "comprising" instruction Described feature, entirety, step, operation, the presence of element and/or component, but one or more of the other feature, whole is not precluded Body, step, operation, the presence or addition of element, component and/or its set.
It is also understood that mesh of the term used in this description of the invention merely for the sake of description specific embodiment And be not intended to limit the present invention.As description of the invention and it is used in the attached claims, unless on Other situations are hereafter clearly indicated, otherwise " one " of singular, "one" and "the" are intended to include plural form.
As used in this specification and in the appended claims, term " if " can be according to context quilt Be construed to " when ... " or " once " or " in response to determination " or " in response to detecting ".Similarly, phrase " if it is determined that " or " if detecting [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " in response to true It is fixed " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".
When transmitting data in a network, network congestion in order to prevent need to limit the flow of outflow network, make flow to compare Uniform speed is sent out.Token barrel technology is shaping network flow (TrafficShaping) and rate limit (RateLimiting) most common a kind of technology in.In typical case, token barrel technology is used to control to be sent on network The number of data, and allow the transmission of bursty data.Token is continuously admitted to fixed-size order with constant rate Board bucket, the rate are commonly referred to as flow control rate.If the speed that token is not consumed or is consumed is less than flow control rate, token It will be increasing, be filled up until bucket.The token being re-fed into below will be overflowed from bucket, can be saved most in last bucket Big token number is never more than the size of bucket.The message for being transmitted to token bucket needs to consume token.Different size of message disappears The token quantity of consumption is different.This controlling mechanism of token bucket is indicated when based on whether there is token in token bucket It can be with transmitted traffic.If there are tokens in token bucket, allow transmitted traffic;If token is not present in token bucket, no Allow transmitted traffic.
Embodiment one:
As shown in Fig. 2, for a kind of this request flow control methods proposed by the present invention, which is characterized in that including following step It is rapid:
Monitor unit time current network message request;
Based on monitoring result, start corresponding flow control policy.
Wherein, when unit time current network message request quantity is more than a certain threshold value, with first rate to token bucket Token is stored, while starting the first control strategy.
Wherein, first control strategy are as follows:
Preset question and answer topic is read, the question and answer topic is sent to requesting party;
Based on requesting party's response results, response is controlled.
Wherein, when unit time current network message request quantity be less than or equal to a certain threshold value when, with the second rate to Token bucket stores token.
Wherein, the first rate is greater than second rate.
Wherein, described to be based on requesting party's response results, control response includes:
It receives requesting party and is directed to the answer that the question and answer topic uploads;
If the answer is correct, the request of response mobile terminal submission.
Wherein, described to be based on requesting party's response results, control response further include:
It receives requesting party and is directed to the answer that the question and answer topic uploads;
If the answer mistake reads new question and answer topic, new question and answer topic is sent to requesting party.
Wherein, if the described answer is correct, the request that response mobile terminal is submitted is specifically included:
If the answer is correct, token request instruction is generated, requests token to preset token module;
Receive the request results that token module returns;
When the request results include token, the request that the requesting party submits is responded;
When the request results include error message, the request that the requesting party submits is intercepted.
Wherein, the request results are handled to obtain by the token module to the token request instruction, specific to wrap It includes:
When token module receives token request, token volume residual is read;
When the token volume residual is greater than 0, token volume residual subtracts 1, returns to the request results comprising token;
When the token volume residual is equal to 0, the request results comprising error message are returned.
Embodiment two: a kind of request flow control methods, referring to fig. 2, comprising the following steps:
S1: when receiving the request of mobile terminal submission, preset question and answer topic is read, the question and answer topic is sent To mobile terminal;
Specifically, by taking panic buying as an example, in the existing network platform, in the moment that panic buying starts, flow is almost to arrive moment Up to high peak flow, there is the form being packed.This method can first receive a question and answer topic when user submits request, User needs by simple thinking and fill out answers, since user's think time and fill in the time have biggish difference. This method compared to it is existing after filing a request directly in response to method, the time point for enabling to user that request is submitted to reach It is dispersed in a time interval, the peak to call request is made to be cut relatively gentle.
Wherein requesting party is mobile terminal.
Exam pool can be set in this method, and a plurality of question and answer topic is stored in exam pool.Question and answer topic can be according to different nets Network platform is configured.This method can also be timed exam pool or sporadically update.
S2: when receiving the answer that mobile terminal is uploaded for the question and answer topic, what response mobile terminal was submitted is asked It asks.
This method just responds the request that mobile terminal is submitted after the answer for receiving user's upload.If not receiving use When the answer duration that family uploads is more than preset time, the request of mobile terminal submission can be intercepted.
The time difference that this method is answered a question using different user, it is gentle for a period of time that instantaneous flow peak, which is cut, Flow, to realize the purpose of control flow.
Preferably, described when receiving the answer that mobile terminal is uploaded for the question and answer topic, respond mobile terminal The request of submission specifically includes:
It receives mobile terminal and is directed to the answer that the question and answer topic uploads;
If the answer is correct, the request of response mobile terminal submission;
If the answer mistake reads new question and answer topic, new question and answer topic is sent to mobile terminal.
Specifically, after user uploads answer, it is also necessary to judge whether answer is correct, only answer correct situation Under, just respond the request that mobile terminal is submitted.If user upload answer be it is wrong, asked it is required that user answers again Topic can be and answer again question and answer topic wrong before, can also answer new question and answer topic, until returning Until answering correctly.Thus can further flow be distributed in bigger time interval.
Preferably, if the described answer is correct, the request that response mobile terminal is submitted is specifically included:
If the answer is correct, token request instruction is generated, requests token to preset token module;
Receive the request results that token module returns;
When the request results include token, the request that the mobile terminal is submitted is responded;
When the request results include error message, the request that the mobile terminal is submitted is intercepted.
Specifically, this method also increases token request function in the function of question and answer.If the answer that user uploads is just Really, it is also necessary to request token to token module, when token module returns to token, just respond the request of user submission.Token It can be access token.If including error message in the appealing structure returned, illustrate that the token in token module has been used up, no It can continue to access.
In this way, this method is controlled by flow of the token module to operation system, control flow is further realized Purpose.When the flow for being actually reached operation system reaches maximum value, the request of the operation system is just intercepted, is no longer responded, energy Enough accurately control reaches the flow of operation system.
Preferably, the request results are handled to obtain by the token module to the token request instruction, specifically Include:
When token module receives token request, token volume residual is read;
When the token volume residual is greater than 0, token volume residual subtracts 1, returns to the request results comprising token;
When the token volume residual is equal to 0, the request results comprising error message are returned.
Specifically, token volume residual reflects the quantity of remaining token in token module.When token module receives order When board is requested, it is first determined whether there are also remaining tokens.If token volume residual is greater than 0, illustrate that there are also remaining tokens, at this time A token is returned to user, token volume residual reduces 1.If token volume residual is equal to 0, illustrate the token in token module It has been used up, needs to intercept the request of mobile terminal submission.
Embodiment three:
As shown in figure 3, being a kind of request flow control system proposed by the present invention characterized by comprising
Monitoring unit is used to monitor unit time current network message request;
Strategy control unit is used to start corresponding flow control policy based on monitoring result.Preferably, the plan Slightly control unit is specifically used for:
It receives requesting party and is directed to the answer that the question and answer topic uploads;
If the answer is correct, the request of respond request side's submission;
If the answer mistake reads new question and answer topic, new question and answer topic is sent to requesting party.
Preferably, the strategy control unit is specifically used for:
If the answer is correct, token request instruction is generated, requests token to preset token module;
Receive the request results that token module returns;
When the request results include token, the request that the requesting party submits is responded;
When the request results include error message, the request that the requesting party submits is intercepted.
Preferably, the request results are handled to obtain by the token module to the token request instruction, specifically Include:
When token module receives token request, token volume residual is read;
When the token volume residual is greater than 0, token volume residual subtracts 1, returns to the request results comprising token;
When the token volume residual is equal to 0, the request results comprising error message are returned.
Example IV:
A kind of request flow control system, referring to Fig. 3, comprising:
Receiving unit: for reading preset question and answer topic, being asked described when receiving the request of mobile terminal submission Answer mesh is sent to mobile terminal;
Response unit: mobile whole for responding when receiving the answer that mobile terminal is uploaded for the question and answer topic Hold the request submitted.
Preferably, the response unit is specifically used for:
It receives mobile terminal and is directed to the answer that the question and answer topic uploads;
If the answer is correct, the request of response mobile terminal submission;
If the answer mistake reads new question and answer topic, new question and answer topic is sent to mobile terminal.
Preferably, the response unit is specifically used for:
If the answer is correct, token request instruction is generated, requests token to preset token module;
Receive the request results that token module returns;
When the request results include token, the request that the mobile terminal is submitted is responded;
When the request results include error message, the request that the mobile terminal is submitted is intercepted.
Preferably, the request results are handled to obtain by the token module to the token request instruction, specifically Include:
When token module receives token request, token volume residual is read;
When the token volume residual is greater than 0, token volume residual subtracts 1, returns to the request results comprising token;
When the token volume residual is equal to 0, the request results comprising error message are returned.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware With the interchangeability of software, each exemplary composition and step are generally described according to function in the above description.This A little functions are implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Specially Industry technical staff can use different methods to achieve the described function each specific application, but this realization is not It is considered as beyond the scope of this invention.
In several embodiments provided herein, it should be understood that disclosed system can be by others side Formula is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only one Kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or It is desirably integrated into another system, or some features can be ignored or not executed.In addition, shown or discussed is mutual Coupling, direct-coupling or communication connection can be through some interfaces, the indirect coupling or communication connection of device or unit, It is also possible to electricity, mechanical or other form connections.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.Some or all of unit therein can be selected to realize the embodiment of the present invention according to the actual needs Purpose.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, is also possible to two or more units and is integrated in one unit.It is above-mentioned integrated Unit both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the present invention Portion or part steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journey The medium of sequence code.
System provided by the embodiment of the present invention, to briefly describe, embodiment part does not refer to place, can refer to aforementioned side Corresponding contents in method embodiment.
Embodiment five:
A kind of terminal, referring to fig. 4, including processor 801, input equipment 802, output equipment 803 and memory 804, institute It states processor 801, input equipment 802, output equipment 803 and memory 804 to be connected with each other by bus 805, wherein described to deposit Reservoir 804 is for storing computer program, and the computer program includes program instruction, and the processor 801 is configured for Described program instruction is called, method described in embodiment one is executed.
Wherein, requesting party is mobile terminal.
In the specific implementation, terminal described in the embodiment of the present invention is including but not limited to such as with touch sensitive surface The mobile phone, laptop computer or tablet computer of (for example, touch-screen display and/or touch tablet) etc it is other just Portable device.It is to be further understood that in certain embodiments, the equipment is not portable communication device, but there is touching Touch the desktop computer of sensing surface (for example, touch-screen display and/or touch tablet).
In following discussion, the terminal including display and touch sensitive surface is described.It is, however, to be understood that It is that terminal may include one or more of the other physical user-interface device of such as physical keyboard, mouse and/or control-rod.
Terminal supports various application programs, such as one of the following or multiple: drawing application program, demonstration application journey Sequence, word-processing application, website create application program, disk imprinting application program, spreadsheet applications, game application Program, telephony application, videoconference application, email application, instant messaging applications, exercise Support application program, photo management application program, digital camera application program, digital camera application program, web-browsing application Program, digital music player application and/or video frequency player application program.
The various application programs that can be executed at the terminal can be used such as touch sensitive surface at least one is public Physical user-interface device.It can adjust and/or change among applications and/or in corresponding application programs and touch sensitive table The corresponding information shown in the one or more functions and terminal in face.In this way, the public physical structure of terminal is (for example, touch Sensing surface) it can support the various application programs with user interface intuitive and transparent for a user.
It should be appreciated that in embodiments of the present invention, alleged processor 801 can be central processing unit (Central Processing Unit, CPU), which can also be other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic Device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor or this at Reason device is also possible to any conventional processor etc..
Input equipment 802 may include that Trackpad, fingerprint adopt sensor (for acquiring the finger print information and fingerprint of user Directional information), microphone etc., output equipment 803 may include display (LCD etc.), loudspeaker etc..
The memory 804 may include read-only memory and random access memory, and to processor 801 provide instruction and Data.The a part of of memory 804 can also include nonvolatile RAM.For example, memory 804 can also be deposited Store up the information of device type.
Terminal provided by the embodiment of the present invention, to briefly describe, embodiment part does not refer to place, can refer to aforementioned side Corresponding contents in method embodiment.
Embodiment six:
A kind of computer readable storage medium, the computer storage medium are stored with computer program, the computer Program includes program instruction, and described program instruction makes the processor execute side described in embodiment one when being executed by a processor Method.
The computer readable storage medium can be the internal storage unit of terminal described in aforementioned any embodiment, example Such as the hard disk or memory of terminal.The computer readable storage medium is also possible to the External memory equipment of the terminal, such as The plug-in type hard disk being equipped in the terminal, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..Further, the computer readable storage medium can also be wrapped both The internal storage unit for including the terminal also includes External memory equipment.The computer readable storage medium is described for storing Other programs and data needed for computer program and the terminal.The computer readable storage medium can be also used for temporarily When store the data that has exported or will export.
Medium provided by the embodiment of the present invention, to briefly describe, embodiment part does not refer to place, can refer to aforementioned side Corresponding contents in method embodiment.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Pipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according to So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution The range of scheme should all cover within the scope of the claims and the description of the invention.

Claims (10)

1. a kind of request flow control methods, which comprises the following steps:
Monitor unit time current network message request;
Based on monitoring result, start corresponding flow control policy.
2. requesting flow control methods according to claim 1, which is characterized in that when unit time current network message request When quantity is more than a certain threshold value, token is stored to token bucket with first rate, while starting the first control strategy.
3. requesting flow control methods according to claim 2, which is characterized in that first control strategy are as follows:
Preset question and answer topic is read, the question and answer topic is sent to requesting party;
Based on requesting party's response results, response is controlled.
4. requesting flow control methods according to claim 2, which is characterized in that when unit time current network message request When quantity is less than or equal to a certain threshold value, token is stored to token bucket with the second rate.
5. requesting flow control methods according to claim 4, which is characterized in that the first rate is greater than second speed Rate.
6. requesting flow control methods according to claim 3, which is characterized in that described to be based on requesting party's response results, control Response processed includes:
It receives requesting party and is directed to the answer that the question and answer topic uploads;
If the answer is correct, the request of response mobile terminal submission.
7. requesting flow control methods according to claim 3, which is characterized in that described to be based on requesting party's response results, control Response processed further include:
It receives requesting party and is directed to the answer that the question and answer topic uploads;
If the answer mistake reads new question and answer topic, new question and answer topic is sent to requesting party.
8. a kind of request flow control system characterized by comprising
Monitoring unit is used to monitor unit time current network message request;
Strategy control unit is used to start corresponding flow control policy based on monitoring result.
9. a kind of terminal, which is characterized in that the processor, defeated including processor, input equipment, output equipment and memory Enter equipment, output equipment and memory to be connected with each other, wherein the memory is for storing computer program, the computer Program includes program instruction, and the processor is configured for calling described program instruction, is executed such as any one of claim 1-7 The method.
10. a kind of computer readable storage medium, which is characterized in that the computer storage medium is stored with computer program, The computer program includes program instruction, and described program instruction makes the processor execute such as right when being executed by a processor It is required that the described in any item methods of 1-7.
CN201910403156.7A 2019-05-15 2019-05-15 Request flow control methods, system, terminal and medium Withdrawn CN110138677A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910403156.7A CN110138677A (en) 2019-05-15 2019-05-15 Request flow control methods, system, terminal and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910403156.7A CN110138677A (en) 2019-05-15 2019-05-15 Request flow control methods, system, terminal and medium

Publications (1)

Publication Number Publication Date
CN110138677A true CN110138677A (en) 2019-08-16

Family

ID=67574196

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910403156.7A Withdrawn CN110138677A (en) 2019-05-15 2019-05-15 Request flow control methods, system, terminal and medium

Country Status (1)

Country Link
CN (1) CN110138677A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112822080A (en) * 2020-12-31 2021-05-18 中国人寿保险股份有限公司上海数据中心 Bus system based on SOA architecture
CN114641033A (en) * 2022-05-09 2022-06-17 上海大汉三通通信股份有限公司 5G message push speed control method, device, equipment and medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112822080A (en) * 2020-12-31 2021-05-18 中国人寿保险股份有限公司上海数据中心 Bus system based on SOA architecture
CN112822080B (en) * 2020-12-31 2022-09-16 中国人寿保险股份有限公司上海数据中心 Bus system based on SOA architecture
CN114641033A (en) * 2022-05-09 2022-06-17 上海大汉三通通信股份有限公司 5G message push speed control method, device, equipment and medium

Similar Documents

Publication Publication Date Title
CN107395665A (en) A kind of block chain service handling and business common recognition method and device
CN107508860A (en) One kind service current-limiting method, server and terminal
CN107371146A (en) A kind of method and terminal for selecting short message channel
CN107426322A (en) A kind of PUSH message target matching method, server, terminal and computer-readable recording medium
CN109636278A (en) Material replenishing method, material goods compensator and terminal device
CN108111554A (en) A kind of control method and device of access queue
CN107239987A (en) Order processing method and device
CN106685997A (en) Method and terminal for transmitting data
CN107491300A (en) The reminding method and its terminal of a kind of intelligent function
CN110138677A (en) Request flow control methods, system, terminal and medium
CN108153795B (en) Data processing method, system and device for electronic red packet
CN108804175A (en) Multilingual adaptation method, mobile terminal and computer readable storage medium
CN107479806A (en) The method and terminal of a kind of changing interface
CN108366091A (en) Network request processing method, terminal and computer-readable medium
CN107506494B (en) Document handling method, mobile terminal and computer readable storage medium
CN112734498A (en) Task reward acquisition method, device, terminal and storage medium
CN108289028A (en) A kind of signature authentication method, relevant device and computer readable storage medium
CN110472757A (en) Data processing method and device for bank outlets' changing money
CN108520186A (en) Record screen method, mobile terminal and computer readable storage medium
CN106775835A (en) Obtain method, server and the terminal of upgrade file
CN108427620A (en) Information processing method, mobile terminal and computer readable storage medium
CN107609119A (en) Document handling method, mobile terminal and computer-readable recording medium
CN107463379A (en) Interface switching method and device, computer installation and computer-readable recording medium
CN106874085A (en) A kind of management method and terminal for opening application certainly
CN107302563A (en) A kind of method and terminal for opening web page interlinkage

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20190816