Ktor 2.3.0 graceful shutdown: enabling zero‑downtime migration of a small application
Goal To perform a blue‑green deployment of a small Ktor 2.3.0 application without exposing clients to 503 errors, relying on the built‑in graceful shutdown mechanism that stops accepting new requests while draining in‑flight traffic. Constraints The application must be started with start(wait = false) so that a shutdown hook can invoke server.stop() . The lo