Jio · 2023 — 2024
Chasing intermittent 504s across four services
Requests failed intermittently somewhere along a React → Node BFF → Django → Azure chain. No single service looked broken in isolation, which is exactly what made it expensive.
Case study
Error rate 1.2% → 0.02%
The problem
Users hit intermittent gateway timeouts. Each service dashboard looked healthy, because each one only saw its own slice of the request. Without a way to follow one request across all four hops, every investigation restarted from scratch.
The constraint
The failure was intermittent and crossed four systems owned by different teams, in two languages, on two clouds. Reproducing it on demand was not possible, so the fix had to come from evidence gathered in production.
What I did
- Instrumented the chain with OpenTelemetry and threaded a correlation ID through every hop, so a single failing request could be reconstructed end to end
- Used the resulting traces to locate where latency actually accumulated, rather than where it was assumed to
- Tuned HTTP keep-alive behaviour along the chain once the traces showed connection churn was the cost
The number
- Error rate fell from 1.2% to ~0.02%
- A repeatable way to trace any future cross-service failure
What I would do differently
The instrumentation should have existed before the incident, not because of it. The investigation took weeks; once the trace was readable, the fix took an afternoon. That ratio is the whole argument for wiring correlation IDs in on day one.
Stack
- OpenTelemetry
- Node.js
- React
- Django
- Azure
Open to work
Hiring for something that has to stay fast under load?
I'm open to senior and staff full-stack roles, remote or in India. The quickest way to start is a short email about the problem you're trying to solve.