RFC — Idempotent order creation
A proposal to make POST /orders safe to retry under network failure.
Problem
Clients retry POST /orders on timeouts, occasionally creating duplicate orders. We need creation to be safe to retry without double-charging.
SECTION 01 · Hierarchy
Why duplicates happen
MECE
Alternatives
Proposed design
SECTION 03 · Architecture
Idempotency layer
ARCH
Behavior
SECTION 04 · Flowchart
First call vs. retry
FLOW
| Task | Status | Priority |
|---|---|---|
| Agree the Idempotency-Key header contract with clients | todo | high |
| Pick the store TTL (24h?) and eviction policy | todo | med |