Observability & Performance

Learn to understand what a production system is doing, find the bottleneck, explain why it is slow, and prove that your change improved it. The goal is not to know monitoring tools — it is to stop guessing.

Your path through Observability & Performance

0 of 36 Foundation lessons done
0 of 119 lessons done overall
Start: Observability Is Not a Dashboard →

Then follow the stages in order

Each stage builds on the ones before it. Labs and simulators sit right after the lessons they exercise. Open a stage to see its lessons. Full roadmap with goals →

  1. Level 1 · Measure before you touch anything0 of 9 lessons done
    1. Observability Is Not a DashboardFoundation≈ 10 min
    2. Measure Before You OptimizeFoundation≈ 10 min
    3. From Symptom to Root CauseFoundation≈ 10 min
    4. Metrics, Logs, Traces, ProfilesFoundation≈ 10 min
    5. The Four Golden SignalsFoundation≈ 10 min
    6. RED: Rate, Errors, DurationFoundation≈ 10 min
    7. USE: Utilization, Saturation, ErrorsFoundation≈ 10 min
    8. Instrumentation: From Code to SignalFoundation≈ 10 min
    9. OpenTelemetry ConceptsFoundation≈ 10 min
  2. Level 2 · Read the numbers honestly0 of 13 lessons done
    1. Four Metric Types, Four QuestionsFoundation≈ 10 min
    2. Counters: The Slope Is the SignalFoundation≈ 10 min
    3. Gauges: Blind Between ScrapesFoundation≈ 10 min
    4. Histograms: A Distribution You Can Afford to Keep ForeverFoundation≈ 15 min
    5. The Average Was Fine and Users Were NotFoundation≈ 10 min
    6. Percentiles: Which One, and How Many Users Is That?Foundation≈ 10 min
    7. Cardinality: The Label That Took Down MonitoringFoundation≈ 10 min
    8. Label Sets That Survive a YearFoundation≈ 10 min
    9. Structured Logging: Fields a Program Can ReadFoundation≈ 10 min
    10. Log Levels Are a Convention, Not a StandardFoundation≈ 10 min
    11. Correlation IDs: Turning Lines Into a StoryFoundation≈ 10 min
    12. What You Just Wrote Into a Log Half the Company Can ReadFoundation≈ 10 min
    13. The Log Bill and What It Is BuyingFoundation≈ 10 min
  3. Level 3 · Find where the time goes0 of 14 lessons done
    1. Where the Request Actually WentFoundation≈ 15 min
    2. Trace, Span, Attribute, StatusFoundation≈ 10 min
    3. Parents, Children and LinksFoundation≈ 10 min
    4. Carrying the Trace Across the GapFoundation≈ 10 min
    5. Reading the WaterfallFoundation≈ 10 min
    6. The Critical Path Is the Only Path That PaysFoundation≈ 10 min
    7. The Comb: N+1 as a Visible ShapeFoundation≈ 10 min
    8. Sampling Without Throwing Away the EvidenceFoundation≈ 10 min
    9. When the Trace Runs Out of AnswersFoundation≈ 10 min
    10. Self Time, Total Time, and Where the CPU WentFoundation≈ 10 min
    11. Reading a Flame GraphFoundation≈ 15 min
    12. Allocation Rate Is a Cost Even Without a LeakFoundation≈ 10 min
    13. Computing or Waiting?Foundation≈ 10 min
    14. Always-On Profiling, and the Diff That Finds RegressionsFoundation≈ 10 min
  4. Level 4 · Understand why loaded systems get slow0 of 9 lessons done
    1. Latency Is a Distribution, Not a NumberIntermediate≈ 10 min
    2. Tail Latency: Why p50 Being Fine Does Not HelpIntermediate≈ 10 min
    3. Latency Budgets: Spending 200 Milliseconds on PurposeIntermediate≈ 15 min
    4. Throughput: The Number That Means Nothing Without a Latency BoundIntermediate≈ 10 min
    5. Little's Law as Working IntuitionIntermediate≈ 15 min
    6. Queueing: Why Systems Get Slow Before They Get BrokenIntermediate≈ 15 min
    7. Saturation: The Reading Utilization Cannot Give YouIntermediate≈ 10 min
    8. Concurrency Limits: An Unbounded Server Is a Slower ServerIntermediate≈ 10 min
    9. Timeouts: The Latency Contract Nobody Writes DownIntermediate≈ 10 min
  5. Level 5 · Identify the constrained resource0 of 8 lessons done
    1. What "CPU Is At 60%" Actually MeansIntermediate≈ 10 min
    2. CPU Saturation: When Cores Become the QueueIntermediate≈ 10 min
    3. Algorithmic Cost in a Request HandlerIntermediate≈ 10 min
    4. Reading Memory: RSS, Heap, Working Set and the Number on Your DashboardIntermediate≈ 10 min
    5. Memory Leaks: Growth That Does Not Come BackIntermediate≈ 15 min
    6. Leak or Unbounded Cache? The Question That Picks the FixIntermediate≈ 10 min
    7. Disk and Storage: Latency, Throughput, IOPS and the fsync TaxIntermediate≈ 10 min
    8. Network Signals: Is It the Network, or the Service on the Other End?Intermediate≈ 10 min
  6. Level 6 · Diagnose the data layer0 of 15 lessons done
    1. Which Signal Actually Means "The Database Is Slow"Intermediate≈ 10 min
    2. The Slow Query WorkflowIntermediate≈ 15 min
    3. An Index Scan Is Not Automatically FasterIntermediate≈ 10 min
    4. When the Join Strategy Is the BottleneckIntermediate≈ 10 min
    5. Low CPU, High Latency: Lock ContentionIntermediate≈ 10 min
    6. Connection Pool Saturation: Waiting in Front of an Idle DatabaseIntermediate≈ 10 min
    7. Replication Lag: Reads That Are Correct and StaleIntermediate≈ 10 min
    8. A 95% Hit Rate Tells You Almost NothingIntermediate≈ 10 min
    9. Cache Stampede: Everyone Misses at OnceIntermediate≈ 15 min
    10. Hot Keys: When Aggregate Metrics Hide a Saturated NodeIntermediate≈ 10 min
    11. Six Queue Signals, Two That Wake You UpIntermediate≈ 15 min
    12. The Backlog Arithmetic: Four Levers and a Drain TimeIntermediate≈ 10 min
    13. Depth Is Not an Emergency; Age IsIntermediate≈ 10 min
    14. Retry Storms: The Load You Generated YourselfIntermediate≈ 10 min
    15. Twenty Workers, All Busy, Five Hundred WaitingIntermediate≈ 10 min
  7. Level 7 · Know your runtime and your users0 of 12 lessons done
    1. Garbage Collection: Pause, Throughput, Footprint — Pick TwoAdvanced≈ 15 min
    2. Event-Loop Lag: One Callback, Everybody WaitsAdvanced≈ 10 min
    3. JavaScript Runtime Performance: V8 Where It CostsAdvanced≈ 10 min
    4. CPython Performance: The Interpreter Tax and the GILAdvanced≈ 10 min
    5. C++ Memory Performance: Allocation, Copies and LocalityAdvanced≈ 10 min
    6. JIT and Warm-Up: The First Thousand Requests Are a Different ProgramAdvanced≈ 10 min
    7. The Half of the Budget You Cannot See From the ServerAdvanced≈ 10 min
    8. Core Web Vitals as Signals, Not ScoresAdvanced≈ 10 min
    9. Reading the Browser WaterfallAdvanced≈ 10 min
    10. JavaScript Costs Four Times, Not OnceAdvanced≈ 10 min
    11. Images: The Largest Bytes, Rarely the Largest BlockAdvanced≈ 10 min
    12. Layout, Paint and the Main ThreadAdvanced≈ 10 min
  8. Level 8 · Produce numbers that mean something0 of 13 lessons done
    1. Load Testing: What Question Is This Test Answering?Advanced≈ 10 min
    2. Load Test Shapes: The Shape Is the HypothesisAdvanced≈ 10 min
    3. Coordinated Omission: When the Load Generator LiesAdvanced≈ 10 min
    4. Benchmarking: Does This Number Answer My Question?Advanced≈ 10 min
    5. Benchmark Fallacies: Confident Numbers That Are WrongAdvanced≈ 10 min
    6. Microbenchmark or End-to-End: Why p99 Did Not MoveAdvanced≈ 10 min
    7. Regression or Tuesday? Telling a Real Change from NoiseAdvanced≈ 10 min
    8. Capacity Planning: Traffic to MachinesAdvanced≈ 15 min
    9. Headroom: The Capacity You Deliberately Do Not UseAdvanced≈ 10 min
    10. Autoscaling: Scaling on the Right SignalAdvanced≈ 10 min
    11. Autoscaling Lag: The Gap Where the Outage LivesAdvanced≈ 10 min
    12. Cost per Request: The Other Performance MetricAdvanced≈ 10 min
    13. Capacity or Efficiency: Which Problem Are You Solving?Advanced≈ 10 min
  9. Level 9 · Run it in production, at scale0 of 26 lessons done
    1. SLIs: Measuring What the User Actually FeelsAdvanced≈ 10 min
    2. SLOs: A Target, a Window, and a ReasonAdvanced≈ 15 min
    3. SLAs: The Promise With Money AttachedAdvanced≈ 10 min
    4. Error Budgets: Unreliability You Are Allowed to SpendAdvanced≈ 10 min
    5. Alerts Worth Waking Someone ForAdvanced≈ 10 min
    6. Alert Fatigue: The Page Nobody ReadsAdvanced≈ 10 min
    7. Burn-Rate Alerts: How Fast Is the Budget Going?Advanced≈ 10 min
    8. Dashboards Built Around QuestionsAdvanced≈ 10 min
    9. What Changes When Work Crosses a MachineAdvanced≈ 10 min
    10. Fan-Out: Waiting for the Slowest of SevenAdvanced≈ 10 min
    11. Sequential or Parallel: Same Work, Different LatencyAdvanced≈ 10 min
    12. Cross-Region Latency Is Physics, Not ConfigurationAdvanced≈ 10 min
    13. Packet Loss Buys You a Timeout, Not a RetransmitAdvanced≈ 10 min
    14. Agreement Costs Round TripsAdvanced≈ 10 min
    15. Debugging an Incident in ProgressAdvanced≈ 10 min
    16. Correlation Is Not the Root CauseAdvanced≈ 10 min
    17. Reading a Timeline: Observation Order Is Not Causal OrderAdvanced≈ 10 min
    18. "What Changed?" — Deploy Markers and the Invisible DeploysAdvanced≈ 10 min
    19. The Bottleneck Moves After Every FixAdvanced≈ 15 min
    20. Every Optimization Buys Something and Sells SomethingAdvanced≈ 10 min
    21. Performance and Observability Anti-PatternsAdvanced≈ 10 min
    22. Where an Agent Run Actually Spends Its TimeAdvanced≈ 10 min
    23. Inside One Model Call: Queue, First Token, GenerationAdvanced≈ 10 min
    24. Reading an Agent Run as a TraceAdvanced≈ 15 min
    25. What One Agent Run Costs, and Which Term DominatesAdvanced≈ 10 min
    26. The Agent Returned 200 OK and the Answer Was WrongAdvanced≈ 10 min
Start from the symptom

What are you trying to diagnose?

The diagnostic loop

Every lesson and every lab returns to this chain. A fix that skipped a step is a guess that happened to work — or, more often, a guess that did not.

Symptom→Signal→Measurement→Hypothesis→Evidence→Root Cause→Change→Validation→Regression Check
Do not optimize what you have not measured. The most expensive performance work is the work that fixed something which was never the problem.
Do not treat correlation as root cause. Two metrics moving together usually share a cause. Acting on the correlation leaves everyone confident it is handled.

Flagship experiences

Learn → observe → measure → trace → profile → diagnose → optimize → validate → break → debug.

Learning modules

119 lessons
Observability Fundamentals9

Understanding internal behavior from external signals. The measure-before-optimizing loop, what each signal type is actually good at, the golden signals, RED and USE, and how instrumentation reaches a backend at all.

Metrics8

Counters, gauges and histograms as different questions. Why the average hides the outage, how to read p50 against p99, and why a user id in a metric label can take down the monitoring system.

Logs5

Discrete events with enough context to reconstruct a failure: structured fields over prose, levels that mean something, correlation ids that survive every hop, and the secrets that must never reach log storage.

Distributed Tracing8

Where a request spends its time across services. Spans and their relationships, context propagation through queues, the waterfall view, critical-path reasoning, and N+1 as a visible shape.

Profiling6

Where cost goes inside one process. CPU and allocation profiles, reading a flame graph without fooling yourself, and the CPU-bound versus I/O-bound distinction that decides which fix can possibly work.

Latency, Throughput & Queueing9

The physics of a loaded system: tail latency, latency budgets, Little's Law as working intuition, why queueing makes systems slow long before they fail, and what saturation actually means.

CPU, Memory, Disk & Network8

The four resources a process competes for, the signal that identifies each as the constraint, and the difference between a memory leak and a cache nobody bounded.

Database & Cache Performance10

Diagnosing the storage layer from the outside: slow-query workflow, scan versus index, lock waits with idle CPU, pool saturation, replication lag, hit rates that lie, stampedes and hot keys.

Queue & Worker Performance5

Arrival rate against service rate, why depth alone is the wrong alarm, oldest-message age as the honest signal, retry storms that feed themselves, and worker pools that saturate quietly.

Runtime Performance6

Garbage collection, event-loop lag, interpreter overhead, allocation cost and warm-up — labelled per runtime, because none of this generalizes across JS, Python, Go, the JVM and C++.

Frontend Performance6

The user's half of the latency budget: the browser waterfall, Core Web Vitals as user-experience signals, JavaScript cost beyond bytes, images, and layout work that blocks the first paint.

Distributed Systems Performance6

What changes when the work crosses machines: fan-out and tail amplification, sequential versus parallel dependency calls, cross-region propagation delay, jitter, and the cost of coordination.

Capacity & Cost6

How much load the system can take, how much headroom is left, whether autoscaling arrives in time, and what a request actually costs — capacity and efficiency as separate questions.

Load Testing & Benchmarking7

Producing numbers that mean something: load-test shapes, coordinated omission, benchmark hygiene, microbenchmark versus end-to-end, and telling a real regression from noise.

SLOs & Alerting8

Turning user experience into a measurable objective: SLIs, SLOs and SLAs kept distinct, error budgets as a decision tool, alerts worth waking up for, burn rates, and dashboards built around questions.

Incident Debugging7

Evidence-based diagnosis under pressure: reading a timeline, separating correlation from causation, watching the bottleneck move after every fix, and the trade-offs that make a system faster but worse.

AI & Agent Performance5

The newest latency budget: time to first token, tool-call chains, step counts, retries and context size — where agent latency, cost and quality trade against each other.

Every number here is labelled

§163 — performance is workload-, runtime- and environment-sensitive, so a figure without conditions is folklore.

MEASURED

A real published measurement, with its conditions named.

ESTIMATED

Arithmetic from stated assumptions. Change one and the number changes.

SIMULATED

Produced by a model in this app. Right shape, invented magnitudes.

ILLUSTRATIVE

Invented to teach a shape. The relationship is the lesson, not the number.

Simulated output is never presented as measurement. Runtime-, engine- and web-specific claims say which runtime, which engine, which platform — because "Python is slow" and "CPython's interpreter dispatch costs more per bytecode than a JIT" are not the same statement, and only one of them is useful.