Skip to the page

Cloud and operations · 22 concepts

On the job: incidents, on-call, testing and estimates

How to run a production incident, read the signals, set alerts, write a test plan and estimate work, the way backend scenario rounds ask it.

Part 1 · 3 concepts

Running an incident

  1. 01

    The first 15 minutes of an incident

    A good incident answer follows a fixed order: understand and size the problem, stop the damage, find the cause step by step, fix it, prevent it, and tell people…

  2. 02

    Rollbacks, feature flags and recent changes

    A rollback or a flag is the fastest way to stop damage, but it reverts code, not data, jobs or state. You must know what a rollback does not undo, and have flags with a…

  3. 03

    Telling people, severity and the blameless postmortem

    During an incident you tell the right people, on a rhythm, with facts. After it, a blameless postmortem finds what let the problem happen and ends with owned, dated…

Part 2 · 10 concepts

Common backend failure patterns

  1. 04

    Slow queries, missing indexes and N+1 after a release

    When only p99 gets worse after a release, a small share of requests is slow: often a new query with no index, or an ORM that runs one query per row (N+1). You find it…

  2. 05

    Connection pools: exhaustion, sizing and idle in transaction

    A pool error such as "timed out waiting for a connection" means connections are held too long or there are too many requests. A bigger pool usually makes it worse. Find…

  3. 06

    Memory leaks, OOMKilled and a disk that fills up

    Resources that grow slowly fail without warning: memory until the container is killed, or disk until the database stops. You learn to read the signal, get relief, and…

  4. 07

    Retry storms, cache stampedes and thundering herds

    When something small fails, retries and empty caches can multiply the load until the system cannot recover. The cure is to retry at one layer with backoff and jitter…

  5. 08

    Locks and deadlocks in the database

    A deadlock happens when two transactions each wait for a lock the other holds. The database cancels one. The fix is a fixed lock order, shorter transactions and a safe…

  6. 09

    Duplicates: charged twice, jobs that run twice

    A timeout means unknown, not failed. Retries, many replicas and lost locks create duplicates. Make the operation itself idempotent with a stored key and a state…

  7. 10

    Consumer lag and queue backlogs

    When a queue consumer falls behind, check lag per partition, the group state and the time per message. A slow side effect inside the poll loop is a common cause, and…

  8. 11

    Failures that start on the hour: time zones and expiry

    A failure that starts exactly on the hour with no change points to time: an expired certificate, token or licence, or a date computed in the wrong time zone.

  9. 12

    Failures in partners: SMS, banks and gateways

    Partners fail in ways your API calls do not show: a 200 response only means accepted. You measure what users get, route around the failure, and prepare backups before…

  10. 13

    Bad data and leaked secrets

    Some incidents are about data and security, not speed. A migration can write wrong values, and a key can leak into logs. You stop the damage, repair carefully, rotate…

Part 3 · 3 concepts

Monitoring and on-call

  1. 14

    Metrics, logs, traces and the four golden signals

    Metrics show that something is wrong, traces show where, and logs show what happened. The four golden signals tell you what to measure on any service. A request can be…

  2. 15

    SLIs, SLOs and error budgets

    An SLI is a measured share of good events, an SLO is the target over a window, and the error budget is what is left. Burn-rate alerts use the budget to decide when to…

  3. 16

    Good alerts, runbooks and being on call

    A good page is about user symptoms, needs a human, and comes with an owner, a runbook and a first action. Too many alerts hide the real outage. On call you follow a…

Part 4 · 6 concepts

Testing a feature and estimating work

  1. 17

    Test layers, real databases and flaky tests

    A good test plan puts most value in integration tests against a real database, keeps unit tests for logic, adds a few end-to-end journeys and contract checks, and…

  2. 18

    Testing money, idempotency and rate limits

    Features with money or abuse risk need tests for amounts, retries and races. Concurrency bugs need parallel tests against a real database, run many times.

  3. 19

    Testing consumers and big database migrations

    Message consumers and migrations fail in ways a normal request test misses: duplicates, order, a database that goes down, long locks and giant backfills.

  4. 20

    Canary, flags, shadow traffic and load tests

    Before users see a risky change you can copy traffic to it, send a small share, or turn it on step by step. Load tests must model arrival rates, not users that slow…

  5. 21

    Back-of-the-envelope estimates: traffic, storage and cost

    An estimate says its assumptions out loud, does simple arithmetic in steps, and ends by saying how it will be checked with real data. It gives a range, not a promise.

  6. 22

    Sizing pools, partitions, servers and backfills

    Capacity numbers come from measured rates and simple laws, not guesses. Size the pools, partitions and pods from throughput, then check the limits of everything behind…

Your first interview is free

Sign up and start with a 15-minute interview with the full report, and an English conversation. No card needed.

Start your free interview