Deterministic clocks for flaky time-based tests
Tests that depend on the wall clock fail at 23:59 and in CI under load. Inject the clock instead of reaching for time.Now, and the flakiness disappears.
Plain, practical write-ups on the parts of the job that bite: databases, Linux, performance, testing and the small tools in between. No frameworks of the week — just things that held up in production.
Tests that depend on the wall clock fail at 23:59 and in CI under load. Inject the clock instead of reaching for time.Now, and the flakiness disappears.
You almost never need a maintenance window. The trick is to split every schema change into an additive step and a cleanup step, deployed separately.
Most slow image builds come from one misplaced COPY. Here is how the cache actually keys layers, and the two rules that keep rebuilds fast.
The three numbers from uptime are not a CPU percentage. Knowing what they count turns a scary 14.0 into a shrug on a 16-core box.
If a human has to regex your logs during an incident, the log line failed. Pick one format, put the request id on every line, and move on.
Both smooth bursty traffic, but they behave differently at the edges. A short walk through each, with a token bucket you can actually ship.
A tiny, boring Makefile with a self-documenting help target has saved me more onboarding time than any wiki page. Here is the whole thing.
Cache-Control, ETag and the difference between fresh and revalidated. A field guide to the headers that decide whether your bytes travel twice.
Conflict-free replicated data types sound academic until you need offline edits to merge cleanly. Two small ones you can build this afternoon.
set -euo pipefail is table stakes, but it has sharp edges. The traps, the pitfalls with pipes, and the one-line error trap I never ship without.