node-worker-nodes icon indicating copy to clipboard operation
node-worker-nodes copied to clipboard

Worker and nodesocket server

Open Patrick88-vecoux opened this issue 4 years ago • 1 comments

FFMPEg runs in a worker, and in the main a node webserver who use sockets is waiting for instructions. But the web server can't respond during ffmpeg is running : why ??

Patrick88-vecoux avatar Mar 29 '20 13:03 Patrick88-vecoux

If a worker that runs ffmpeg is occupied and cannot accept a new task, it should not block any other code execution in other v8 contexts. So your webserver should answer on endpoints that are not, in their handling logic, waiting for ffmpeg worker to finish (i.e. status endpoints etc.).

Could you share a code snippet that describes your setup?

kwiatkk1 avatar Jun 26 '20 09:06 kwiatkk1