r/databasedevelopment • u/Much-Illustrator-650 • Oct 16 '26
Why I replaced RAMCloud-style version counters with random UUIDs (and what that doesn’t solve)
I am the RamCourt author. RamCourt grew out of my years working on RAMCloud at Stateless. RamCourt is an early-stage Rust key-value store: single node so far, with mandatory version-checks and expiry implemented, and replication and recovery not built yet. The part I most want feedback on is the last section: how to order a recreated key against its tombstone when the client-visible version is random, and whether the internal sequence should be per key or table-wide. Happy to be told where I’m wrong. Discussion thread here: https://github.com/OferMania/ramcourt-draft/discussions/7
2
u/Fabulous-Meaning-966 Oct 22 '26
This seems to be a conversation between LLMs?
1
u/Significant_Tune9219 Oct 17 '26
A random client-visible version cannot order a recreate against a tombstone, because nothing about a UUID says it happened later. You still need a monotonic sequence the client does not get to choose, and it should be per key. That sequence is the only thing that can say this put is after that delete of the same key. A table-wide sequence answers a different question, the order of the replication log, and using it for the tombstone check means one hot key serializes the whole table. Let the UUID be the idempotency token the client sends, and compare the tombstone on the per-key counter. A recreate has to read that counter and pick a higher one. It cannot invent the order itself.