Architecture in Motion · Episode 015

Payment Webhook Idempotency: Preventing Duplicate Emails and Fulfillment

One successful payment produces repeated emails or fulfillment commands when its notification is delivered several times.

Illustrative failure model. No live payment, broker, database, or JVM is connected. Counts and timelines are teaching values, not benchmark results.

Check your understanding

Are three webhook deliveries proof of three charges?

What this model does and does not prove

Verify the raw signature, deduplicate durably, guard payment state, and commit the inbox, transition, and outbox together.

Every step describes a constructed scenario. These states do not replace load tests, fault injection, provider contracts, JVM recordings, or durable transaction checks. Previous and Reset rebuild the teaching state; they never roll back real business operations.