API latency learning path
Backend engineers preparing for interviews on API latency, measurement, and optimization.
Your progress
L1 · 0 of 2L2 · 0 of 7L3 · 0 of 5
Next
Level 1 · 2 questions. Begin with what gets asked in the first ten minutes. Levels 2 to 4 build on it.
Level 1First ten minutesTwo-sentence answers to what gets asked first.
Interview questions
- 1.1Why percentiles and not the average?Must‑knowReview againNext1 min
Phase 3: Verify
- 2.1Rerun the same load test against the baselineReview againNext1 min
Level 2Daily jobWhat you use at work every week.
Phase 1: Measure first
- 1.1Set a baseline (k6, JMeter or Locust; p50, p95, p99 and throughput)Must‑knowReview againNext2 min
- 1.2Find the bottleneck with APM tracesMust‑knowReview againNext3 min
- 1.3Find slow queries: pg_stat_statements and EXPLAIN (ANALYZE, BUFFERS)Must‑knowReview againNext2 min
Phase 3: Verify
- 2.1Dashboards and alerts for regressionsReview againNext1 min
Interview questions
- 3.1How do you make sure an application meets its performance requirements?Must‑knowReview againNext1 min
- 3.2How do you find and fix an N+1 problem?Must‑knowReview againNext3 min
- 3.3OFFSET pagination is slow on page 5,000. Why, and how do you fix it?Must‑knowReview againNext4 min
Level 3SeniorProduction trade-offs and failure modes.
Phase 1: Measure first
- 1.1Check database health (seq_scan, dead tuples, lock waits, buffer hit ratio)Review againNext1 min
Interview questions
- 2.1Your API p99 went from 200 ms to 2 s. What do you do?Review againNext7 min
- 2.2When do you add a cache, and what are the risks?Review againNext7 min
- 2.3How do you design monitoring and alerting systems?Review againNext2 min
- 2.4What is monitoring and observability, and how do Prometheus and Grafana fit?Review againNext2 min
Each card is a topic. Columns go from Level 1 to Level 4; the outlined card is where you are.