These are chat archives for petabridge/akka-bootcamp

Oct 2016
Oct 12 2016 12:13
I'm just staring out with Akka and am designing my first app. I know that construction of an Actor happens asynchronously. Am I to follow the initialization pattern? If I put my init code in the prerestart, that doesn't guarantee I will be initialized prior to my first message. If I stash messages until I am initialized, won't I jut keep receiving those messages over and over until I am initialized? Can't I receive messages before I even set up to receive in the constructor? I need to be able to handle a message, create an actor and pass the message on to it