These are chat archives for akkadotnet/akka.net

19th
Apr 2017
mhsjlw
@mhsjlw
Apr 19 2017 00:49
Hey! I'd like to implement a game server in Akka.NET using F#, can anyone point me to docs for using TCP I/O in F#? I can't find any other than the C# ones
Weston
@ronnyek
Apr 19 2017 02:38
I'd really like to utilize akka.net, I wish the timing was better. Sadly it seem slike there are options that support netcore or will in the very very near future =(
seems like there is a possibility of that in AKKA.net world
but that soem of these issues have just een oustanding for a while
Bartosz Sypytkowski
@Horusiath
Apr 19 2017 05:39
@mhsjlw here is the basic TCP listener in Akkling: https://github.com/Horusiath/Akkling/blob/master/examples/io.fsx
but it's using pure actors, not streams. I'll try to provide some examples of stream-based TCP once I'll have finish #2405 (which is actually already complete, but I want to focus on better memory usage and potential micro optimizations)
Arsene T. Gandote
@Tochemey
Apr 19 2017 06:31
Hello does Akka Stream has scodec?
as one the in-built Stage
Arsene T. Gandote
@Tochemey
Apr 19 2017 09:25
Hello how can I use the Akka Streams with F#?
Arsene T. Gandote
@Tochemey
Apr 19 2017 12:37
Hello
Does Akka provides some common functional type like Option,Some, None and so forth...
Alex Valuyskiy
@alexvaluyskiy
Apr 19 2017 13:38
@Tochemey Option, Some, etc came from Scala, not Akka. There is not equivalents in C#. But you can use Option in F#
Arsene T. Gandote
@Tochemey
Apr 19 2017 13:40
@alexvaluyskiy I thought they have implemented utility classes to cater for that since it a port.
Bartosz Sypytkowski
@Horusiath
Apr 19 2017 17:13
@Tochemey Akkling.Streams offers F# API over akka.streams
including support for Option and unit
Damian Reeves
@DamianReeves
Apr 19 2017 17:54
Anyone have any experience using Akka with Hangfire?
Aaron Stannard
@Aaronontheweb
Apr 19 2017 18:05
@DamianReeves that's error tracking and monitoring right?
Damian Reeves
@DamianReeves
Apr 19 2017 18:06
Job sheduling... more modern Quartz
Aaron Stannard
@Aaronontheweb
Apr 19 2017 18:06
whoosh
my bad
Damian Reeves
@DamianReeves
Apr 19 2017 18:07
Our web guys want to use that over quartz so now I need to look at integrating it with akka instead of using Quartz
Bartosz Sypytkowski
@Horusiath
Apr 19 2017 18:07
@DamianReeves Quartz interop is like 1-2 actors
Damian Reeves
@DamianReeves
Apr 19 2017 18:08
Yeah... I'm all for quartz causes its simple
but looks like I lost out as they don't want to maintain 2 sets of scheduling tables
and hangfire has a nice UI
Bartosz Sypytkowski
@Horusiath
Apr 19 2017 18:09
I mean interop with hangfire shouldn't take much more
Damian Reeves
@DamianReeves
Apr 19 2017 18:09
I see what you mean
Alright I'll head down that whole... hopefully I'll come out with something for the community
:smile:
Chris Ochs
@gamemachine
Apr 19 2017 22:12
So a common pattern in multiplayer games is actually the orleans approach, due to everything being very stateful. Like you are running a lot of game instances where each one has to be accessible from nodes players are actually connected to. I put together a system for managing this, where you create an actor, it's hashed to a node and any node can easily get a reference to it. Currently it uses redis for persisting the state. Also handles the case of remote not yet started by having a manager on each node that creates the actors, and if a local node doesn't yet have an actor ref, it routes the request through the manager. If there is enough interest in this I was going to make it into a contrib module or something.
Chris Ochs
@gamemachine
Apr 19 2017 22:19
It's also useful where you need multiple singletons. Like when a player asks for an open game to join, and you don't want to partition that space you want to handle it as efficiently as possible, you have no choice but to route that decision through a single point, synchronize on global state. matchmaking posed the same issue, as did a number of other features that are fairly common to games