---
title: "Discussion on \"Designing a Rate Limiter for SDE-2 Interviews: Token Bucket vs Sliding Window, With the Trade-offs Spelled Out\" | Hashnode"
description: "Discussion on \"Designing a Rate Limiter for SDE-2 Interviews: Token Bucket vs Sliding Window, With the Trade-offs Spelled Out\". Four algorithms, where the counter lives, what happens when Redis is slow, and how to talk through it all in 35 minutes"
url: "https://hashnode.com/posts/designing-a-rate-limiter-for-sde-2-interviews-token-bucket-vs-sliding-window-with-the-trade-offs-spelled-out/6ae5d1017d3e4f3aca1ae19f"
---

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

Discussion

# [Designing a Rate Limiter for SDE-2 Interviews: Token Bucket vs Sliding Window, With the Trade-offs Spelled Out](https://devinterviewmasterhq.hashnode.dev/designing-a-rate-limiter-for-sde-2-interviews-token-bucket-vs-sliding-window-with-the-trade-offs-spelled-out?utm_source=hashnode&utm_medium=feed)

Four algorithms, where the counter lives, what happens when Redis is slow, and how to talk through it all in 35 minutes

Oct 31 · 10 min read · devinterviewmasterhq.hashnode.dev  
Read the article

-   [#system-design](https://hashnode.com/tag/system-design)
-   [#interview-preparation](https://hashnode.com/tag/interview-preparation)
-   [#backend](https://hashnode.com/tag/backend)
-   [#distributed-systems](https://hashnode.com/tag/distributed-systems)
-   [#redis](https://hashnode.com/tag/redis)

## Written by

[DevInterviewMaster](https://hashnode.com/@devinterviewmaster)

@devinterviewmaster

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

AI tutor for tech interviews, in English or Hinglish

AI tutor for tech interviews, in English or Hinglish. https://devinterviewmaster.com

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
