Solid arrows: calls. Dashed: replies. Red: errors and crashes. Dashed blue boxes: database transactions; amber: the duplicate branch.
What to look for
MAX_ATTEMPTS = 3 in OutboxRelay: once reached, the event is marked DEAD.- The fourth run finds nothing:
DEAD is not a pending state. - The message never reaches Kafka, so the consumer never runs and there is no payment.