Notes on building and running software

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.

Latest

· 2 min read

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.

  • #testing
  • #go
  • #reliability
· 2 min read

Docker layer caching, demystified

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.

  • #docker
  • #ci
  • #build
· 2 min read

Structured logs you can actually grep later

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.

  • #observability
  • #logging
· 2 min read

Token bucket vs leaky bucket, in plain terms

Both smooth bursty traffic, but they behave differently at the edges. A short walk through each, with a token bucket you can actually ship.

  • #systems
  • #algorithms
  • #rate-limiting
· 2 min read

The Makefile I copy into every repository

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.

  • #tooling
  • #make
· 2 min read

HTTP caching headers, decoded

Cache-Control, ETag and the difference between fresh and revalidated. A field guide to the headers that decide whether your bytes travel twice.

  • #http
  • #web
  • #caching
· 2 min read

A gentle introduction to CRDTs for app developers

Conflict-free replicated data types sound academic until you need offline edits to merge cleanly. Two small ones you can build this afternoon.

  • #distributed-systems
  • #data
· 2 min read

Bash strict mode and the traps that save you

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.

  • #bash
  • #shell

See all 12 articles in the archive →