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.

Preview of Build an IP Based Rate Limiting Module in Node.js with Typescript

Build an IP Based Rate Limiting Module in Node.js with Typescript

Cyrus Kao

I recently wrote a very simple IP address based rate limit module called rt-limit to throttle requests for this blog. Although rate limiting is more commonly done on reverse proxies like Nginx and Apache, being able to manage traffic on your own back-end server is always more flexible.