NashTech Blog

3 February 2025

Application Engineering, Technology Advisory

Choreography-Based Saga: Demo

A Choreography-Based Saga enables autonomous service communication via events, eliminating centralized orchestration. In an e-commerce scenario, services handle transactions independently by emitting and responding to events like OrderCreated and PaymentProcessed. This approach enhances scalability, loose coupling, and decentralization, though it requires effective event management and error handling for reliability.

Application Engineering, Technology Advisory

Orchestrator-Based Saga: Demo

The Orchestrator-Based Saga pattern centrally manages transactions in microservices by coordinating steps and handling compensations for failures. This approach is illustrated through an E-commerce Order Management System example in Node.js, highlighting the interplay between orchestrator, order, payment, inventory, and notification services while emphasizing the method’s reliability and scalability challenges.

Scroll to Top