JavaScript
You're viewing a free preview. Sign in free to read every script.
Why this exists A service that runs in Kubernetes or behind a load balancer needs a few things that tutorials skip: health endpoints, structured logs, and, most importantly, the ability to finish in flight requests when…
A Small HTTP Service with Health Endpoints and Graceful Shutdown
A production-shaped Node service with only the standard library: liveness and readiness endpoints, a metrics page, JSON request logging, and shutting down cleanly on SIGTERM so Kubernetes rollouts do not drop requests.
Sign in free to read this script, along with the rest of the library.
Sign in free