Consistency · Multiple choice

A service must save an order and publish an "order created" event, and never do one without the other. How?

medium Queues Databases

Options

Why

Either two-step order leaves a gap: a crash between the steps loses one side. The outbox makes both one database transaction; the relay (polling or CDC) publishes at least once, so consumers must deduplicate.

Review this in your daily deck All cards in Consistency