Event-driven ingestion jobs run via NATS JetStream outbox

blog.victorbona.dev8 min read

The author details an event-driven system architecture designed around outbox patterns, NATS JetStream, and Little's law to run automated data ingestion jobs reliably. By ensuring that every message leaves through an outbox committed in the same transaction as data changes, the system achieves at-least-once, idempotent execution. The author demonstrates how Little's law can be used to mathematically diagnose bottlenecks and prevent issues like head-of-line blocking in high-throughput workloads. Open article →