Reliable Domain Events and the Transactional Outbox: a Hybrid Event-Driven Pipeline in a DDD + Onion Architecture Backend
Oct 9, 2026
One outbox table, two polling workers, BullMQ queues, registries and idempotency keys: delivering domain events and external-API actions reliably from the same Postgres transaction that changes your state.
typescriptevent-driventransactional-outboxdomain-eventsbullmqpostgresidempotencydddonion-architecturebackendnodejs