Design Ramp's Real-Time Card Authorization Decision Service
Last updated: November 29, 2026
Quick Overview
Design the service that receives card authorization requests from the card network or issuing processor and returns approve or decline within a strict latency budget, enforcing per-card and per-department limits, merchant restrictions and policy rules.
Ramp
November 29, 20260
0
0 solved
Design the service that receives card authorization requests from the card network or issuing processor and returns approve or decline within a strict latency budget, enforcing per-card and per-department limits, merchant restrictions and policy rules.
Ramp's corporate cards are defined by their controls: limits per card, per user and per department, merchant category locks, and receipt policies, all evaluated live at swipe time. The interviewer is checking whether you can hit a sub-second budget with strong correctness on spend counters, design safe fallbacks when dependencies fail, and keep an auditable ledger of holds and settlements.
What the Interviewer Expects
- Clarifies latency budget, volume, and which checks must be strongly consistent
- Keeps the hot path small: a cached card and policy snapshot plus atomic counter updates
- Models holds, incremental authorizations, reversals and settlement in a ledger
- Defines stand-in behavior when the service or a dependency is down
- Handles idempotent retries from the network
- Separates synchronous decisions from asynchronous work like notifications and receipt nudges
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 enforce a department budget shared by thousands of cards without a hot row?
- What does the processor do if you do not answer in time, and how do you configure that?
- How would you add a fraud model without blowing the latency budget?
- How do you reconcile your holds with the network's clearing files?
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 approve or decline for each authorization, enforce card, user and department limits over intervals (daily, monthly), merchant category and merchant allow and block lists, and policy...
High-Level Design
Processor webhook -> Auth Gateway (TLS, signature check, idempotency on network auth id) -> Decision Engine. The engine loads a card snapshot (status, limits, merchant rules, owner, depart...