event dispatcher

A pattern to produce events into a message queue

graph TD
db[(database)]

Application-->|stores OutboxItem|db
Dispatcher-->|polls|db-->Dispatcher
Dispatcher-->|POSTs events|Sidecar
Sidecar-->|produces events|Kafka

The sidecar is optional, and in fact likely unnecessary