Two places that both think they are the truth
A durable source of truth and an in-memory one give the same answers until a process dies. Deciding which is authoritative is a design act, not a default.
We use Google Analytics to see which pages help people. No ads, no profiles. Privacy Policy
6 posts
A durable source of truth and an in-memory one give the same answers until a process dies. Deciding which is authoritative is a design act, not a default.
A failed-sync flag is not a retry mechanism. Three parts are needed: a connectivity signal, an enumeration of what failed, and backoff with a ceiling.
When two writes reach one record and no code decides between them, the policy is whichever ran last. Name the resolver so the choice becomes reviewable.
Replacing a cached page is several row operations, and a reader arriving between them observes a state that never existed. Make the swap one transaction.
A cache and the writes against it drift apart in five distinct ways. Each ships separately, each looks reasonable, and all five look identical to a user.
A cold open and a deliberate refresh want different things from a cache. One read method forces the repository to guess what only the call site knows.