These are chat archives for akkadotnet/akka.net

7th
Apr 2017
John Nicholas
@MrTortoise
Apr 07 2017 08:13
lo, hows akka with .net core? can i do a local actor system in it?
simply want to prove it to a collegue pulling stuff from event store and wanging it into elastic
Arjen Smits
@Danthar
Apr 07 2017 08:20
@MrTortoise .net core support is coming, soonish. If you scroll up you can find some people who have already worked with the stuff thats in the current dev branch. And we have the nightlies you can use.
John Nicholas
@MrTortoise
Apr 07 2017 08:21
@Danthar thanks. will mooch
Graham Ambrose
@gambrose
Apr 07 2017 08:54
@DamianReeves you can set an IgnoreMessages function to ignore any messages that you are not interested in, then ExpectMsg the message you want. This is what I do but... there maybe a better way.
Nick Chamberlain
@heynickc
Apr 07 2017 13:45
@DamianReeves FishForMessage is also a viable option:
[Fact]
public void Expect_message_after_a_few()
{
    var actor = Sys.ActorOf(Props.Create(() => new EchoActor()));
    var probe = CreateTestProbe();
    actor.Tell("Yo!", probe.Ref);
    actor.Tell("Hey!", probe.Ref);
    actor.Tell("Wasup!", probe.Ref);
    actor.Tell("Hello!", probe.Ref);
    actor.Tell("Nevermind...", probe.Ref);

    probe.FishForMessage(msg => (string) msg == "Nevermind...");
}
Weston
@ronnyek
Apr 07 2017 14:05
so I am interested in having akka.net handle tcp listening, taking the inbound messages and treating them as reactive streams
is the examples with the telnet listener technically akka.io stuff?
Bartosz Sypytkowski
@Horusiath
Apr 07 2017 14:23
@ronnyek there's a simple example which uses akka.io actors. But once we fix everything related to akkadotnet/akka.net#2405 I think, that streams will be a much better approach
Weston
@ronnyek
Apr 07 2017 14:43
will streams be able to listen on tcp or websockets or anything like that?
I thought streams solved different problems
any eta on 1.2?
months
ballpark
weeks
quarters =)
Deniz İrgin
@Blind-Striker
Apr 07 2017 14:48
or ... When it’s done :P
Weston
@ronnyek
Apr 07 2017 14:49
I realize its done when its done, but I dont know if I need to just wait for that because its around the corner
or if its a long ways off I need to investigate other stuffs
Ricky Blankenaufulland
@ZoolWay
Apr 07 2017 15:03
Hi! Wanted to hear if you have situation where you need a class/recordtype which is mutating (changing state) and nearly the same class as immutable to send it through Akka messages. If I encounter this, is it a code smell, an anti-pattern? If not, how do you name both? Customer and CustomerMutating? CustomerImmutable and Customer? CustomerFrozenand CustomerState?
Deniz İrgin
@Blind-Striker
Apr 07 2017 15:03
I just quoted from Blizzard :) we have similar issue too and waiting for 1.2
@ronnyek
Bartosz Sypytkowski
@Horusiath
Apr 07 2017 15:09
ETA v1.2 was 2 days ago ;)
Aaron Stannard
@Aaronontheweb
Apr 07 2017 15:10
@Horusiath are we still waiting on NuGet support for that? cc @Silv3rcircl3
Bartosz Sypytkowski
@Horusiath
Apr 07 2017 15:10
@ronnyek Akka.Streams will expose listener interface
basically TCP connection handler will be represented as source/sink for the stream
Dmitri Pavlenkov
@dpavlenkov
Apr 07 2017 15:15
@ZoolWay I would append Message to anything immutable and sendable
Ricky Blankenaufulland
@ZoolWay
Apr 07 2017 15:17
@dpavlenkov You mean like an audit of changes? Feels like a bit of overkill if I just have user objects and their presence changes during the day.
Dmitri Pavlenkov
@dpavlenkov
Apr 07 2017 15:19
The pattern is for services to own objects and to modify them exclusively, and to communicate through messages, even changes to them.
Or copy, I guess
Ricky Blankenaufulland
@ZoolWay
Apr 07 2017 15:21
Hm, to replace my cached immutable Customer with a new immutable Customer instance where the change is reflected?
Weston
@ronnyek
Apr 07 2017 15:22
@Horusiath so soonish
Dmitri Pavlenkov
@dpavlenkov
Apr 07 2017 15:34
@ZoolWay yeah, much safer. Models are really messages
Ricky Blankenaufulland
@ZoolWay
Apr 07 2017 15:39
Thanks for sharing. It seems unconventional but I feel there are some good advantages in this approach. I'll try out
Alan Schrank
@alanschrank
Apr 07 2017 22:23
[