← systems library
data & storage

Write-Ahead Log (WAL)

Append the change durably before applying it — so a crash replays instead of corrupting.

Durable log Data files 1. append + fsync 2. apply flush @ checkpoint flush truncate replay from checkpoint Write requestinsert / update WALappend-only · fsync Memtable / cacheapply in-memory Data filesdurable pages Checkpointflush + truncate Recoveryreplay on crash OWNERSHIP Client Storage engine Durable log Data files Recovery Write-Ahead Log (WAL)Append the change durably before applying it — so a crash replays instead of corrupting.
↓ Download SVG ↓ Download spec

Considerations