Graceful Shutdown: In‑flight requests during zero‑downtime migration
Goal We need to migrate a small Ktor application without service interruption. The plan relies on Ktor’s Graceful Shutdown, which stops accepting new connections and waits for existing requests to finish. Constraints The default gracefulShutdownTimeout is 30 s, and any new request after shutdown begins receives a 503 Service Unavailable. Long‑running handler