CodeZettaInterview Hub

Node.js · APIs · Tech Lead · Debugging

Debugging: intermittent 502s from Node behind nginx.

Short Interview Answer

Check upstream timeouts, keep-alive mismatches, unhandled crashes, and slow event loop.

Detailed Explanation

Align proxy_read_timeout with app. Ensure health checks hit a lightweight route. Inspect crash logs and OOM kills.

Did you know this answer?