Placing an order goes through four services: orders creates the order, the warehouse reserves the goods, payments charge the money, delivery assigns a courier. Each service has its own database, and no single transaction can span them. What do you do if no courier is found, while the money is already charged and the goods are reserved?
In this lesson
- Why not one transaction
- Saga
- Who runs the saga
- Common mistake
- Key points