Cache invalidation, concretely
The joke is that it is hard. The useful version is that there are four strategies and picking the wrong one is the actual problem.
tech, developers, and the code underneath
16 pieces tagged databases,
from June 13, 2025 to November 16, 2026.
The joke is that it is hard. The useful version is that there are four strategies and picking the wrong one is the actual problem.
Adding a replica looks like free read capacity. It is free right up until replication lag becomes a correctness bug.
Offset pagination is wrong in two ways that only show up at scale, and the fix changes your API.
What actually happens between your code returning success and the data being safe. Most systems are less durable than their authors think.
Integers, UUIDs, ULIDs, or something with meaning. The decision is permanent and it leaks into everything.
A new major version every autumn, a five-year support window, and a migration that gets worse the longer you leave it.
Why your database has 400 connections, why that is bad, and how to size a pool without guessing.
Data migrations at scale, done in a way that is reversible at every step and boring in the middle.
Postgres. That's the article. Here's the longer version, including the cases where it's wrong.
Your code will be rewritten. Your API will be versioned. Your data model will outlive both and every mistake in it is permanent.
A real relational database in WebAssembly with durable storage. What it makes possible and what it breaks.
CRDTs got good, sync engines got boring, and the offline-capable app stopped being a research project.