These are chat archives for akkadotnet/akka.net

6th
Nov 2017
cyril andreichuk
@andreichuk
Nov 06 2017 07:39
Hi all. Akka.IO does not handle non-fatal socket errors like WSAEWOULDBLOCK (System.Net.Sockets.SocketError.WouldBlock) -- is it a feature or something not implemented? From MSDN: Resource temporarily unavailable. This error is returned from operations on nonblocking sockets that cannot be completed immediately, for example recv when no data is queued to be read from the socket. It is a nonfatal error, and the operation should be retried later.
Thomas Weiss
@ThomasWeiss
Nov 06 2017 08:00
Hi guys! Long time watcher of Akka.Net (& Orleans) and I've finally the opportunity to apply it on a small project. Quick question: is there any best practice or guidance for "threaded" actors? It seems that the Context is not available if I spin a thread within an actor
jalchr
@jalchr
Nov 06 2017 08:03
@Horusiath perhaps starting with this https://github.com/SaladLab/Akka.Interfaced as a possible "Akka Typed" implementation ?
May be the developer (https://github.com/veblush) could be invited to maintain it ?
Shamsul Amry
@ShamsulAmry
Nov 06 2017 08:32
@ThomasWeiss You shouldn't spin a thread within an actor. That defeats the purpose of using an actor framework. Maybe you can explain a bit what you planned to do so that we can suggest a suitable solution.
Thomas Weiss
@ThomasWeiss
Nov 06 2017 08:34
@ShamsulAmry that was my intuition indeed! Basically I would like to parallelize uploads and I thought that using actors would fit nicely, with each uploading actor getting its next data to upload from a coordinator, and reporting some stats back to that coordinator.
actually I'm starting to think that this could indeed be achieved without threads and through the magic of messaging only...
Bart de Boer
@boekabart
Nov 06 2017 08:49
A thread is never necessary to parallelize I/O
Shamsul Amry
@ShamsulAmry
Nov 06 2017 08:53
@ThomasWeiss If you just want to parallelize uploads (or generally I/O as @boekabart stated), it's easier to just use async task and PipeTo where necessary.
Thomas Weiss
@ThomasWeiss
Nov 06 2017 09:09
Thanks guys, that actually makes a lot of sense, will give it a try
troasfl
@troasfl
Nov 06 2017 13:30
Hi, how do I kill a child actor immediately its done processing its message?