How it works · Messaging
Publish an event; let the subscribers decide
A service publishes through one interface and does not know who listens. On the other side a topic becomes a Chenile event, and every subscribed operation runs through the same pipeline as an HTTP call. The broker is a jar on the classpath.
route
scenario
view
Step 1
Exchange
Payload
The broker is a dependency
Kafka, MQTT, Azure Event Hubs and an in-memory transport implement the same ChenilePub interface. Moving from the cloud to the edge or to a test changes a module, not the code.
A message is a request
A subscribed operation is an ordinary operation: tenant from the headers, typed body, every interceptor. One method serves HTTP and messages.
Bad messages step aside
A failing message is retried, then parked on a dead-letter topic so the partition keeps moving. Delivery is at least once, so subscribers should be idempotent.