About this module
Build a stock-trading app through a whole trading day, starting from a single ten-dollar server, and break it on purpose one failure at a time: the double tap, cash spent twice, a crash with orders live, money in code, the ledger, scaling for the open, replication, sharding and safety rails, with the real incidents that taught the industry each lesson.
Lessons
- Lesson 6
Day One: The Double Tap
One ten-dollar server, one double tap, and twenty shares Sara never asked for
1:28 - Lesson 7
Cash Spent Twice
Two orders, one balance, and the race condition between them
0:58 - Lesson 8
The Server Dies
Five live orders, an empty memory, and how to recover without trading twice
1:15 - Lesson 9
Money in Code and the Order Lifecycle
Cents not decimals, ticks and rounding, and the states every order moves through
1:11 - Lesson 10
The Ledger
Why one balance number loses the story, and how double entry keeps it
1:01 - Lesson 11
Day Two: One Order, End to End
Monolith or microservices, the path of one order, T plus one, and the unknown order
2:02 - Lesson 12
Scaling for the Open
Scaling out before the bell, stateless servers, databases for money, caches and live prices
2:56 - Lesson 13
The Outbox and Replication
Never lose a notice, never trust a replica with money, and watch for split brain
1:30 - Lesson 14
After the Close, and Sharding
Nightly reconciliation, stock splits, clearing deposits, and splitting the data by account
1:23 - Lesson 15
Safety Rails and Day Three
Fat-finger limits, price bands, one switch to stop everything, and the day it all holds
1:21