Design Per-Account API Throttling for an AWS Control Plane

Last updated: November 29, 2026

Quick Overview

Design the throttling layer for an AWS service control plane (for example EC2 DescribeInstances and RunInstances) that enforces per-account, per-API request rates across a large regional fleet, returning ThrottlingException fairly and protecting the backend.

Amazon
System Design
Software Engineer
Amazon
November 29, 2026
Software Engineer
System Design Round
System Design
Hard

0

0

0 solved


Design the throttling layer for an AWS service control plane (for example EC2 DescribeInstances and RunInstances) that enforces per-account, per-API request rates across a large regional fleet, returning ThrottlingException fairly and protecting the backend.

AWS teams treat throttling as a core availability mechanism, so senior candidates get this in system design rounds. The interviewer checks distributed rate limiting accuracy versus latency, noisy neighbor protection, adaptive limits during backend distress, and how clients are expected to react.

What the Interviewer Expects
  • Define limit dimensions: account, API, region, and request cost
  • Choose an algorithm (token bucket) and where its state lives
  • Avoid a centralized hot path while staying reasonably accurate
  • Add load shedding that reacts to backend health
  • Explain client behavior: retries with backoff and jitter, retry quotas
Key Topics to Cover
Token Bucket
Distributed Rate Limiting
Load Shedding
Noisy Neighbor
Backoff and Jitter
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
  • How would you raise one large customer's limit without code changes?
  • What happens to accuracy when a fleet host fails or new hosts join?
  • How do you stop retry storms from making an outage worse?
  • How would you expose throttling metrics to customers?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements

Functional: per account and API, a sustained rate and burst (for example 100 requests per second with burst 200 for describes, lower for mutating calls); configurable overrides per account; throttled ...

High-Level Design

Requests hit a regional fleet of API front-end hosts behind load balancers. Each host runs an in-process limiter with token buckets keyed by (account, api). A Limits Config service distributes defau...


Submit Your Answer
Markdown supported