masomo / coyote

Blazing Fast PHP application server
MIT License
13 stars 0 forks source link

Worker Pool #4

Open unexge opened 3 years ago

unexge commented 3 years ago

We want a worker pool, that maintains pool of workers (this can be statically configured or dynamically increase or decrease) and delegates incoming requests to available workers and respond back with response from the worker. There are also some additional requirements such as worker timeouts (one worker doesn't respond to the request in expected time), soft restarts (worker needs restart so i can't handle request at the time), graceful shutdowns (workers should complete current requests but shouldn't receive new requests), worker pool should support these cases.

unexge commented 2 years ago

Partially fixed by https://github.com/masomo/coyote/pull/9