Implement saga pattern for distributed transactions
Implement saga pattern:
Transaction flow: ${{TRANSACTION_FLOW}}
Services involved: ${{SERVICES}}
Compensation needs: ${{COMPENSATION}}
Design:
- Choreography vs orchestration
- Saga steps definition
- Compensation logic
- State management
- Timeout handling
- Idempotency
- Monitoring and tracing
- Error recoveryPremium Prompt
Unlock this prompt — and all 30,000+ expert-crafted prompts — with Pro.
Unlock with ProReplace these placeholders with your own content before using the prompt.
[{TRANSACTION_FLOW][{SERVICES][{COMPENSATION]