Design a Ledger Service with Merchant Balance

Asked at Stripe · System Design for ML · Difficulty: Hard · Last asked Mar 31, 2026

Onsite system design. Build a ledger with a `record_transaction` API and a `merchant_balance` query API. The interviewer drills heavily on money modeling and consistency under concurrent writes.

Loading the problem…