Reddit Programming
200 subscribers
1.22K photos
126K links
I will send you newest post from subreddit /r/programming
Download Telegram
Why you can't allocate a human-readable ID before the record exists
https://www.reddit.com/r/programming/comments/1t49351/why_you_cant_allocate_a_humanreadable_id_before/

<!-- SC_OFF -->Author here. The non-obvious thing is that the idempotency key needs to gate the slot reservation, not the number assignment. The number has to stay inside Phase 2 or you get phantom allocations with no backing record. Happy to discuss the reaper design or the 2PC comparison if anyone's curious. <!-- SC_ON --> submitted by /u/Gronax_au (https://www.reddit.com/user/Gronax_au)
[link] (https://simoninglis.com/posts/task-keys-cmdock/) [comments] (https://www.reddit.com/r/programming/comments/1t49351/why_you_cant_allocate_a_humanreadable_id_before/)