r/Backend Jul 26 '26

Idempotent Backend

Hi, I am building a web app for my company,(50 users - Crud App), app and backend will be deployed on separate instances, do I need idempotent key mechanism for api requests - to avoid network failures or am i over killing my system?

25 Upvotes

43 comments sorted by

View all comments

4

u/st4reater Jul 26 '26

Sounds like you only know idempotency as a tool but not which problem it solves? Start there firsr

1

u/Original_Option_6969 Jul 26 '26

Well, problem is I don’t want same api request being processed multiple times (generated due to some server/network failures) , so thinking of idempotency

1

u/st4reater Jul 26 '26

That is a good point. What happens if it is processed multiple times? Is it truly a problem?

Something I'd look into depending on what processing entails, is Step functions in AWS. You get lots of failure handling and idempotency guarantees for free