Disks Lie: Building a WAL that actually survives
blog.canoozie.net·2w·
Discuss: Lobsters
📝Write-Ahead Log
Preview
Report Post

12 Dec 2025 — 6 min read

Disks Lie: Building a WAL that actually survives Treat your disk storage as potentially hostile

A write-ahead log (WAL) is one of those database concepts that sounds deceptively simple. You write a record to disk before applying it to your in-memory state. If you crash, you replay the log and recover. Done.

Except your disk is lying to you.

PostgreSQL, SQLite, RocksDB, Cassandra... every production system that claims to be durable relies on a WAL. It’s the fundamental contract: "Write here, and I promise your data survives." But making that promise actually stick requires understanding all the ways disk fail silently.

The Naive Approach vs…

Similar Posts

Loading similar posts...