Design Login Rate Limiting for the Chase Mobile App
Last updated: November 29, 2026
Quick Overview
Design a rate limiter that protects the Chase mobile and web login endpoint from credential stuffing while keeping legitimate customers able to sign in, with limits per account, per device and per IP.
J.P. Morgan
November 29, 20260
0
0 solved
Design a rate limiter that protects the Chase mobile and web login endpoint from credential stuffing while keeping legitimate customers able to sign in, with limits per account, per device and per IP.
J.P. Morgan system design rounds for consumer and cybersecurity engineering often start with an approachable design tied to Chase digital banking, which has tens of millions of active mobile users. The interviewer checks that you pick a sensible algorithm, keep counters in a shared low-latency store, and think about attackers rotating IPs rather than only about request volume.
What the Interviewer Expects
- Separate keys: per username, per device fingerprint, per IP or subnet
- Choose token bucket or sliding window and justify it
- Store counters in a replicated in-memory store with TTLs
- Define the response: step-up MFA or CAPTCHA before a hard block
- Avoid letting the limiter become a lockout tool against real customers
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 detect a distributed attack that stays under every per-IP limit?
- What happens if the Redis cluster is unreachable: fail open or fail closed?
- How do you keep limits consistent across two data centers?
- How would you tune thresholds without locking out customers on shared corporate IPs?
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
Functional: decide allow, challenge or deny for each login attempt within a few milliseconds; limit failed attempts per account, per device and per IP; let support unlock accounts. Non-functional: pea...
High-Level Design
Login requests hit the API gateway, which calls a rate-limit service before the authentication service. The service checks several counters in a Redis cluster: failed attempts per username (for exampl...