Skip to content

Proposal: Add Saga Pattern Example for E-commerce Order Processing #1175

@sujal111

Description

@sujal111

Proposal: Add Saga Pattern Example for E-commerce Order Processing

Context and Problem Statement

The current examples in the AsyncAPI specification will not include a comprehensive demonstration of the Saga pattern, which will be crucial for implementing distributed transactions in event-driven architectures.

Proposed Solution

I will create a new example ecommerce-saga-asyncapi.yml that will demonstrate:

  • A complete e-commerce order processing flow
  • Distributed transaction management using the Saga pattern
  • Compensation handling for rollback scenarios
  • Clear message schemas and event flows

Example Location

The example will be available at: spec/examples/ecommerce-saga-asyncapi.yml

Additional Context

  • The implementation will use AsyncAPI 2.6.0
  • It will include detailed message schemas
  • It will demonstrate error handling and compensation
  • It will follow the same structure as other examples in the repository

Next Steps

  • Review the example
  • Provide feedback
  • Merge if approved

Would you like me to submit this as a pull request for review?

Metadata

Metadata

Assignees

No one assigned

    Labels

    ❔ QuestionA question about the spec or processes

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions