CommunityNews
You Can't Count on a Key
Two different ways my clients lost work, and why an idempotency key only fixes one of them.
One of my machines was handed a number to test at 15:57:51.977. Eighteen milliseconds later it stopped the test, deleted its own record that the number had ever been assigned to it, and reported nothing back. The number stayed reserved on the server for a sweeper to reclaim a week later.
Nothing had crashed. No message was lost. Every line of code involved did exactly what it was written to do.
That bug and its apparent twin are why I now think of losing work as two separate problems needing two separate fixes. One is solved by an idempotency key, which is a well known tool. The other looks like it should be solved by the same tool, and is not.
You do not need to know anything about prime numbers to follow it. Here is all the background it needs.
Read in full here:
Popular General Dev topics
Other popular topics
Categories:
Sub Categories:
- All
- In The News
- Dev Chat (207)
- Questions (36)
- Resources (122)
- Blogs/Talks (28)
- Jobs (3)
- Events (15)
- Code Editors (59)
- Hardware (60)
- Reviews (5)
- Sales (16)
- Design & UX (5)
- Marketing & SEO (2)
- Industry & Culture (14)
- Ethics & Privacy (19)
- Business (4)
- Learning Methods (7)
- Content Creators (7)
- DevOps & Hosting (12)
Popular Portals
- /elixir
- /rust
- /wasm
- /ruby
- /erlang
- /phoenix
- /keyboards
- /python
- /js
- /rails
- /security
- /go
- /swift
- /vim
- /java
- /clojure
- /emacs
- /haskell
- /typescript
- /svelte
- /onivim
- /kotlin
- /c-plus-plus
- /crystal
- /tailwind
- /react
- /gleam
- /ocaml
- /elm
- /vscode
- /flutter
- /html
- /ash
- /deepseek
- /zig
- /opensuse
- /centos
- /php
- /scala
- /react-native
- /lisp
- /sublime-text
- /textmate
- /nixos
- /debian
- /agda
- /deno
- /django
- /kubuntu
- /nodejs
- /arch-linux
- /spring
- /ubuntu
- /revery
- /manjaro
- /julia
- /diversity
- /lua
- /quarkus
- /markdown









