Boost Multi-Server Manager

•
12
•

Orchestrates multiple network listeners in a single Go binary with coordinated lifecycle, fail-fast semantics, and graceful shutdown.

Boost Multi-Server Manager simplifies the complexity of running multiple listeners—such as a main HTTP API, a gRPC service, and a Prometheus metrics endpoint—within a single Go application. By providing a standardized orchestration layer using the boost/extra/multiserver package, it eliminates the need for hand-rolled goroutines and sync.WaitGroups. It ensures that all listeners start correctly, fail fast if any port is blocked, and shut down gracefully in parallel upon receiving a termination signal, maintaining high availability and clean exits for complex microservices.

主な機能

01Coordinated lifecycle management for multiple network listeners
02Centralized configuration for drain timeouts across all listeners
03Fail-fast semantics that stop all servers if any listener fails to bind
04Standardized implementation for heterogeneous servers like HTTP, gRPC, and Metrics
05Parallel graceful shutdown for all registered servers on SIGTERM
0612 GitHub stars

ユースケース

01Running a Prometheus metrics scraper on a separate port from the main application
02Implementing an independent health check side-car listener for Kubernetes readiness probes
03Exposing a primary REST API alongside a dedicated internal gRPC service