Analyze end-to-end request latency
Company: Adobe
Role: Software Engineer
Category: System Design
Difficulty: hard
Interview Round: Technical Screen
Provide a detailed approach to analyze and improve end-to-end request latency in a web application. The request flows from a browser through a CDN, load balancer, API gateway, microservices, caches, databases, and third‑party services. How would you instrument both client and server to capture metrics such as TTFB, total blocking time, network RTT, queueing, service processing time, database query latency, cache hit/miss rates, and external dependency latency? How would you attribute latency to frontend vs. backend components, investigate p50/p95/p99 outliers, and identify bottlenecks? What changes or experiments would you run to reduce latency without regressing error rate or throughput, and how would you define SLIs/SLOs, dashboards, and alerts?
Quick Answer: This question evaluates proficiency in end-to-end latency analysis, observability and instrumentation (client and server), distributed tracing, performance engineering, and SLI/SLO definition.