These are chat archives for akkadotnet/akka.net

27th
Mar 2018
Jeff Pang
@jeff-pang
Mar 27 2018 05:02
Hi everyone, may I know if any of you have any experience or resources on Akka Java on Android?
Can't seem to find much info on this topic. is Akka (Java) even compatible with Android?
AndreSteenbergen
@AndreSteenbergen
Mar 27 2018 05:56
No experience for me, but if you are using remote, I would use some extra middle layer communicating with your clients, like RabbitMq
Using remote exposes your entire network.
Arjen Smits
@Danthar
Mar 27 2018 06:27
@boekabart added some remarks. I suppose you need to add some more examples to illustrate the need for this change ;)
Arsene T. Gandote
@Tochemey
Mar 27 2018 06:55
@jeff-pang All I can tell you is that I have used it with Xamarin and it works smoothly. Instead of Http I use akka remote to communicate between the mobile app and the backend service. So the mobile app had a mini akka system.
There is no harm in trying
Arsene T. Gandote
@Tochemey
Mar 27 2018 07:20
Hello geeks how different is the Polly circuit breaker from the Akka.NEt one because I am not seeing any where how to handle the exception.
Bart de Boer
@boekabart
Mar 27 2018 07:47

@Danthar

@boekabart added some remarks. I suppose you need to add some more examples to illustrate the need for this change ;)

I've elaborated a bit in the ticket, and will try to add actual code examples. But since the problem is mainly caused by the need to be able to 'compose' actors in a generic way, it's not so trivial to explain in a simple example.

Arjen Smits
@Danthar
Mar 27 2018 07:53
Ok, So if i understand correctly. Sometimes you want the original sender, so you use (s) => new msg(s) as the func
and sometimes you want to use a different sender, so you use (s) => new msg(d) as the func
and the reason you want this message factory func, because it would enable you to NOT use all kinds of nasty fallback code in either the sending or receiving code
/cc @boekabart
Greatsamps
@Greatsamps
Mar 27 2018 14:19
Hey Guys, i have a question about performing an orderly shutdown. I am aware that it is benefitial for an actor node to be taken offline gracefully so that the cluster is aware that it is gone for a specific reason and has not just simply failed. When running in a micro-services situation where nodes will often be running via docker, is there any way that a graceful shutdown can be performed, or do you just have to deal with it being dirty as docker stops the container?
Bart de Boer
@boekabart
Mar 27 2018 20:18
@Danthar well in fact the only reason we need the Func<IActorRef,object> is the use case actor.Ask<MyResponse>( (ref) => new SendAnswerTo(ref));- your first example. This code resides either in a Unit Test (although usually we are OK with using TestActor as recipient), or in production code in an Api Controller ("HTTP to Akka converter"). The second case resides in other actors, not using ask but just .Tell( new SendAnswerTo( thisActorIVaguelyKnow )) .
Kamil Wojciechowski
@aph5
Mar 27 2018 21:51
Good evening, i have one question about the actor communication in a cluster. lets say that we have 2 actors, each configured to be in a different cluster role and deployed to 2 different machines. If actor A wants to send a message to actor B, then could it be done as a normal Tell? (those actors are in the same system)
or should I use Cluster Client OR distributed pub/sub ?
Aaron Stannard
@Aaronontheweb
Mar 27 2018 21:52
yep, can be done as a normal tell
ClusterClient is really for instances where something "outside" of the cluster needs to be able to connect into it
DistributedPubSub is for doing topic brokering inside the cluster
Kamil Wojciechowski
@aph5
Mar 27 2018 21:54
ok, thanks !
Arsene T. Gandote
@Tochemey
Mar 27 2018 21:54
Hello I would like to know whether there is a very simple tutorial on the Akka Cluster. I have gone through the WebCrawler and honestly speaking I get confused even though I have been using Akka net. If I can get a simple tutorial of three nodes on cluster I believe it will help.
Aaron Stannard
@Aaronontheweb
Mar 27 2018 21:55
have you checked out docs on the website and some of our youtube videos?
Arsene T. Gandote
@Tochemey
Mar 27 2018 21:56
@Aaronontheweb I have gone through the doc site and I really love it. However how to start is my issue. :worried:
I'd recommend playing around with that
Arsene T. Gandote
@Tochemey
Mar 27 2018 21:56
Ok
Aaron Stannard
@Aaronontheweb
Mar 27 2018 21:56
starts a basic 3 node cluster all inside a single process
Arsene T. Gandote
@Tochemey
Mar 27 2018 21:56
Thanks
Aaron Stannard
@Aaronontheweb
Mar 27 2018 21:56
shows you how to use the Cluster plugin too
to subscribe to events
et al