Graceful Shutdown
When a GraphQL server is redeployed or terminated, it should stop accepting new work while allowing active operations to finish within a controlled period.
Graceful shutdown is especially important for long-running operations and WebSocket subscriptions. The server should close connections cleanly and release resources such as database pools and message consumers.