Get the latest tech news
A write-ahead log is not a universal part of durability
A write-ahead log is not a universal part of durability
Throughout this post, for the sake of code brevity, imagine that the environment is concurrent and that data races around shared mutable values like db are protected somehow. A key insight is that it's silly to serialize the entire permanent structure of the database to disk every time a user writes. Logical replication (also called change data capture (CDC)) is another interesting feature that requires a write-ahead log.
Or read this on Hacker News