These are chat archives for akkadotnet/akka.net

18th
Dec 2017
Kosta Petan
@kostapetan
Dec 18 2017 11:12
Hey guys, job post ahead.
We are a small Swedish company called Record Union that does Music Distribution.
Currently, we are hiring backend developers who won't mind picking a fight with our interesting stack, which includes Akka.net, Kubernetes, GCP and a dash of F# here and there.
If this seems like something you are excited to do, it's probably because it really is.
Full disclosure: I am the Technial Lead and I've kindly asked @Aaronontheweb if it's ok to post a job add here.
Jonas
@jonasro_twitter
Dec 18 2017 13:01
I am working with Akka.Io these days and are trying to make my tcp listener as bulletproof as possible with regards to network issues or similar. Does anyone here know of any guidance/articles/blog posts available on this topic or have some general tips for me?
Arsene Tochemey GANDOTE
@Tochemey
Dec 18 2017 14:20
Hello geeks. I would like to know how I can integrate the DI of Akka.NET and NetCore DI. Thank you
BlueManiac
@BlueManiac
Dec 18 2017 16:15
BlueManiac
@BlueManiac
Dec 18 2017 17:04
I'm currently working on a solution using akka.IO tcp. We receive one message that is around 800 bytes, this message is delivered as 3 messages in the actor. I guess that is because of a buffer size setting in akka somewhere. I would like this to be received as one message instead and can't for my life find any documentation on where to set the buffer size. Do anyone have any suggestions? btw. akka.net is awsome, i'm in love.
Aaron Stannard
@Aaronontheweb
Dec 18 2017 18:34
@BlueManiac I'm looking at some of our code for that now; let me check
but yeah, the buffer size is something small
Bartosz Sypytkowski
@Horusiath
Dec 18 2017 19:41
Regarding Akka.IO - there's a streaming article on that.
The implementation itself probably needs some hardening, and could be further optimized (even thou it's quite fast right now). We got some bugs fixed, that will come in the upcoming release.
Aaron Stannard
@Aaronontheweb
Dec 18 2017 19:45
I added a model-based spec for that bytebuffer stuff; turns out it was an issue with my serializer
not an issue with Akka.IO
so I think I can close that issue out
I'll know for certain later today
petabridge/petabridge.cmd-issues#21 - parent issue
Suresh M
@Tamila0701_twitter
Dec 18 2017 21:02
I'm currently working on akka.net project. I'm getting an error stating that "One or more errors occurred. A task was canceled." and there is no stack trace for this error. Do anyone have any suggestions?
Aaron Stannard
@Aaronontheweb
Dec 18 2017 21:02
need to add a lot more detail than that
when does that happen, what are you trying to do, what's the error message look like, etc...
sounds like something internally that depends on the TPL timed out
Suresh M
@Tamila0701_twitter
Dec 18 2017 21:07

void Wait(IActorRef target, IConfiguration config)
{
try
{
var currentState = target.Ask<States>(new CurrentState(), TimeSpan.FromMinutes(1));
currentState.Wait();

            if (currentState.Result == States.Idle)
            {
                return;
            }

...........
...........

Getting error when currentState.Wait() is executed.

Bart de Boer
@boekabart
Dec 18 2017 22:39
You get an AggregateException , most likely, you can inspect its InnerExceptions . Does it take about a minute for this to happen? If so, it's just the timeout cancelling the task.
Maxim Cherednik
@maxcherednik
Dec 18 2017 22:59
hi. I was wondering what is the API of Ask?
Aaron Stannard
@Aaronontheweb
Dec 18 2017 22:59
the API?
Maxim Cherednik
@maxcherednik
Dec 18 2017 22:59
I didn't manage to find from the C# doc
Aaron Stannard
@Aaronontheweb
Dec 18 2017 22:59
ah yeah
Maxim Cherednik
@maxcherednik
Dec 18 2017 22:59
hey Aaron
Aaron Stannard
@Aaronontheweb
Dec 18 2017 22:59
it's an extension method
Maxim Cherednik
@maxcherednik
Dec 18 2017 22:59
but do we follow the .net thing
let me explain
Maxim Cherednik
@maxcherednik
Dec 18 2017 23:03

I read it this way: public static Task<object> Ask(this ICanTell self, object message, TimeSpan? timeout, CancellationToken cancellationToken)

Aha. returns task and takes CancellationToken - meaning it can throw OperationCancelledException
Takes timeout - highly likely should throw AskTimeoutException

is this correct?
or I get the result which is true/false
in this case I fully control the flow and can reason about any outcome.
Suresh M
@Tamila0701_twitter
Dec 18 2017 23:09
Thanks Bart, there are multiples threads with same Actor and not able find why this is happening. Even though it is in the try block, error is not handled and System actor is stopped. Any suggestions to handle it.
Aaron Stannard
@Aaronontheweb
Dec 18 2017 23:16
@maxcherednik I think we have an open issue and PR for that open at the moment
not sure on what the current status is :p
Maxim Cherednik
@maxcherednik
Dec 18 2017 23:17
yeah, I do remember I've seen it somewhere
and according to the code we don't do what I described
it seems it's cancelling the task after timeout, which is not completely correct
ok. one more question then: why I can't build the solution on mac? there is still this .nuget folder in the solution which is empty, but in the solution file it expects some files to be there