System Design Drill Day 18: Wallets, Payouts and the Double-Entry Ledger
How to design a wallet and payout system that never loses or creates money, using an append-only double-entry ledger.

How to design a wallet and payout system that never loses or creates money, using an append-only double-entry ledger.

How to design a URL shortener: base62 codes, ID generation strategies, 301 vs 302 redirects, Redis caching and async click analytics.

Why writing to the database and pushing to a queue can't be atomic, and how a transactional outbox fixes lost and phantom events.

How to split a MySQL orders table across shards: choosing a shard key, routing with logical shards, keeping reports off the shards and resharding.

How MySQL read replicas scale reads, why replication lag breaks read-your-writes, and how to handle it in Laravel.
