System design / 4 simulations
Observability for System Design
Observability you can see: metrics vs logs vs traces, distributed tracing waterfalls, head and tail trace sampling, and metric cardinality.
Open the lab → Change the load, break a part, watch what happens. Free, no sign-up.
How to see what a running system is doing
When users say the site is slow, you need to find which service, which request and which line is to blame, quickly. Observability is the set of signals that make that possible: metrics tell you something is wrong and how much, logs tell you what happened in one place, and traces follow one request across every service it touched.
Each signal has a cost. Logging everything fills disks and bills; tracing every request is expensive, so systems sample, and the choice between deciding at the start (head sampling) or after seeing the result (tail sampling) decides whether the rare slow request is kept. Metrics are cheap until a label such as user id multiplies them into millions of series.
Good practice ties the signals together with shared ids and turns them into alerts on what users feel, using SLOs and error budgets. The simulations below walk through a real incident with each signal, a trace waterfall, sampling choices and the label that brings Prometheus down.
All topics: observability
- Metrics vs logs vs traces: which one finds the problem?Beginner · 5 min
Pick an incident and the signals you pay for. Metrics alert fast, traces point at the slow span, logs find one customer, and the bill grows with logs.
- Distributed tracing: spans, waterfalls and the critical pathIntermediate · 5 min
A checkout request as a trace waterfall. Slow down the database or payments, call services in parallel, and lose the trace header to break the trace.
- Trace sampling: head vs tail and the errors you loseIntermediate · 5 min
Keep 1% of traces with a coin flip and you lose 99% of the errors. Tail sampling keeps every error and slow request but needs collector memory.
- Metric cardinality: the label that breaks PrometheusIntermediate · 5 min
Labels multiply time series. Method, route and status are fine; add a user id or raw URL path and watch series, memory and query time explode.
Other topics
- System Design Basics
- Scaling Databases and Caches
- Queues, Kafka and Streaming
- Reliability and API Gateways
- Security and Authentication for System Design
- Testing and Reliability for System Design
- Networking and API Design for System Design
- Distributed Systems Patterns for System Design
- Database Internals for System Design
- Data Platform and Data Engineering for System Design
- DevOps and Cloud Infrastructure
- Payment System Design
- System Design Interview Questions