FOMO Daily
Feed
Stack Overflowยท

Idempotency when you don't control the other end

Distributed SystemsIdempotencyAPIs

TL;DR

When an accounting API times out without supporting idempotency, retrying can create duplicate entries, while holding back can leave entries missing. The team added idempotency keys to its own API, but found that lookups, pre-write checks, and later cleanup cannot reliably resolve uncertainty in downstream systems. Safe retries ultimately require the accounting provider to enforce idempotency keys or unique caller-supplied references where entries are stored.

Relevant links

Sign in to save links
Read the original post Sign in to mark as read or skip