NoCache

Preview of Set Up Rate Limiting with Leaky Bucket Algorithm in Nginx

Set Up Rate Limiting with Leaky Bucket Algorithm in Nginx

Cyrus Kao

Nginx came with a rate limit module called ngx_http_limit_req_module, which is quite handy for throttling harmful requests like DoS attack. And the module uses the leaky bucket algorithm to handle the connections. It could allow a certain amount of burst requests in a short period of time to suit the use cases.