Map producers and consumers
Services or Domains can either send or receive events, commands and queries.
To add messages to resource you need to reference them within your resource itself by adding the id. The version is optional and if not provided the latest version will be used.
/services/Orders/index.mdx (example)
---
id: OrderService
... # other service frontmatter
receives:
# id of the message this service receives
- id: OrderPlaced
# (optional) The version of the message you want to add
# If no version is given latest version is used.
version: 0.0.1
sends:
# id of the message this service sends
- id: PaymentProcessed
---
<!-- Markdown contents... -->
If you don't specify a version the latest version will be used.