A 504 must be broken down between the proxy network and backend processing time.
Steps.
- Identify the component that returns 504 — Proxy, CDN or load swing.
- Tester backend direct — If possible without circumventing safety.
- Measure duration – Find the timeout threshold.
- Read /10 application – Seek slow request or dependency.
Commands
curl -I https://example.com
Key takeaways
- Adding timeout is not a lasting correction.
- Compare with CPU, DAB and backend network.