I have one more question, if you please.

It seems that you have a control actor (singleton), which knows about 
Pipelines, and the pipelines are actually started in a cluster. And every 
pipeline creates its own set of FSM actors *locally**, *passing them the 
references to the stateless worker actors.

What I'm trying to get is slightly different scenario - I need to have a 
set of FSM actors with role *"A"* in the cluster, and set of FSM actors 
with role *"B"* in the cluster, and set of workers with role *"W"* in the 
cluster - that's not a problem. But due to the nature of FSM, it can not 
process several tasks at once, so I need to "lock" actors of role *"A"* and 
*"B"* somehow for new tasks.

It's easy to perform such a locking in the singleton actor, which keeps 
references to actors *"A"*, but I'm not sure how to implement lock of 
actors pf role *"B"* - because these actors could be accessed from 
literally any of actor of type *"A"*

I can think of 2 ways:

1) maintain another singleton actor, which will keep references to actors 
with role *"B"*, so any FSM in *"A"* will ask this actor for a path to *"B"*
2) every actor in *"A"* will subscripe to MemberUp events ot role *"B"* and 
will keep trying to send a message to every of known actor of type *"B"*until 
the message will be accepted (actor 
*"B"* will reject incoming message if it's processing another one)

May be there's another, more elegant solution? Perhaps Akka cluster can 
have custom statuses assigned to the actor?

Thanks!

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to