---
title: "Sliding window rate limiter"
description: "Count what a caller was admitted in the last period: what belongs in the window, the expiry boundary, an atomic decision, compressed history, and Redis."
canonical_url: "https://fanout.sh/system/archive/sliding-window-rate-limiter"
md_url: "https://fanout.sh/system/archive/sliding-window-rate-limiter.md"
last_updated: "2026-11-11"
access: "pro-preview"
---

# Sliding window rate limiter

Count what a caller was admitted in the last period: what belongs in the window, the expiry boundary, an atomic decision, compressed history, and Redis.

- Access: Fanout Pro (public preview)

## The core idea

A sliding-window limiter checks how much a caller has been admitted during the most recent period.

The window moves with each decision.

## In this lesson

- What belongs inside the window
- Try the expiry boundary
- Make the decision atomic
- Compressing the history into seconds
- Redis and the response contract

## Continue reading

Pro unlocks video lessons, visual walkthroughs, full notes, diagrams, case studies, and implementations across the System Design archive.

---
This representation contains public Fanout content only. Protected Pro lessons, account data, billing, checkout, and pricing are not included.

Browse the public content map: https://fanout.sh/sitemap.md
