Skip to content
tezvyn:
Menu

Latency

47 bites tagged Latency: interview questions with model answers, and 60-second explainers.

Test yourself: Top 30 Latency interview questions →Multiple choice, with the correct answer and why it is correct on every question. Free, no sign-in.
Monitoring & SRE1 min read

Why tail latency (p99) matters

Averages hide the worst experiences, and fan-out amplifies tails so most requests touch a slow path; causes include GC pauses, queueing, contention, and noisy neighbors.

Monitoring & SRE1 min read

Diagnose a degraded canary release

Check statistical significance versus baseline, confirm apples-to-apples comparison, isolate the cause via traces and logs, then weigh the regression against SLO budget.

Monitoring & SRE1 min read

First steps on a p99 latency page

Confirm scope and blast radius, check recent changes and deploys, then look at dependencies and resource saturation.

Monitoring & SRE1 min read

Writing SLIs in PromQL

Availability is good requests over total using rate and non-5xx counters; latency uses histogram_quantile over rate of buckets summed by le.

Monitoring & SRE1 min read

Prometheus histogram versus summary

Histograms expose bucket counts and let you compute aggregatable quantiles at query time; summaries compute fixed quantiles per instance that cannot be combined.

Monitoring & SRE1 min read

Histograms versus summaries for latency

Histograms store bucket counts and stay aggregatable with query-time approximate quantiles; summaries precompute quantiles per instance that cannot be averaged.

Monitoring & SRE2 min read

Essential tags for a request latency metric

Add method, route template, status code, and maybe service or region; they enable slicing while staying low-cardinality.

Monitoring & SRE2 min read

Diagnosing a healthy p50 but breaching p99

One percent of requests are slow, hurting power users and fan-out calls; investigate GC, locks, contention, cold caches, retries.

Monitoring & SRE2 min read

Proposing availability and latency SLIs for an auth API

Availability as the ratio of successful valid requests; latency as the fraction served under a threshold; measure at the edge from the user's view.

Monitoring & SRE2 min read

Why use latency percentiles over the average?

Averages hide the tail and are skewed by outliers, so most users can suffer while the mean looks fine; use percentiles; prioritize p99 when tail users are high-value or fan-out…

Monitoring & SRE1 min read

What are the Four Golden Signals?

Name latency, traffic, errors, and saturation; explain each briefly; describe measuring latency as a distribution separating success from failure.

LLMs & Generative AI2 min read

Dynamic batching and the throughput-latency trade-off

The server groups concurrent requests into one batch to use the GPU fully, but larger batches and waiting to fill them raise per-request latency and time to first token.

LLMs & Generative AI1 min read

Three techniques to cut LLM inference latency

Quantization shrinks weights with small accuracy risk, KV-cache plus continuous batching boost throughput, speculative decoding drafts tokens for lossless speedup.

LLMs & Generative AI1 min read

Designing a production LLM summarization eval

A representative gold set, quality via human or LLM-as-judge plus faithfulness checks, and operational metrics like p95 latency and cost per request.

Docker & Kubernetes1 min read

Pinning exclusive CPU cores to a pod

Set kubelet CPU Manager policy to static, make the pod Guaranteed QoS with integer CPU limits equal to requests, so it gets exclusive dedicated cores.

Databases & Architecture1 min read

Diagnosing database latency layer by layer

Split total time into pool-wait, query execution, and ORM-generated query patterns; use metrics at each layer.

Databases & Architecture1 min read

Tuning a database connection pool

Max size, min idle, connection and max-lifetime timeouts; size from cores and latency, not guesswork.

Data Science & Analytics2 min read

Minimizing model prediction latency end to end

Shrink the model via quantization, pruning, distillation, compilation; cut infra latency via caching, edge, faster runtimes.

Data Science & Analytics1 min read

Batch prediction versus online real-time prediction

Batch is scheduled bulk scoring, online is low-latency per-request scoring; contrast latency, freshness, cost; give a use case each.

Computer Vision1 min read

Challenges deploying a model on edge hardware

Limited memory and compute cause latency, thermal and power limits, accuracy loss from compression, operator support gaps.

Cloud Platforms1 min read

Serverless cold starts and how to mitigate them

A cold start is the latency to provision and initialize a fresh environment; mitigate with provisioned concurrency, smaller packages, and lighter runtimes.

Cloud Platforms2 min read

Cold starts in serverless environments

A cold start is the delay to provision a fresh instance and initialize the runtime; mitigate with provisioned concurrency and by shrinking init work.

Cloud Platforms1 min read

Accelerating uncacheable dynamic traffic globally

Terminate TLS at a nearby edge and ride the provider backbone via Global Accelerator or CDN dynamic acceleration; add edge compute; ultimately deploy multi-region.

Docker & Kubernetes2 min read

Diagnosing latency with distributed tracing

Follow the trace ID across spans, compare per-span durations to find the slow hop, distinguish service time from network and queueing.

Get Latency bites daily.

Five a day, five minutes, offline. With quizzes so it sticks.

The iPhone app is on the way

We are building it. Until it lands, nothing here is held back from you: every interview card, your saved cards, streaks and the job board all work in Safari, plus hundreds of free practice quizzes of thirty questions each. Sign in and it all carries over to the app the day it arrives.

Want it as an icon? Tap Share at the bottom of Safari, then Add to Home Screen. It opens full screen and the cards you have read stay available offline.

Get it on Google PlayiPhone app coming soon