Solid arrows: calls. Dashed: replies. Red: errors and crashes. Dashed blue boxes: database transactions; amber: the duplicate branch.
What to look for
- Each failure leaves the event in
FAILED and increments attempts. FAILED is still pending, so the next run retries it.- On the third run Kafka accepts it:
FAILED → FAILED → SENT, and the consumer creates the payment.