---
title: "Discussion on \"How to Design a Rate Limiter: Token Bucket vs. Leaky Bucket Explained\" | Hashnode"
description: "Discussion on \"How to Design a Rate Limiter: Token Bucket vs. Leaky Bucket Explained\". Introduction\nA rate limiter is a mechanism that is used to control the number of requests an entity (user, API client, service) can make within a specific timeframe. Rate limiters have two primary responsibilities:\n\nProtect servers against excessive ..."
url: "https://hashnode.com/posts/how-to-design-a-rate-limiter-token-bucket-vs-leaky-bucket-explained/67b3c0580d2fd83cf709c267"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to Design a Rate Limiter: Token Bucket vs. Leaky Bucket Explained](https://bit-by-bit.hashnode.dev/how-to-design-a-rate-limiter-token-bucket-vs-leaky-bucket-explained?utm_source=hashnode&utm_medium=feed)

Introduction A rate limiter is a mechanism that is used to control the number of requests an entity (user, API client, service) can make within a specific timeframe. Rate limiters have two primary responsibilities: Protect servers against excessive ...

Feb 17, 2025 · 4 min read · bit-by-bit.hashnode.dev  
Updated Mar 10, 2025  
Read the article

-   [#software-development](https://hashnode.com/tag/software-development)
-   [#ratelimit](https://hashnode.com/tag/ratelimit)
-   [#rate-limiting](https://hashnode.com/tag/rate-limiting)
-   [#rate-limit](https://hashnode.com/tag/rate-limit)
-   [#programming](https://hashnode.com/tag/programming)
-   [#software-engineering](https://hashnode.com/tag/software-engineering)
-   [#distributed-system](https://hashnode.com/tag/distributed-system)
-   [#system-design](https://hashnode.com/tag/system-design)
-   [#system-architecture](https://hashnode.com/tag/system-architecture)

## Written by

[Saumil Hukerikar](https://hashnode.com/@saumilhukerikar)

@saumilhukerikar

  
[View profile](https://hashnode.com/@saumilhukerikar)

Experienced Backend Distributed System

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
