Distributed transactions (2PC) don’t work in microservices. Instead, we use the SAGA pattern to maintain data consistency. Choreography vs Orchestration Choreography: Services emit events. “OrderCreated” -> Inventory Service reduces stock -> “StockReserved” -> Payment Service charges. Orchestration: A central coordinator (like Azure Durable Functions or MassTransit Saga State Machine) tells services what to do. Compensating […]
Read more →