Idempotency Starts with Business Operation Identity

3 22 65
calendar_todayschedule1 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.

1 Comment

0 votes
🔥 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

Why Configuration Files Don't Belong With Your Code

Steven Stuart - Dec 16, 2025
chevron_left
2.3k Points90 Badges
Eastern Europevalentineshi.dev
23Posts
43Comments
18Connections
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!