These are chat archives for akkadotnet/akka.net

6th
Jun 2018
AndreSteenbergen
@AndreSteenbergen
Jun 06 2018 06:02
@sandeepc24 aren't you creating a SPOF with your aspnet endpoint?
You could look at the WebCrawler example as well made by Aaron, it uses multiple web servers with a signalR actor wich acts as your entrance to your akka cluster
You could still put a load balancer in front of the web servers, Aaron made the web servers subscribe on events, but you could use gossip to let all web servers auto subscribe if you want that, so all web servers are subscribed to all messages. And if realtime isn't needed, it is even simpler
v1rusw0rm
@v1rusw0rm
Jun 06 2018 06:43
Why Source instance method Combine takes firstargument https://github.com/akkadotnet/akka.net/blob/5b9f979a4094cbd569fd4029588ef5d33f392748/src/core/Akka.Streams/Dsl/Source.cs#L329 ? Shouldn't it combine instance with second and rest?
Or just call static method and pass itself as first.
Marc Piechura
@marcpiechura
Jun 06 2018 07:44
@v1rusw0rm not sure there is a specific reason, we probably just took the api from the jvm, but since it’s already deprecated it’s probably better to use the static method
v1rusw0rm
@v1rusw0rm
Jun 06 2018 07:48
Found this issue: akka/akka#22452
And now I think that instance method CombineMaterialized should be removed from this PR akkadotnet/akka.net#3489 Also scaladsl contains this method only as static.
saepul ramdani
@msaepulr_twitter
Jun 06 2018 08:36
While working on my project, I need to send IActorRef (in message) via Akka.Remote, is that okay?
or there's a better / right way to do it?
Sandeep Chandra
@sandeepc24
Jun 06 2018 08:55
@AndreSteenbergen thanks for the response, yes it creates a SPOF but I was alluding to the fact that it should be possible replace current architecture with this new one. I'll have a look at the webcrawler example.
Marc Piechura
@marcpiechura
Jun 06 2018 09:07
@v1rusw0rm after reading the issue I think the correct way would be do deprecate the Instance method as the jvm did and move the combine method as extension to the SourceOperations class.
same of course for combineMat
So we would keep both, Source.Tick().Combine(second) as well as Source.Combine(Source.Tick(), second)
Thomas Stegemann
@beachwalker
Jun 06 2018 10:42

How to create an IActorRef from the path as string? Is there a way like:
string path = "akka://Somesystem/user/myactor";

IActorRef actorRef = ActorRef.FromPath(path); // this is pseudo-code

actorRef.Tell(...);

v1rusw0rm
@v1rusw0rm
Jun 06 2018 10:57

You can use ActorSelection:

var actorSelection = actorSystem.ActorSelection(path);
actorSelection.Tell(...);

Or Context.ActorSelection(path) inside actor.

v1rusw0rm
@v1rusw0rm
Jun 06 2018 12:08
@marcpiechura I moved CombineMaterialized to SourceOperations. I think it's better to deprecate and move Combine method in another issue/pull request, isn't it?
Marc Piechura
@marcpiechura
Jun 06 2018 12:20
@v1rusw0rm Sounds good 👍
Aaron Stannard
@Aaronontheweb
Jun 06 2018 13:16
@msaepulr_twitter yep, that's fine
Akka.Remote can automatically convert that local actor reference to a remote one during deserialization
nathvi
@nathvi
Jun 06 2018 13:48
@Aaronontheweb , thanks
saepul ramdani
@msaepulr_twitter
Jun 06 2018 14:51
@Aaronontheweb Thanks! I was getting 'Disassociated' warning when sending message through remote actor reference, but not always. I thought it was actor reference problem.
nathvi
@nathvi
Jun 06 2018 15:13
Does GitHub have a way to check if a given branch compiles and passes tests?
Or do you have to use a 3rd party CI tool?
Aaron Stannard
@Aaronontheweb
Jun 06 2018 16:00
@nathvi need to have a 3rd party tool
we use a heavy-duty TeamCity setup for Akka.NET itself and some of Petabridge's projects
because our testing suite is enormous and needs to be parallelized across multiple computers, and even then it still takes a long time
but for smaller scale projects
something like AppVeyor should work well
it's pretty easy to setup
and has a free tier I believe
it's popular with a lot of .NET projects too
and for the sake of clarity, "smaller scale" == "smaller / less complex test suite"
lots of Akka.NET's tests are timing sensitive
i.e. "this operation must complete in X amount of time"
so we want to run our tests in an isolated environment that we can manage (to some extent; if we wanted to fully manage it we wouldn't use auto-scaling on Windows Azure)
to prevent other stuff that might be running on the same box from creating false negatives for us - i.e. AppVeyor might have 4-5 other builds running simultaneously on the same machine, using the same CPU / memory resources those timing-sensitive tests depend on
Aaron Stannard
@Aaronontheweb
Jun 06 2018 16:05
and since we have a suite of like... 3000-4000 tests, and we have to run that suite on multiple platforms at once
odds of us running into a "noisy neighbor" problem are high
that was a lot more backstory than you probably needed
but yeah, there you go lol
nathvi
@nathvi
Jun 06 2018 16:19
@Aaronontheweb , thanks!
I'm looking to start a mobile dev business
Aaron Stannard
@Aaronontheweb
Jun 06 2018 16:21
Xamarin et al?
nathvi
@nathvi
Jun 06 2018 16:21
React Native and such
Aaron Stannard
@Aaronontheweb
Jun 06 2018 16:21
ah
nathvi
@nathvi
Jun 06 2018 16:21
AWS hosted
nathvi
@nathvi
Jun 06 2018 18:09
Is there a difference between Console.WriteLine and Akka.net?
Aaron Stannard
@Aaronontheweb
Jun 06 2018 18:25
you mean in terms of the logging?
nathvi
@nathvi
Jun 06 2018 18:29
lol, sorry, I'm just being dumb
Aaron Stannard
@Aaronontheweb
Jun 06 2018 18:29
ah
happens to the best of us
nathvi
@nathvi
Jun 06 2018 18:29
and the worst
Aaron Stannard
@Aaronontheweb
Jun 06 2018 18:36
lol