Understanding flows
Added in
eventcatalog@2.5.0
Flows allows you to document interactions between services and messages. Flows give you the ability to document event-driven architecture choreography.
An example of a flow would be when a user makes a payment to an e-commence system, this interaction triggers many parts of the architecture (services, external services, commands, queries and events):
- User requests to make payment (e.g MakePayment Command)
- Command is sent to Payment Service (e.g Payment Service)
- Payment service will either accept or reject payment (e.g PaymentAccepted / PaymentRejected events)
- Notification service listens to these events and sends Emails (e.g EmailSent Event)
- User will be notified of payment success/failure
Many businesses have workflows and features that could be documented.