These are chat archives for akkadotnet/akka.net

27th
Aug 2015
jweimann
@jweimann
Aug 27 2015 02:46
@rogeralsing the issue was at runtime only. I tried #1 & #2 yesterday but didn't seem to work. will prob create a new one tonight and see what happens.
Pablo Castilla
@pablocastilla
Aug 27 2015 05:59
My problem was about too big messages. what is the best way to detect it? I think I have every log on and in debug.
Garrard Kitchen
@garrardkitchen
Aug 27 2015 09:31
Are there any best practices / advice on how to document actor hierarchies so dev team(s) are kept uptodate with changes?
Garrard Kitchen
@garrardkitchen
Aug 27 2015 09:52
Since I read https://petabridge.com/blog/stateful-web-applications/ last week, thanks @Aaronontheweb !, I've been itching to implement a stateful layer within our main cloud product. Has anyone taken a similar journey yet? My current thinking is to start off small and work with one entity only [e.g. Tenant]. I've just finished implementing akka clustering between 2 web apps [core product & audit dashboard]. So, depending on the nummber of worker nodes [let's say 1 node per VM], there'll be a stateful layer on each and messaging to sync between nodes. Is it acceptable, in its first incarnation, to have a stateful layer on each VM [just think of each VM containing a web app and any api required to serve the web app]. Then as confidence and experience grows, abstract this implementation out into their own dedicated stateful worker nodes away from core web apps? Apologies for akka parlance misusages!
James Andrew-Smith
@james-andrewsmith
Aug 27 2015 09:57
@Aaronontheweb What tool are you using to make the diagrams as animated gifs on the petabridge blog? They look really nice!
Roger Johansson
@rogeralsing
Aug 27 2015 10:21
@james-andrewsmith I'm pretty sure it is http://www.smartdraw.com/
James Andrew-Smith
@james-andrewsmith
Aug 27 2015 10:46
@rogeralsing Thank you! That looks like it!
Gene Chiaramonte
@gchiaramonte
Aug 27 2015 14:10
Just installed akka 1.04 and working through the FSharp docs page.

open Akka
open Akka.Actor
open Akka.FSharp

let system = System.create "my-system" (Configuration.defaultConfig())

Program.fs(6,14): error FS0074: The type referenced through 'Akka.Actor.ActorSystem' is defined in an assembly that is not referenced. You must add a reference to assembly 'Akka'.
What am I missing? I think this used to work fine in an earlier version.
Anthony Brown
@bruinbrown
Aug 27 2015 16:32
@garrardkitchen I've been using Graphviz for creating hierarchies, simple text file definitions and a command line app to generate drawings in plenty of file types. Easy to use and makes it possible to store in source control as well
@gchiaramonte have you made sure to install the Akka package as well as the Akka.FSharp package? If you have, have you made sure that Akka.dll is referenced as well?
Garrard Kitchen
@garrardkitchen
Aug 27 2015 17:04
@bruinbrown Thanks, I'll take a look
Gene Chiaramonte
@gchiaramonte
Aug 27 2015 17:51
@bruinbrown Thanks for the help, I get the error when running the code in fsi (using alt-enter), If I run it as a command line program it works fine.
Anthony Brown
@bruinbrown
Aug 27 2015 17:52
@gchiaramonte Did you send the Akka reference to FSI as well?
Gene Chiaramonte
@gchiaramonte
Aug 27 2015 18:19
@bruinbrown Yes I did by r-clicking and Send References to F# Interactive, I'm using VS2013 community ed and Akka 1.04. I also tried in a .fsx file and #r for the akka and akka.fsharp dll's, but both gave me the same error.
Garrard Kitchen
@garrardkitchen
Aug 27 2015 18:25
@pablocastilla I hit the 128k tcp limit earlier this week. To confirm that indeed this was the error (couldn't find way via logs or exceptions to detect this) I converted object to byte array and checked size. It was just over. Not the perfect solution but it's possibly a way to gate the process if the message is too large. I also upped the message size to 4mb via the hocon config (ot sure how safe / acceptable this is though) -
 remote {
          helios.tcp {
            maximum-frame-size = 4000000b
            transport-class = "Akka.Remote.Transport.Helios.HeliosTcpTransport, Akka.Remote"                    
            hostname = "127.0.0.1"
            port = 0                
          }
        }    
Pablo Castilla
@pablocastilla
Aug 27 2015 20:40
@garrardkitchen
@garrardkitchen @Aaronontheweb has told me that in next versions an error message will be shown. Thanks for the advice!
Garrard Kitchen
@garrardkitchen
Aug 27 2015 20:50
@pablocastilla Thanks for info!