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 →
- Disable automatic retries for non-idempotent methods in the proxy (Nginx
proxy_next_upstream off;or limit toerror timeoutwithnon_idempotentnot set) - In Envoy set
retry_oncarefully and avoid POST - Add idempotency keys in the API so retries are safe
- 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.
More on TLS, HTTP & Application Layer
Explain what happens in a TLS 1.3 handshake in a few sentences.BeginnerYour site must redirect all HTTP traffic to HTTPS. How do you do it?BeginnerWhat is the difference between 4xx and 5xx errors, and which ones do you see most in networking problems?BeginnerHTTP/1.1, HTTP/2 and HTTP/3: what changed and why does it matter in operations?BeginnerThe browser console shows a CORS error when your frontend calls your API. What is it and how do you fix it?BeginnerHow do you check which certificate a server presents and when it expires?Beginner