github.com/lnquy/elastic-worker-pool (go): Package ewp is the implementation of elastic/dynamic worker pool (EWP) with graceful shutdown.  After started up, EWP controller automatically monitors the workload level of the pool and based on that to determine the pool size need to be expanded (spawn more workers) or shrunk (kill free workers).  Create EWP with default configs:  Or create EWP with full customized configs:  Or create a fixed traditional worker pool:  Send jobs to EWP to be processed later:  Send jobs with timeout:  Gracefully shutdown the EWP:
Keywords: dynamic|elastic|go|golang|graceful-shutdown|worker-pool