Order Tracking — Event-Driven Ingestion with Kafka
A Kafka-backed order ingestion path that absorbs bursts without coupling HTTP latency to database processing, while keeping state-transition rules outside messaging and persistence concerns.
Decision
Order ID is the Kafka key, so events for one order share a partition and preserve per-order ordering while unrelated orders continue in parallel.
Limitation
The flow is not end-to-end exactly once: there is no durable event identity for database deduplication or a dedicated safe replay path yet.