Design Per-Client Rate Limiting for a Card Platform API
Last updated: November 29, 2026
Quick Overview
Design rate limiting for a Galileo style card processing API used by many fintech clients: enforce per-client and per-endpoint quotas, return clear limit headers, and keep the limiter from becoming a single point of failure.
SoFi
November 29, 20260
0
0 solved
Design rate limiting for a Galileo style card processing API used by many fintech clients: enforce per-client and per-endpoint quotas, return clear limit headers, and keep the limiter from becoming a single point of failure.
SoFi's Galileo platform exposes APIs to many fintech program managers, and one client's bulk job must not starve another's live card traffic. In a phone screen the interviewer checks a clear algorithm choice, distributed counter design, and sensible failure behavior.
What the Interviewer Expects
- Chooses an algorithm (token bucket or sliding window) and explains the trade-off
- Keys limits by client id and endpoint class, with separate budgets for critical paths
- Uses a shared store such as Redis with atomic operations
- Returns 429 with Retry-After and remaining-quota headers
- Decides fail-open versus fail-closed per endpoint
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- How would you give a client a temporary quota increase during a launch?
- How do you rate limit when the gateway runs in three regions?
- Should authorization traffic from card networks ever be rate limited?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
Per-client limits (for example 500 requests/s for account APIs), stricter limits on expensive endpoints such as bulk card issuance, bursts allowed briefly, decisions in under 1 ms of added latency, an...
High-Level Design
The API gateway calls a limiter middleware before routing. Limits are loaded from a config service and cached locally. Counters live in a Redis cluster keyed rl:{client}:{endpoint_class}. The middle...