---
title: "Discussion on \"How to design a rate limiter\" | Hashnode"
description: "Discussion on \"How to design a rate limiter\". In a network system, a rate limiter is used to control the rate of traffic sent by a client or a service. In the HTTP world, a rate limiter limits the number of client requests allowed to be sent over a specified period. If the API request count exce..."
url: "https://hashnode.com/posts/how-to-design-a-rate-limiter/6136f980766bb761a23815a4"
---

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

Discussion

# [How to design a rate limiter](https://awsbuilder.hashnode.dev/how-to-design-a-rate-limiter?utm_source=hashnode&utm_medium=feed)

In a network system, a rate limiter is used to control the rate of traffic sent by a client or a service. In the HTTP world, a rate limiter limits the number of client requests allowed to be sent over a specified period. If the API request count exce...

Sep 7, 2021 · 14 min read · awsbuilder.hashnode.dev  
Read the article

-   [#interview](https://hashnode.com/tag/interview)
-   [#system-architecture](https://hashnode.com/tag/system-architecture)
-   [#design](https://hashnode.com/tag/design)

## Written by

[Salah Elhossiny](https://hashnode.com/@Salah856)

@Salah856 · Egypt

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

ML Specialist @Bullzaye.ai

AWS Community Builder, AWS ML Specialist, Full-Stack Developer

## Responses 1

Markdown supported · ⌘↵ to post

[Lalit](https://hashnode.com/@lalit2005)

[Sep 8, 2021](https://hashnode.com/posts/how-to-design-a-rate-limiter/6136f980766bb761a23815a4/comment/61383d608b7ef170483a02c0)

Nice article [Salah Elhossiny](https://hashnode.com/@Salah856). Learnt a lot from this blog. 👏

I was wondering if LRU a good option for rate limiting?

[Salah Elhossiny](https://hashnode.com/@Salah856)

[Sep 8, 2021](https://hashnode.com/posts/how-to-design-a-rate-limiter/6136f980766bb761a23815a4/comment/61383d608b7ef170483a02c0#reply-61383ffe83248670799c02b1)

Thanks for feedback. Yes LRU is very good option. You can check this npm package based on LRU [npmjs.com/package/ratelimit-lru](https://www.npmjs.com/package/ratelimit-lru)

[Lalit](https://hashnode.com/@lalit2005)

[Sep 8, 2021](https://hashnode.com/posts/how-to-design-a-rate-limiter/6136f980766bb761a23815a4/comment/61383d608b7ef170483a02c0#reply-61385a5c83248670799c0714)

Thanks [Salah Elhossiny](https://hashnode.com/@Salah856) 😁
