Menu

Ramu Kaka's Notebook: How Bitcask Stores Data Without Ever Erasing Anything
πŸ“°

Ramu Kaka's Notebook: How Bitcask Stores Data Without Ever Erasing Anything

DEV Community: databaseΒ·Nimai CharanΒ·about 15 hours ago
#ajzl4crh
#devtodatabase#devto#dev#kaka#file
Reading 0:00
15s threshold

Remember Ramu Kaka?

If you read Danni, Johny and the Java Feature Flag Problem , you know Ramu Kaka . He runs the tea stall in front of the hospital. He was our feature flag.

Turns out Ramu Kaka is also a database engineer. He just doesn't know it.

Half the hospital drinks chai on credit. Ward boys, nurses, Johny (obviously), and sometimes even Big-B on night shift. Ramu Kaka tracks all of it in a notebook.

His rules are simple:

He never erases anything. Pen only. Crossing out looks dishonest.

Every new chai, every payment, he writes a new line at the bottom .

When the notebook is full, it goes into the drawer and he starts a new one. Old notebooks are never written to again .

He doesn't remember anyone's balance. He remembers which notebook and which line has their latest entry.

Johny asks "Kaka, how much do I owe?" Kaka doesn't flip through 40 pages. He goes straight to notebook 3, line 112, reads one line, done.

CongratulationsπŸ‘.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.