infrastructure/
Servers, deploys, containers, cloud and monitoring.
13 results
infrastructure/structured-logs-why-a-line-of-json-beats-a-sentence-when-something-bre.md
Structured logs: why a line of JSON beats a sentence when something breaks at 3 a.m.
A plain log line like "order 404 by alice took 87ms" reads well to a human, but a search for 404 also matches order numbers and the middle…
infrastructure/rate-limiting-how-a-token-bucket-stops-one-caller-from-using-up-the-wh.md
Rate limiting: how a token bucket stops one caller from using up the whole server
How do websites stop one noisy caller from using up all the server's time? Many use a token bucket: a bucket that holds a few tokens and…
infrastructure/exponential-backoff-why-waiting-longer-between-retries-keeps-a-struggl.md
Exponential backoff: why waiting longer between retries keeps a struggling server alive
When a server stumbles, every client that failed retries at the same instant, and the second wave can be bigger than the first. Exponential…
infrastructure/environment-variables-how-the-same-code-talks-to-a-practice-database-o.md
Environment variables: how the same code talks to a practice database on your laptop and the real one online
The same program can talk to a practice database on your laptop and the real one on a live website, without a single edit to its code. The…
infrastructure/percentiles-why-an-average-response-time-of-235-ms-can-hide-users-wait.md
Percentiles: why an average response time of 235 ms can hide users waiting 3 seconds
Your dashboard says the average response time is 235 milliseconds, yet some users wait three seconds. Both can be true, because an average…
infrastructure/ci-pipelines-how-a-computer-decides-a-change-is-safe-to-merge.md
CI pipelines: how a computer decides a change is safe to merge
Push a change and a green tick or a red cross appears a minute later. How does a machine decide? It does not understand your code. It reads…
infrastructure/rolling-deploys-how-a-website-updates-without-going-offline.md
Rolling deploys: how a website updates without going offline
How does a busy website switch to a new version without going offline? Not by replacing everything at once. A rolling deploy updates one…
infrastructure/cron-schedules-five-fields-that-tell-a-computer-when-to-run-a-job.md
Cron schedules: five fields that tell a computer when to run a job
Want a computer to run a job at 3 a.m. while you sleep? On Linux and macOS, a program called cron does it, and each job is described by…
infrastructure/docker-build-cache-why-a-one-line-change-can-trigger-a-full-reinstall.md
Docker build cache: why a one-line change can trigger a full reinstall
You change one line of code, rebuild your Docker image, and wait while every library downloads again. Often the cause is just the order of…
infrastructure/what-is-a-load-balancer-one-web-address-many-servers.md
What is a load balancer? One web address, many servers
When you open a popular website you type one address, yet many servers stand behind it. Something has to decide which one answers you. That…
infrastructure/what-is-ci-the-robot-that-tests-your-code-every-time-you-push.md
What is CI? The robot that tests your code every time you push
You change one line, it looks fine, and two days later something far away breaks. Continuous integration (CI) is a robot that prevents…
infrastructure/what-is-a-server-really-a-computer-that-waits-for-questions.md
What is a server, really? A computer that waits for questions
A server isn't a special kind of machine. It's an ordinary computer running a program that waits for someone to ask for something, then…