Why you can't allocate a human-readable ID before the record exists

Posted by Gronax_au@reddit | programming | View on Reddit | 28 comments

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.