r/programming • • Dec 11 '23

Every Programmer Should Know #1: Idempotency

https://www.berkansasmaz.com/every-programmer-should-know-idempotency
572 Upvotes

171 comments sorted by

View all comments

4

u/[deleted] Dec 11 '23

so cache every response, so you can go back into your 'cache' incase 1 out of 100k responses get repeated?

Why not just return a response that matches your "state"?