@zero-server/lifecycle
v1.0.2
Published
Graceful shutdown manager and multi-worker clustering.
Maintainers
Readme
@zero-server/lifecycle
Graceful shutdown manager and multi-worker clustering.
Graceful shutdown with signal handlers, in-flight request draining, automatic WebSocket / SSE / database cleanup, plus multi-worker clustering with auto-respawn and exponential backoff.
Install
npm install @zero-server/lifecycleOr install the full SDK to get everything at once:
npm install @zero-server/sdkUsage
const { LifecycleManager, LIFECYCLE_STATE, ClusterManager } = require('@zero-server/lifecycle')Public surface
This package provides 4 public exports as a standalone runtime bundle. See the scope page for the full list.
Documentation
License
MIT © Anthony Wiedman
