Event broker¶
The detailed view of a building block of 5.1; its summary is 5.2 — Event broker.
| Aspect | Detail |
|---|---|
| Role | carries the externalized domain events — a stage's requests and replies, facts out of a case — between deployables and to downstream systems (8.16.3) |
| Topology | a topic per externalized event kind, a push subscription back to the backend and a dead-letter topic per subscription; the async intake's job topic, push subscription and dead-letter topic (ADR-0009 (docs/adr/adr-0009-async-intake-pubsub-bucket-firestore.md)) |
| Interfaces | Spring Cloud Stream with Spring Cloud GCP's Pub/Sub binder; for the intake's job the case's queue port and its Pub/Sub adapter (spec 264 (docs/specs/264-google-case-adapters.md)) |
| Delivery | at least once; ordering key the case ID; push carries an OIDC token checked by the backend |
| Per environment | Pub/Sub in production; the Pub/Sub emulator in the end-to-end tests and locally (Compose); none in development, where events stay in memory |
| Code | the adapters in backend/app/src/main/java/net/lauper/feecheck/cases/infrastructure |
| Status | the queue adapter for the intake's job built, offline the queue's stub; the event backbone planned |