r/databasedevelopment • • 26d ago

RamCourt Design Decisions

Hello everyone,

I'm the RamCourt author, and I decided to make a discussion about where RamCourt matches/differs from RAMCloud, the key-value storage solution it was inspired by. You can find that here:

https://github.com/OferMania/ramcourt-draft/discussions/13

Additional info: 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.

0 Upvotes

3 comments sorted by

1

u/Significant_Tune9219 26d ago

The sharp edge once recovery exists is expiry versus the version check, and it's worth getting that right while you're still single-node. If expiry just deletes the key, a replay of an older write can bring it back, because the live version check never sees that write arrive late. I'd store expiry as a tombstone that carries its own version, and let that tombstone win over any write with a lower version. A client that retries after a timeout also has to send the same version condition again, or the retry looks like a conflict on a write that actually landed. Mandatory checks on the hot path don't cover either of those until you spell them out in the log format.

1

u/Much-Illustrator-650 21d ago

That is a good point, I will make a note in my design about expiry as a separate-versioned tombstone to win over lower versions.