pattern·team·idempotency
Idempotency keys
Handle retries (Stripe webhooks, client retries) without double-charging or double-creating.
Generate a unique key per request (UUID, often by client). Server stores the key in a unique-constrained table. ON CONFLICT DO NOTHING for replays. Stripe webhooks have built-in event.id — use it.
Beziehungen
opspatternteam