System Design Patterns: From Fundamentals to Real Systems
0% completed
Saga
At 11:40 one morning, the database of the fulfillment service stopped answering. Its standby copy took its place 30 seconds later, which is a normal failover. During those 30 seconds, checkout kept taking orders at the usual 200 per second. By the end of the day, support had a list of 6,000 orders that were reserved and charged, with no shipment and no refund.
Checkout was plain code. It called inventory to reserve the item, called the payment service to charge the card, and called fulfillment to create the shipment
.....
.....
.....
Like the course? Get enrolled and start learning!
Reading Progress
0%