On Mon, Feb 9, 2015 at 8:55 AM, 최영규 <[email protected]> wrote:

>  hi. every body. i'm newbie akka.
> i'm sorry but i don't english very well.
>
> i'm using akka cluster sharding. it's very good and nice performance.
>
> but i've got some problems.
>
> when node was unreachable, it to be down(auto down).
> but coordinator send a message to unreachable node until it's going down.
> so cluster lost these messages at this time.
>
> i solve this problem, i'm apply at least once delivery at persistent actor.
> this will redelivery while node was unreachable and down.
>
> it's perfect?
> cluster don't lost messages, but it's duplicated.
> i understand "at least once" mean.
> my code is delivery to shardRegion some message.
>
> deliver(aShardRegion.path, deliveryId => ASomeCommand(someParam,
> deliveryId, someParam))
>
> "deliver" function is send to actorSelection(path) results.
> so it  send duplicated messages.
>
> can you understand my english?
>
>
> summarize
> my problem : messages were lost when node status is unreachable(this node
> was down and removed then messages delivery success ).
>

yes, messages can be lost


> solution1. how to "delivery" to the node(cluster sharding)?
>

I think your solution of using AtLeastOnceDelivery and deliver via the
shardRegion looks good. Do you have any problems with it?


> solution2. how to avoid lost messages when node was unreachable?
>

that is impossible

/Patrik


>
> i'm need your help.
> thank you.
>
>  --
> >>>>>>>>>> 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.
>



-- 

Patrik Nordwall
Typesafe <http://typesafe.com/> -  Reactive apps on the JVM
Twitter: @patriknw

[image: Scala Days] <http://event.scaladays.org/scaladays-sanfran-2015>

-- 
>>>>>>>>>>      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