Supercharge Your Innovation With Domain-Expert AI Agents!

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.

Active Publication Date: 2018-01-30
CAINIAO SMART LOGISTICS HLDG LTD
View PDF4 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The existing stand-alone flow control methods have at least the following problems: instantaneous and long-term large flow may cause system paralysis, resulting in reduced stability; uneven soft load causes the flow of individual machines in the cluster to exceed the above maximum and cause accidental killing; low threshold, Large clusters cannot effectively control flow; there is no fault tolerance mechanism, etc.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Flow control method and flow control system
  • Flow control method and flow control system
  • Flow control method and flow control system

Examples

Experimental program
Comparison scheme
Effect test

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.

[...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a flow control method and a flow control system. The flow control method comprises the steps of receiving a logistics data processing request within a first time period; determining whether the request number within the first time period exceeds a first threshold value which can be executed within the first time period or not; determining whether the request number exceeding the first threshold value exceeds the waiting threshold value or not, when it is determined that the request number exceeds the first threshold value; adding the request which exceeds the first threshold value and does not exceed the waiting threshold value into a waiting queue, when the number of the request exceeding the first threshold value does not exceed the waiting threshold value; rejecting the request exceeding the waiting threshold value, when the number of request exceeding the first threshold value exceeds the waiting threshold value. The invention is advantageous in that throughsetting the waiting queue, higher instant flow can be accommodated, and the problem of the prior art that the request exceeding the hot spot queue is directly rejected can be prevented.

Description

technical field [0001] The present application relates to the Internet field, and in particular to a flow control method and a flow control system. Background technique [0002] In Internet business, the stability of the e-commerce system and the timeliness of response are important factors that determine the quality of user experience. And at a specific time, such as during the "Double Eleven" period, a large number of users may submit requests to the server at the same time, resulting in a large peak traffic. The direct impact of high peak traffic on the business system will cause problems such as instantaneous system paralysis, exhaustion of database connections, slow processing of application containers, and even process death, which poses great challenges to system stability and performance. [0003] In the prior art, a single-machine flow control method is usually used to control the flow. The main idea of ​​stand-alone flow control is to limit a maximum flow for eac...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): H04L12/823H04L12/863G06Q50/28H04L47/32
Inventor 张宗宝
Owner CAINIAO SMART LOGISTICS HLDG LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More