Code Room
System designMediumsd-g126
Subject Double entryLevel Mid–Senior~40 minCommon in Distributed systems interviewsIndustries Technology

Question

Design the accounting subsystem that produces a daily trial balance and supports month-end close for a fintech with ~30M ledger entries/day across a configurable chart of accounts. The trial balance (sum of all debits == sum of all credits, per account) must be queryable on demand, and once a period is closed its entries must be frozen — late transactions go to the next open period. Describe the model, how you compute the trial balance efficiently, and how you enforce period-close immutability.

What a strong answer looks like

Clarify scale and constraints first. Propose a clean component breakdown, then go deep on the hard parts — data model, bottlenecks, consistency, failure modes — and name the trade-offs you are making.

Narrate your design
Loading whiteboard…
Run or narrate your approach, then ask the coach.