Open TCMiranda opened 8 years ago
@TCMiranda in my opinion the right solution is the first. Workers can communicate between them via a Pigato client as well, so no need of direct interaction.
Sometimes you may want to reuse code between multiple workers. There you have two solutions:
@prdn thanks for your answer!
So, if workers are connected to the "handlers broker" as clients, you would agree to allow them to "communicate" by messages without a separate layer like the second case?
Like this:
The second solution you mentioned would be that case when a worker posts another message as a client to finish its request, right?
Hello guys,
I am using Pigato in some projects for now, but sometimes I still get confusing about allowing workers to communicate or even to use each others services.
In some scenarios, I prefer to not allow sub levels of workers, but in other scenarios, this gives me much duplicate code, which I solve creating shared modules.
To illustrate a little better:
So, what are your thoughts about it? Does anyone knows some good reference on this subject?