Idempotency part 2: Kafka consumers, the idempotent producer and payment-gateway IPNs
Idempotency in messaging and payments: deduplicating Kafka consumers with a processed_message table, the idempotent producer (PID, sequence numbers, max.in.flight ≤ 5) and its limits, a state-machine IPN handler for a VNPay-style gateway, reconciliation, and a summary of what to store and for how long at each layer.