Redeem asynchronously

Saga-Based Redemption Benefits: The saga-based redemption approach provides several advantages over synchronous processing:

  1. Integration with external validation services
  2. Complex business rule evaluation and enforcement
  3. Multi-step approval workflows for high-value vouchers
  4. Proper handling of partial failures and rollback scenarios
  5. Integration with loyalty programs and reward systems
Redemption Workflow Steps: The saga orchestrator manages the following redemption process:
  1. Validate voucher eligibility and authenticity
  2. Apply business rules and redemption limits
  3. Coordinate with merchant and payment systems
  4. Process loyalty points and promotional benefits
  5. Update customer records and transaction history
  6. Generate receipts and confirmation messages
Error Handling and Recovery: The saga pattern provides robust error handling capabilities:
  1. Automatic retry logic for transient failures
  2. Compensation transactions for partial failures
  3. Dead letter queues for unrecoverable errors
  4. Manual intervention workflows for complex issues
Progress Tracking: Use the returned requestId to monitor redemption progress through:
  1. SignalR real-time notifications
  2. Dedicated status inquiry endpoints
  3. Application logs and monitoring dashboards

Language
URL
Response
Click Try It! to start a request and see the response here!