These are chat archives for akkadotnet/akka.net

20th
Apr 2017
advapiIT
@advapiIT
Apr 20 2017 09:29
Hello, I need to know if akka can fit my needs, I have to perform tcp socket communication to a c++ server that sends financial data, till now I've used supersocket but I'm facing some problem I think they're related to supersocket itself . I was wondering how trivial (and if it's possible) to set up akka to use to implement reactive pattern to tcp sockets
Ricky Blankenaufulland
@ZoolWay
Apr 20 2017 10:02
there was a post somewhere how to use actors as great async TCP sockets... cannot find it at the moment
advapiIT
@advapiIT
Apr 20 2017 10:31
can it be this one?
Ricky Blankenaufulland
@ZoolWay
Apr 20 2017 11:00
no, thats about java akka
Ricky Blankenaufulland
@ZoolWay
Apr 20 2017 13:21
When migrating to Akka.NET Remote 1.2, will I have to change in akka.hocon the TCP configuration from akka.remote.helios.tcp to akka.remote.dotnetty.tcp? The blogpost ( https://petabridge.com/blog/akkadotnet-12-cluster-streams/ ) mentions that section for TLS configuration but nothing about migrating existing applications.
Nick Chamberlain
@heynickc
Apr 20 2017 16:11
@ZoolWay afaik there is backwards compatibility https://github.com/akkadotnet/akka.net/blob/master/src/core/Akka.Remote.Tests/Transport/BackwardCompatibilitySpec.cs. however, if you want to use TLS, you have to use dotnetty transport
Chris Ochs
@gamemachine
Apr 20 2017 22:17
Re tcp sockets in akka, my suggestion is just don't. It needlessly complicates an already complex thing. I tried out the java version of tcp/udp handling a few years back, it resulted in just convoluting the code for no good reason, and it performed terribly (just their bad implementation most likely, lots of extra copying because of the naive let's apply immutability where it's not needed)
The simplest solution is dotnetty. dotnetty channels are thread safe, you can for example create an actor per connection, pass it the channel handler. Then just send incoming messages to that actor, and outgoing messages the actor can send to the channel