40ms becomes 8ms, and the fourth request returns another customer’s data. The shared-nothing assumption is load-bearing in more places than anybody had counted.
A test asserting an exact query count fails on every unrelated change and is deleted within a month; a bound survives. The fixture size is the part that…
A repository is a collection-like interface over persisted objects, and returning a query builder makes every caller a co-author of the persistence layer. The builder version cannot be…
A read immediately following a write is the one query that cannot tolerate replication lag, and it is also the query most likely to be written without thinking.…