All Questions
Api Design hard

A user reports a slow request. It traverses 8 microservices. How do you identify which service caused the latency?

  1. A Implement Distributed Tracing (e.g., OpenTelemetry) to propagate a unique Trace ID across all service boundaries, allowing for a unified visualization of the request's execution path.
  2. B Aggregate and synchronize the high-resolution system logs from all involved microservices using a centralized timestamp-ordered index to manually correlate the entry and exit times.
  3. C Enable verbose network-level packet capture on every container's virtual interface to analyze the exact TCP transmission and acknowledgment delays between specific service instances.
  4. D Deploy a health-check circuit breaker that periodically pings every internal endpoint and flags any service that fails to respond within a predefined P99 latency threshold.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions