CONTAINER · IN SHARED PLATFORM
Event bus
Domain events between services
Event bus
Apache Kafka cluster that carries domain events between services. It lets services react to each other without calling each other directly.
Topics
| Topic prefix | Producer | Consumers |
|---|---|---|
user.* |
User API | Order API (user.deleted), Notifier (user.created) |
order.* |
Order API | Notifier |
Rules
- Producers publish only after their own database transaction commits.
- Consumers must be idempotent, because Kafka delivers at least once.
- Events are facts in the past tense (
order.shipped), never commands.
In prod
Amazon MSK (module.kafka), on the data node. Owned by platform-team.
Edit ./docs/containers/event_bus.md to change this text.