13 ms·
My main takeaway from this post is that in 2026 we haven't developed enough technology to scalably and durably handle concurrently decrementing a single number.
by jhhh 2mo ago
My main takeaway from this post is that in 2026 we haven't developed enough technology to scalably and durably handle concurrently decrementing a single number. This has caused multiple organizations to develop database hacks (the multiple rows) or complex architectural solutions (redis) which destroy the atomicity of the process.
- winrid 2mo agoThe benefit of per row is that you can tag additional info like reserved user id etc, which you would have to track somewhere anyway.