A PersistentActor with a given persistenceId can only be active at one
place (single writer principle). Cluster Sharding will help you with that.

/Patrik
fre 12 jan. 2018 kl. 09:08 skrev Martynas Mickevičius <
martynas.mickevic...@lightbend.com>:

> Hi,
>
> are your Cassandra nodes in one cluster?
>
> On Fri, Jan 12, 2018 at 2:17 PM <j...@spineor.com> wrote:
>
>> Hi
>>
>> I have just started using Akka and creating a demo application using Akka
>> persistence. This application has only one actor persisting event in
>> cassandra. I am running this application in docker cluster. Currently I am
>> running it in 3 nodes. But the problem I am facing is when I am persisting
>> any event, the node which gets hit is update by that event, but other two
>> nodes are not getting updated by that event. So when I am fetching the even
>> it some times comes blank and some times it fetches the event, depending
>> upon which not gets the fetch request. Will cluster sharding help me on
>> this. I am not if this is the proper use case of sharding. Kindly suggest
>> me a solution on this.
>>
>> Thanks
>> Joy
>>
>> --
>> >>>>>>>>>> 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 https://groups.google.com/group/akka-user.
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> >>>>>>>>>> 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 https://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
>>>>>>>>>>      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 https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to