If you start two persistent actors they will recover independently of each
other. That doesn't change because they are in a router pool. Probably you
also used the same persistenceId for both instances and that is not allowed.

Sounds good that you use a different design.

/Patrik

fre 1 apr. 2016 kl. 17:03 skrev Yan Pei <[email protected]>:

> We redesign our application to not configure router for the persistent
> Actor.
>
>
> On Friday, April 1, 2016 at 9:29:38 AM UTC-5, Yan Pei wrote:
>>
>> I've configured a router for one of my persistent Actor  in the
>> application.conf.
>>
>> for example:
>>
>>  deployment {
>>
>>       "/my-router" {
>>         router = round-robin-pool
>>         nr-of-instances = 2
>>       }
>> }
>>
>> From the log, I can see both of the instance were started.
>>
>> [INFO] [04/01/2016 09:22:36.937]
>> [example-akka.actor.default-dispatcher-4]
>> [akka://example/user/my-router/$a] Starting
>> [INFO] [04/01/2016 09:22:36.937]
>> [example-akka.actor.default-dispatcher-2]
>> [akka://example/user/my-router/$b] Starting
>>
>>
>> On recovering, the two instances of persistent Actor will send the
>> recovered message to the destination which is duplicated. I am expected the
>> recovered message only being processed once by either of the instance.
>>
>> Is it known issue or something I missed?
>>
>> Thanks,
>> Yan
>>
> --
> >>>>>>>>>> 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 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 [email protected].
To post to this group, send email to [email protected].
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