Re: [akka-user] How can I be notified if a message send to ClusterClient cannot be delivered because that cluster is down?

2015-07-10 Thread Roland Kuhn
Yes, this is in general what is necessary between distributed communication 
partners (a.k.a. Actors). There are several reasons why no error reply is 
generated: which type should it have? (thinking ahead towards Akka Typed, but 
the question is semantically relevant already today) And how reliable is this 
notification? Our experience is that people will inevitably rely upon features 
as soon as they exist, not considering whether the feature has a caveat like 
“non-delivery may go undetected”.

As a general side note (independent of this thread): exposing DeadLetters via 
the EventStream has already inspired several teams to implement “reliable 
delivery” based on this loss notification, but please always remind yourself 
that deadLetters are not reliable themselves! Psychology is a funny thing ;-)

Regards,

Roland

> 9 jul 2015 kl. 13:59 skrev john.vie...@gmail.com:
> 
> I looked at scala source code and see that  when no backend connection exists 
> the message is stashed. 
> So I guess my only option is to work with a receive timeout on the sender of 
> the message...
> 
> Am Donnerstag, 9. Juli 2015 11:54:57 UTC+2 schrieb john@gmail.com:
> If the cluster backend goes down the clusterclient from now on logs 
> "Association with remote system [akka.tcp://Cluster@127.0.0.1:8098 
> ] has failed, address is now gated"
> 
> I would expect a message that is now send to the ClusterClient to be 
> forwarded to death letters. But this doesn't happen.
> How can I get notified that this message cannot be delivered?
> 
> 
> 
> -- 
> >> 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 
> .



Dr. Roland Kuhn
Akka Tech Lead
Typesafe  – Reactive apps on the JVM.
twitter: @rolandkuhn
 

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


[akka-user] How can I be notified if a message send to ClusterClient cannot be delivered because that cluster is down?

2015-07-09 Thread john . vieten
If the cluster backend goes down the clusterclient from now on logs 
"Association with remote system [akka.tcp://Cluster@127.0.0.1:8098] has 
failed, address is now gated"

I would expect a message that is now send to the ClusterClient to be 
forwarded to death letters. But this doesn't happen.
How can I get notified that this message cannot be delivered?


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