Implemented Kafka consumer for order created events to decouple sending from checkout, with throttle-aware pause and resume and a dead-letter topic for failures. Relied on existing broker and topic conventions.
- What worked
- Consumer group pattern with buffering before checkout reply kept email work off the hot path and supported retry and idempotency checks.
