Back Issues/Search Home → Calendar → Archive → RSS → Subscribe → Services → Vendors → Blog → Current Issue → Popular → Newsletters (LinkedIn, Substack)

All issues › Volume 344, Issue 4 › IT News › Developer

Idempotency When You Don't Control the Other End

Stack Overflow Blog, Tuesday, November 24th, 2026

An engineer at maesn explains why retrying writes to accounting systems without idempotency keys leads to duplicate journal entries.

Writing from a company that passes customer data to more than 30 accounting and ERP systems, the author describes how a timed-out request leaves the caller unable to tell whether journal entries were created.

Many of these systems offer no idempotency key, so a retry can book entries twice and holding back can leave them missing.

In one test, uploading the same batch twice succeeded both times, with the duplicate flagged only as an easily overlooked notice at import.

Three workarounds are examined and found wanting: looking up document numbers, which are not truly unique, checking before every write, which fails on timing and rate limits, and cleaning up afterwards, which is hard once entries or periods are locked.

more →  ·  More from Developer →