S
S
Space2018-04-06 14:20:12
PHP
Space, 2018-04-06 14:20:12

How to send a command to supervisor worker?

I have a supervisor who raises several dozen instances of the workers I need. But I need to make each individual worker manageable so that I can send a specific command to everyone, and each worker, based on some logic inside, executes the command.
I was thinking of using reactphp sockets so that each worker has a connection. The server sends a command and you're done.
So I decided to ask, what if I'm making a bike and there is some solution?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Skobkin, 2018-04-07
@skobkin

Isn't it easier for you to use some Gearman?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question