These are chat archives for akkadotnet/akka.net

5th
Jun 2015
jweimann
@jweimann
Jun 05 2015 00:14
anyone know a good way to interact with my actor system from another system using mono?
Aaron Stannard
@Aaronontheweb
Jun 05 2015 00:15
Akka.Remote
jweimann
@jweimann
Jun 05 2015 00:15
oh will it build for mono now?
Aaron Stannard
@Aaronontheweb
Jun 05 2015 00:15
yessir
since 1.0.0
jweimann
@jweimann
Jun 05 2015 00:15
oh awesome :)
didn't realize that
jweimann
@jweimann
Jun 05 2015 02:41
anyone know another option that will work with an older version of mono like this https://github.com/Unity-Technologies/mono ?? :)
Nikita Tsukanov
@kekekeks
Jun 05 2015 05:09
Its not old
Its ancient
And has a lot of bugs in stuff like ConcurrentQueue
jweimann
@jweimann
Jun 05 2015 05:24
you're not wrong. just stuck w/ it for my client side for at least a few months :(
Bartosz Sypytkowski
@Horusiath
Jun 05 2015 06:40
@kekekeks your example is good. Here are few of my suggestions:
  • you don't have to reimplement pattern matching extensions. You could simply use existing one from Akka.Util
  • in general it's bad idea to use Context.GetLogger() each time you want to use a logger. This method is doing more that it says.
  • personally I use perspective where my actor is my aggregate. In that case model doesn't need an Update method, it's state change are handled by actor. But that's only my point of view.
  • what is the scope of ActorCommander / ActorSystem?
Nikita Tsukanov
@kekekeks
Jun 05 2015 07:10

what is the scope of ActorCommander / ActorSystem?

Singleton for WebAPI application

Ben Gale
@BenGale
Jun 05 2015 09:48
:point_up: June 5 2015 7:40 AM Why is it a bad idea to use Context.GetLogger()? How should we be accessing the logger?
Ben Gale
@BenGale
Jun 05 2015 09:55
Oh looking at that demo, is the issue calling GetLogger many times, rather than once and storing it?
Bartosz Sypytkowski
@Horusiath
Jun 05 2015 10:33
yes, it's allocating objects on each call. It's better to cache it in some field.
Ben Gale
@BenGale
Jun 05 2015 10:58
Cool, I thought you might have meant we should do it one time and pass it in props or something as first.
jcwrequests
@jcwrequests
Jun 05 2015 15:14
Has anyone tried doing @rogeralsing example with Amazon's SQS? I am in the process of doing just that and was wondering if anyone ran into any pitfalls.
Nikita Tsukanov
@kekekeks
Jun 05 2015 15:15
Yay, I've got 20 men asking questions and not letting me out of the room for half an hour (until we've got kicked out because coffee-break was over and the next guy wanted to begin his talk)
jcwrequests
@jcwrequests
Jun 05 2015 15:53
Is it safe to pass New Status.Success(null) to Sender.Tell?
Aaron Stannard
@Aaronontheweb
Jun 05 2015 15:54
@kekekeks nice job!
@jcwrequests yes, should be - the Tell and Receive methods aren't going to do anything to the properties of a message
AFAIK
jcwrequests
@jcwrequests
Jun 05 2015 15:56
@Aaronontheweb Thanks. I thought so but I thought I would ask.
Roger Johansson
@rogeralsing
Jun 05 2015 19:02
akkamud.png
coworkers are building a mud with akka.net :P
Damian Reeves
@DamianReeves
Jun 05 2015 22:23
@rogeralsing funny, building a MUD was one of the first ways I thought of trying to learn Akka (I've got some local code I started working on called AkkaMoo in tribute to old school LambdaMoo)
jcwrequests
@jcwrequests
Jun 05 2015 23:24
@rogeralsing I am in the midst of adapting your service bus example with AWS SQS. My use case is matches up well with your example. In my case I am collecting events from a 3rd parties service webhook. What I want to ensure is that if my Actor fails to process a message that it no longer processes messages for that hash id. I need to preserve messages order within the Queue. I was wondering if you had any advice? Thanks..