Rate limiter and its algorithms with illustrations

<p><em>At times when there is lot of traffic on our system either</em>&nbsp;<em>resources exhausts or need to increase servers to fulfil requests. At this point Rate Limiter is the saviour, let&rsquo;s talk about this in depth over here.</em></p> <p><img alt="" src="https://miro.medium.com/v2/resize:fit:700/0*Eq7D74k9V4xBabnL" style="height:278px; width:700px" /></p> <h1>What is a Rate Limiter?</h1> <p>A rate limiter controls the amount of traffic sent by a client or service in a network system. It limits the number of client requests allowed to be sent over a specified period. If the number of API requests exceeds the rate limiter&rsquo;s threshold, all extra calls are denied.</p> <p>Above we saw a use-case and a benefit of rate limiter, there are many other benefits as well:-</p> <ul> <li>Prevent resource starvation caused by&nbsp;<a href="https://www.paloaltonetworks.com/cyberpedia/what-is-a-denial-of-service-attack-dos" rel="noopener ugc nofollow" target="_blank">Denial of Service (DoS)</a>&nbsp;attack.</li> <li>Excess requests are limited, which means fewer servers are needed and more resources are allocated to high-priority APIs.</li> <li>Ensure that servers are not overburdened. A rate limiter is used to reduce server load by filtering out excessive requests caused by bots or user misbehaviour.</li> </ul> <p><a href="https://tech.groww.in/rate-limiter-and-its-algorithms-with-illustrations-564455162935"><strong>Visit Now</strong></a></p>
Tags: Rate limiter