Tech
idemkit: make any Python operation safe to retry (HTTP, queues, functions)
A few years ago, I spent about a month cleaning up duplicate charges. Every service involved already had idempotency "handled": the client sends an Idempotency-Key header, we store the response under it, and if the key comes back we replay the stored response. Textbook. And it still double-charged people.
What finally clicked for me is that the key is just a name for the request. It doesn't do anything on its own. Whatever safety you have comes from the code around it, and that code is a smal...
Read the full discussion on Dev.to
This article was aggregated from Dev.to. Click to join the conversation.
View on Dev.to