Idempotency Starts with Business Operation Identity

2 21 56
calendar_today agoschedule1 min read
— Originally published at valentineshi.dev

The hardest part of idempotency is often not the retry. It is deciding when two attempts represent the same business operation.

Sometimes the identity is a request ID or external message ID. Sometimes it is a business key or a state transition that may happen only once. Once that identity is explicit, a transaction and database uniqueness constraint can enforce it, even when two attempts arrive together.

Without identity, "make it idempotent" is not yet a design. The system still does not know what must not happen twice. This matches how Stripe and AWS describe safe retries: repeated attempts need a stable identity so the original side effect is not performed again.

🔥 Join developers growing publicly
Share your knowledge, build in public, and grow your developer presence with a global community.

More Posts

Local-First: The Browser as the Vault

Pocket Portfolio - Apr 20

Split-Brain: Analyst-Grade Reasoning Without Raw Transactions on the Server

Pocket Portfolio - Apr 8

Why Email-Only Contact Forms Are Failing in 2026 (And What Developers Should Do Instead)

JayCode - Mar 2

Determinism Is a Core Contract in Build Caching

prasadekke - Aug 4

The Trust Gap: Why Your Product Fails Even When the Math is Right

Karol Modelskiverified - Jul 16
chevron_left
2.2k Points79 Badges
Eastern Europevalentineshi.dev
20Posts
40Comments
16Connections
Senior Backend / Full-Stack / Founding Engineer specializing in complex business systems. Node.js, T... Show more

Related Jobs

View all jobs →

Commenters (This Week)

1 comment
1 comment
1 comment

Contribute meaningful comments to climb the leaderboard and earn badges!