Grokking the System Design Interview, Volume II
Vote
0% completed
Flash Sale: Detailed Component Design
Step 6: Detailed Component Design and Data Management
In a flash sale, each buy request transitions through several states as it is processed by different services. Below is the lifecycle of a transaction from initiation to completion or termination:
1. Transaction States
WAITING: The transaction is in the Kafka waiting queue, waiting for inventory assignment. At this stage, the transaction is only in Kafka (i.e., not stored in DB).PROCESSING: The transaction has been dequeued from Kafka, and the inventory is being checked
.....
.....
.....
Like the course? Get enrolled and start learning!