Design for delivery guarantees and idempotency in event-driven systems (at-least-once vs at-most-once vs exactly-once, acknowledgement modes, dead-letter handling, poison messages) and select the broker/consumer configuration that satisfies a no-loss/no-duplicate requirement.