Reliability and scale · mid
Availability, SLOs, monitoring and latency
Availability is measured as the success rate of real requests. Set SLOs, alert on burn rate, watch percentiles not averages, and trace requests across services.
Explain it out loud
Explain it out loud to an AI interviewer that follows up, and see where your answer is thin.
Practise by voiceThe notes
What you must know
- Downtime in a 30-day month: 99.9 percent is about 43 minutes, 99.95 percent about 22 minutes, 99.99 percent about 4.3 minutes (about 53 minutes a year).
- Dependencies in a chain multiply: 0.9995 to the power 6 is about 99.7 percent. Four nines needs redundancy, async paths and fallbacks.
- SLI is the measurement, SLO is the internal target, SLA is a contract with penalties, usually looser than the SLO. Error budget is one minus the SLO; when it is spent, risky releases stop.
- Measure from the user side where possible, plus synthetic checks. Do not measure as the server is up.
- Monitor rate, errors and duration (p50, p95, p99) plus saturation (CPU, pool usage, queue depth), per endpoint and per payment method and bank.
- Alert on what users feel (SLO burn rate over a short and a long window), not every CPU spike. Pages only for urgent, actionable problems; the rest become tickets. Add runbooks and remove noisy alerts.
- Traces (OpenTelemetry) with one trace id from the gateway through each service to the bank call; structured logs with the request id. Never log card numbers, UPI PINs, OTPs, full account numbers or tokens.
- P99 jumped after a deploy: averages hide the tail. Compare canary and old version by endpoint, read traces, check dependency latency, GC and the slow query log. Roll back if the impact is real. Canary analysis should compare p99 with automatic rollback.
The red pen
Common traps: mistake → fix
Mistake: We promise four nines with one database primary and manual failover
Fix: it cannot hold.
Mistake: Alert on CPU only
Fix: alert on user impact.
Mistake: Averages are enough
Fix: the tail hurts users.
Mistake: Raise timeouts to fix latency
Fix: find where the time goes.
Easy to hard
Questions interviewers ask, easy to hard
- What does four nines of availability mean?
- What is the difference between SLI, SLO and SLA?
- Design monitoring and alerts for a payments API.
- p99 latency jumped after a deploy. How do you investigate?
Explain it out loud
Explain it out loud to an AI interviewer that follows up, and see where your answer is thin.
Practise by voiceYour first interview is free
Sign up and start with a 15-minute interview with the full report, and an English conversation. No card needed.