On 20.01.14 16:39, [email protected] wrote:
Martin,
thank you for understanding my question ;)
Of course I will dive into details soon, now I was trying to see
applicability of the framework for some simple use-cases.
if SenderActor is itself a processor SenderActor must be a cluster
singleton
From what I have already seen in the docs, I should have a
singleton SenderActor in cluster per processorId, correct?
yes
If this is true, then my responsibility is to start a new incarnation
of SenderActor with the same processorId after its node is crashed
(done automatically by Singleton extension from akka-cluster I suppose).
yes
--
Vatel
Hi Vatel,
On 20.01.14 13:40, [email protected]
wrote:
Endre,
for example: SenderActor at NodeA is ready to send Message1 (maybe
this is some request got from http client or a message from some
other actor) to ReceiverActor, but the ReceiverActor is unreachable
(it will not ACK the Message1). After that the whole NodeA fails.
Will Message1 be processed by another instance of SenderActor in
cluster?
Yes, if you use a replicated journal
<http://doc.akka.io/docs/akka/snapshot/scala/persistence.html#community-projects>
(or a shared journal
<http://doc.akka.io/docs/akka/snapshot/scala/persistence.html#shared-leveldb-journal>
for testing purposes). Furthermore,
- if SenderActor is itself a processor (communicating via a
(non-persistent) channel
<http://doc.akka.io/docs/akka/snapshot/scala/persistence.html#channels>
with ReceiverActor), SenderActor must be a cluster singleton.
- if SenderActor is a plain actor (communicating via a persistent
channel
<http://doc.akka.io/docs/akka/snapshot/scala/persistence.html#persistent-channels>
with ReceiverActor), the persistent channel must be a cluster
singeton.
Similar things apply to views
<http://doc.akka.io/docs/akka/snapshot/scala/persistence.html#views>
(reading from a replicated journal).
Hope that helps.
--
Martin Krasser
blog: http://krasserm.blogspot.com
code: http://github.com/krasserm
twitter: http://twitter.com/mrt1nz
--
Read the docs: http://akka.io/docs/
Check the FAQ: http://akka.io/faq/
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/groups/opt_out.