Saga Client Server //top\\ -

Saga Client Server //top\\ -

What happens if PaymentService fails (insufficient funds)?

The Saga Client Server pattern offers several benefits, including: saga client server

There are two primary ways to coordinate these steps between the client and the server-side services: Choreography (Decentralized) Orchestration (Centralized) Services trigger each other via events. A central "Orchestrator" directs each service. Visibility Hard to track the overall flow. Clear, centralized view of the process. Services must know about others' events. What happens if PaymentService fails (insufficient funds)

return ResponseEntity.accepted().body(new SagaResponse("PROCESSING", saga.getId())); saga client server