A couple of quick questions about passivate and PersistentActors:

Can other actors still send messages to persistent actors that have been 
passivated?

Will these messages cause the persistent actor to be reactivated?

I am asking about this in single node and clustered context.

I saw elsewhere that Patrik has written this in the cluster/sharding 
context:

- all messages are sent via the Manager actor, which creates child 
> Aggregate instances on demand
> - when receiving a message the Manager extract the Aggregate identifier 
> from the message
> - the Manager creates a new child Aggregate actor if it doesn't exist, and 
> then forwards the message to the Aggregate
> - the Aggregate can passivate itself by sending a Passivate message to the 
> parent Manager, which then sends PoisonPill to the Aggregate
> - in-between receiving Passivate and Terminated the Manager will buffer 
> all incoming messages for the passivating Aggregate
> - when receiving Terminated it will flush the buffer for the Aggregate, 
> which can result in activation again
> The PoisonPill can be replaced with some other custom stop message if the 
> Aggregate needs to do further interactions with other actors before 
> stopping.


Thanks in advance for any answers.

Cheers,
Ashley.


-- 
>>>>>>>>>>      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 akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
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