Design a Rate-Limited Public API

Design a Rate-Limited Public API

Multi-tenant fairness under abuse
Free
3h · 5 lessons
Overview

Each one worked end to end: requirements, estimates, the first diagram, the bottleneck that appears at scale, and the two or three deep dives an interviewer will push you into.

This module is 07.4 of the 6 in Design Case Studies. It runs about 3 hours across 5 lessons, and closes with Tenant — One customer is sending 90% of the traffic. Keep the other 4,000 inside their SLO.

Lessons
1. Requirements, tiers and the fairness goal

Case study · 25 minutes

2. Where the limiter sits, and why

Case study · 35 minutes

3. Distributed counting without a hot shard

Case study · 40 minutes

4. Keys, tenants and the noisy neighbour

Case study · 30 minutes

5. Quotas, billing and the overage path

Case study · 30 minutes

Module information
Duration
3 hours
Lessons
5
Level
Advanced
Track
Design Case Studies
Drill
Tenant
Price
Free

Related modules

Design a Video Platform
4 hours
5 lessons
Advanced
Design a Video Platform
Free
07.5
Design a Payment System
4 hours
5 lessons
Advanced
Design a Payment System
Free
07.6
Design a URL Shortener
3 hours
5 lessons
Advanced
Design a URL Shortener
Free
07.1
Design a News Feed
4 hours
5 lessons
Advanced
Design a News Feed
Free
07.2