An event-driven system needs more than a message broker. It needs clear ownership, durable contracts and a deliberate way to recover from partial failure.
Define an event’s meaning
An event should describe something that happened, with a stable identifier and enough context for consumers to act. Version its schema when meaning changes, and document which fields consumers can rely on.
Expect delivery to repeat
Consumers should be idempotent wherever possible. Keep a record of processed event IDs or make state transitions safe to repeat. A retry should move work forward without duplicating a side effect.
Design for recovery
Dead-letter queues, replay procedures and observability are part of the architecture. Trace an event from producer to consumer, then rehearse the recovery path before an incident requires it.