Stripe High-Level Design (HLD) Interview Questions
Idempotent payment gateways, double-entry ledgers & strict rate limiting. Practice each prompt in HLDArena's 60-second discrete-event simulator with p99 latency, availability, and cloud cost gates.
- Idempotency keys, atomic double-entry ledger invariants & zero lost cents
- Webhook delivery with exponential backoff, DLQs & per-tenant rate quotas
- Real-time fraud risk scoring and audit-grade immutable event logs
| Status | Code | Question | Difficulty | Max Pts |
|---|---|---|---|---|
| — | HLD-319 | Global Card Payment Authorization & Idempotent Retry Engine Design Stripe’s `Idempotency-Key` payment intent state machine ensuring client network retries NEVER double-charge a card even under database failover. | Hard | 1500 pts |
| — | HLD-404 | Idempotent Payment Ledger & Double-Entry Wallet Design a mission-critical double-entry wallet and payment transfer engine surviving payday settlement bursts, client retry storms, and primary database node crashes with zero double-spends. | Expert | 2000 pts |
| — | HLD-104 | Webhook & Transactional Notification Dispatcher Design an event-driven notification and webhook ingestion pipeline that buffers sudden merchant traffic bursts and tracks delivery state without losing events. | Easy | 500 pts |
| — | HLD-101 | Distributed API Rate Limiter & Quota Gateway Design a low-latency ingress rate-limiting tier enforcing per-tenant sliding-window and token-bucket quotas across stateless API gateways without adding tail latency. | Easy | 500 pts |
| — | HLD-309 | Inline Card Payment Fraud & Velocity Feature Store Design an ultra-low-latency feature store serving synchronous card-swipe velocity aggregates to fraud ML models on the live payment authorization path. | Hard | 1500 pts |
| — | HLD-401 | Low-Latency Equity Order Gateway & Risk Pre-Check Design a brokerage order-entry and buying-power pre-check engine handling market-open volatility bursts with strict per-account margin locking and symbol sequencing. | Expert | 2000 pts |
| — | HLD-413 | High-Frequency Crypto Margin Engine & Hot-Wallet Settlement Design Coinbase / Binance’s 24/7 perpetuals margin collateral engine and withdrawal hot-wallet ledger preventing race-condition double-withdrawals during flash crashes. | Expert | 2000 pts |
| — | HLD-211 | SaaS Usage-Based API Metering & Spend Aggregator Design a high-throughput usage metering pipeline counting billable API tokens and compute units per tenant while serving real-time billing dashboard queries. | Medium | 1000 pts |
| — | HLD-122 | Multi-Tenant Secrets & Envelope Encryption Vault Design a HashiCorp Vault / AWS Secrets Manager service serving encrypted database credentials and API keys during serverless cold-start bursts. | Easy | 500 pts |
| — | HLD-113 | Immutable Enterprise Compliance Audit Log Sink Design an append-only compliance audit trail pipeline capturing administrative actions across SaaS tenants and serving recent security log queries. | Easy | 500 pts |
| — | HLD-112 | Global Currency FX Exchange Rate Ticker API Design a read-intensive currency conversion rate API queried by global e-commerce checkout pages during central-bank rate announcements. | Easy | 500 pts |
| — | HLD-114 | SMS & Email One-Time Passcode (OTP) Verifier Design a short-TTL one-time passcode generation and verification service handling sudden mobile re-authentication waves. | Easy | 500 pts |
| — | HLD-304 | Real-Time Ad Click Attribution & Budget Pacing Design an ad-tech click ingestion and real-time campaign spend-pacing pipeline preventing exhausted ad budgets from continuing to serve billable impressions. | Hard | 1500 pts |
| — | HLD-410 | Real-Time Bidding (RTB) Ad Exchange & 45ms Budget Pacer Design Google AdX / The Trade Desk’s ultra-low-latency ad auction and campaign budget pacing tier enforcing strict p99 <= 45ms deadlines without overspending advertiser daily caps. | Expert | 2000 pts |
| — | HLD-414 | Anycast L7 WAF, Bot Reputation & Global Token-Bucket Edge Design Cloudflare / Akamai’s global L7 Web Application Firewall evaluating JA4 TLS fingerprints, dynamic WAF rulesets, and distributed rate limits at 280k+ RPS. | Expert | 2000 pts |