Flow control method and flow control system
A flow control and flow technology, applied in the Internet field, can solve the problems that large clusters cannot effectively control flow, have no fault tolerance mechanism, and reduce stability, and achieve good support, increase response time, and good instantaneous peak flow.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
no. 1 example
[0041] figure 1 Shown is a flow chart of the flow control method in the first embodiment of the present application. Such as figure 1 As shown, the first embodiment of the present application proposes a flow control method, which includes the following steps:
[0042] S101, receiving a request for logistics data processing within a first time period;
[0043] In this step, the first time period is, for example, the first second. The server (for example, the server) can obtain multiple logistics data processing requests generated by multiple clients within the first time period through RPC calls or other means. For example, when the client sends a request for logistics data processing (for example, the customer places an order for a commodity on an e-commerce platform), the request enters the corresponding service interface (the service interface can be the The interface corresponding to the request entered and initiated by the link), the server can obtain multiple requests...
no. 2 example
[0064] figure 2 Shown is a flow chart of the flow control method in the second embodiment of the present application. Such as figure 2 As shown, the second embodiment of the present application proposes a flow control method, which includes the following steps:
[0065] S201. Receive a logistics data processing request within a first time period;
[0066] S202, judging whether the number of the requests within the first time period exceeds a first threshold that can be executed within the first time period;
[0067] S203. When it is judged that the number of requests exceeds the first threshold, judge whether the number of requests exceeding the first threshold exceeds the waiting threshold;
[0068] S204. When the number of requests exceeding the first threshold does not exceed the waiting threshold, add the requests exceeding the first threshold and not exceeding the waiting threshold to a waiting queue;
[0069] Optionally, this embodiment may also include:
[0070] ...
no. 3 example
[0091] The third embodiment of the present application proposes a flow control method. On the basis of steps S101 to S106 in the first embodiment, or on the basis of steps S201 to S206 in the second embodiment, the method may further include the following steps :
[0092] S313, calculate the flow rate; and
[0093] S314. Determine whether the flow reaches the flow warning threshold.
[0094]In the above steps, traffic refers to the number of requests per unit time, and the traffic in this time period can be calculated by dividing the number of requests in a specific time period by the duration of the time period. Step S313, that is, the step of calculating the flow rate, may include, for example, the following two methods:
[0095] S313a, calculate the traffic according to the number of requests in the current time period; or
[0096] S313b. Calculate traffic according to the number of requests in the previous N time periods; where N is a natural number greater than 2.
[...
PUM

Abstract
Description
Claims
Application Information

- R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com