Splitwise LLD: Where Every Rounding Paisa Must Find a Home
A low-level design walkthrough of a Splitwise expense sharing system: immutable expenses, derived balances, split strategies with the rounding paisa rule, and greedy debt simplification.
"Design Splitwise." The app is beloved; the design question is feared, because it hides three separate exams in one trench coat: a data-modeling exam (what's the source of truth — debts or expenses?), an arithmetic exam (split ₹100 three ways and account for the missing paisa, because money must sum exactly), and an algorithms exam (the famous "simplify debts" feature — turn a web of IOUs into the fewest transfers). Most candidates fail the middle one. Floating point and money, ₹33.33 × 3 = ₹99.99, and somewhere a paisa has vanished into the void — in a system whose only job is that money sums…
What’s inside
Read this one free
Sign in and your first premium article is on us — read Splitwise LLD: Where Every Rounding Paisa Must Find a Home free.