These are chat archives for akkadotnet/akka.net

1st
Jun 2018
Vagif Abilov
@object
Jun 01 2018 01:43
You install latest Akkling Nuget packages. And I don't know about dotnet core support.
Sandeep Chandra
@sandeepc24
Jun 01 2018 02:05
I tried installing Akkling 0.9.1 and it gives me that error
After installing Akka.Serialization.Hyperion manually it works
Sandeep Chandra
@sandeepc24
Jun 01 2018 02:10
My test app builds but I am getting following error
Unhandled Exception: System.TypeLoadException: Could not load type 'TypedActorSelection`1' from assembly 'Akkling, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
   at Program.main(String[] argv)
Sandeep Chandra
@sandeepc24
Jun 01 2018 02:19
I am not having much luck with Akkling, could someone please create a sample project and point me to it?
Vasily Kirichenko
@vasily-kirichenko
Jun 01 2018 05:06
@sandeepc24 do you use Paket?
Vasily Kirichenko
@vasily-kirichenko
Jun 01 2018 06:59
@sandeepc24 in short, you must have binding redirects in your app.config for any F# project.
Paket does it for you automatically.
Vagif Abilov
@object
Jun 01 2018 09:00
Yes, use Paket. Saves you from ours spent on binding redirects.
Sandeep Chandra
@sandeepc24
Jun 01 2018 09:29
I am using Paket now and I get still same TypedActorSelection error.
here is my sample project
Bartosz Sypytkowski
@Horusiath
Jun 01 2018 10:11
@sandeepc24 I guess you could avoid a lot of pain, if you would not name your project in the exact same way as the dependency dll you want to use ;)
your exception points that TypedActorSelection<> cannot be found in Akkling v1.0, which is actually your own project - nuget Akkling max version is 0.9.1 ;)
Sandeep Chandra
@sandeepc24
Jun 01 2018 10:20
thanks @Horusiath , that was it, it is working fine now
Vasily Kirichenko
@vasily-kirichenko
Jun 01 2018 10:33
@sandeepc24 Rename your project to something else. "Akkling" clashes with Akkling.dll
tricky stuff, wasted some time to figure out
Sandeep Chandra
@sandeepc24
Jun 01 2018 10:34
thanks guys, it is working now
Corneliu
@corneliutusnea
Jun 01 2018 11:55
is there some documentation on how to correctly use ReceiveAsync ?
will it release the thread back to the pool but keep the actor marked as busy in the current Receive?
I don't want the actor to process more messages but I don't want to block the Akka dispatchers and the pool from processing while I wait for some stuff
Boban
@bobanco
Jun 01 2018 12:11
@corneliutusnea ReceiveAsync is working like you said
Corneliu
@corneliutusnea
Jun 01 2018 12:14
perfect, thanks
AndreSteenbergen
@AndreSteenbergen
Jun 01 2018 15:11
In a cluster, is there a way for a node to say goodbye to the cluster. When I close down one of my nodes at the moment all other nodes start gating ports and telling eachother a node is no longer reachable, dead letters etc. etc.
Graceful goodbye so to speak
?
me-slove
@me-slove
Jun 01 2018 15:15
AndreSteenbergen
@AndreSteenbergen
Jun 01 2018 15:17
Great link thanks. Actually tried Stackoverflow before asking ...
Riccardo Terrell
@rikace
Jun 01 2018 15:48
Hi, I am having issues running an async query (Entityframework ToListAsync() with async/await) inside an ReceiveAsync. The actor locks... ideas?
Aaron Stannard
@Aaronontheweb
Jun 01 2018 15:52
locks as in, can't process any more messages?
is the EntityFramework task long-running?
Riccardo Terrell
@rikace
Jun 01 2018 15:53
can vary up to 15 secs max
Aaron Stannard
@Aaronontheweb
Jun 01 2018 15:53
yeah so during that time
the actor can't process any additional user messages
it has to complete the async / await state machine in that ReceiveAsync block
before it can move onto the next user message
if that's an issue given how long-running the operation is
you can use PipeTo instead
have the task kick off
hang onto a handle to that Task
and have the results of the completed Task get piped to yourself
actor can still process messages while the task runs asynchronously that way
Riccardo Terrell
@rikace
Jun 01 2018 15:55
perfect! that where I was not sure what could be a good approach
thank you!!!
me-slove
@me-slove
Jun 01 2018 15:55
            var request = new RestRequest(queryString, Method.GET);
            client.ExecuteTaskAsync(request).ContinueWith(r => new XrefKeyLookupResponse(sender,r.Result,msg)).PipeTo(Self);
Aaron Stannard
@Aaronontheweb
Jun 01 2018 15:56
^^^
@me-slove's example is good
me-slove
@me-slove
Jun 01 2018 15:56
this is one I used for making rest requests for externals
Riccardo Terrell
@rikace
Jun 01 2018 15:56
Thank @me-slove
& @Aaronontheweb :)
me-slove
@me-slove
Jun 01 2018 15:56
sure.
Aaron Stannard
@Aaronontheweb
Jun 01 2018 15:56
:+1: happy to help a fellow traveller
nathvi
@nathvi
Jun 01 2018 16:02
my god, I spent probably 6 hours on a serilog issue
nathvi
@nathvi
Jun 01 2018 19:35
How does akka.net compare to things like node.js?
Bartosz Sypytkowski
@Horusiath
Jun 01 2018 19:40
@nathvi like apples and oranges
nathvi
@nathvi
Jun 01 2018 21:14
@Horusiath , so they're both roughly spherical and sweet?