Interview Prep/Networking/TLS, HTTP & Application Layer

Your proxy retries failed POST requests and customers are charged twice. What do you change?

IntermediateScenarioTLS, HTTP & Application Layer
Answer

Situation read → Retries are only safe for idempotent requests.

What I'd do →

  1. Disable automatic retries for non-idempotent methods in the proxy (Nginx proxy_next_upstream off; or limit to error timeout with non_idempotent not set)
  2. In Envoy set retry_on carefully and avoid POST
  3. Add idempotency keys in the API so retries are safe
  4. Log request IDs through every hop to find duplicates

Why → A timeout does not mean the request failed; the backend may have completed it.

Interview tip → Say safe retries need idempotency keys, not just luck.

All Networking questions Roadmap: Networking for DevOps

More on TLS, HTTP & Application Layer