Micro Services Gateway common limiting algorithm

There are three commonly used algorithms: a counter algorithm, the most commonly used algorithms funnel bucket, token bucket algorithm, the market is the last one

First: counter algorithm

 

 

 He maintained that the largest volume of requests per unit of time, and therefore in extreme cases can cause jitter Services

 Second: funnel bucket algorithm that protects the back-end micro-service, but will likely cause micro-services gateway pressure surge

 

 

 

 

 

 Third: token bucket algorithm

Token bucket algorithm with respect to the funnel bucket algorithm, in fact, one less output rate setting, he compared with the funnel bucket algorithm, mainly to protect their own gateway, because the gateway will appear in the actual application scene is crucial, so big limiting portion of the algorithm will choose a token bucket algorithm

 

 

 

Guess you like

Origin www.cnblogs.com/hopeiscoming/p/12297528.html