Re: [akka-user] question on getting mailbox confirmation

2015-05-27 Thread Viktor Klang
Hi Shawn, On Mon, May 25, 2015 at 4:29 PM, Shawn Garner wrote: > The arbiter sounds like what we would need. > Are there any activator templates or example of someone using an arbiter > in Akka you can point me to? > This way I could demo it to my coworker without having to write something > fro

Re: [akka-user] question on getting mailbox confirmation

2015-05-25 Thread Shawn Garner
The arbiter sounds like what we would need. Are there any activator templates or example of someone using an arbiter in Akka you can point me to? This way I could demo it to my coworker without having to write something from scratch? A lot of the problems at my company are cultural rather than

Re: [akka-user] question on getting mailbox confirmation

2015-05-25 Thread Viktor Klang
Hi Shawn, The use case you're referring to (transitive ordering) I think traditionally is accomplished in the actor model with the use of "arbiters": https://en.wikipedia.org/wiki/Indeterminacy_in_concurrent_computation I.e. you need a single source of truth w.r.t. the ordering, and since Actors a

[akka-user] question on getting mailbox confirmation

2015-05-25 Thread Guido Medina
Hi Shawn, You need to handle such actors like a state machine, initial state will just stash incoming messages and when its ready unstash all messages, for that Akka has UntypedActorWithStah HTH, Guido. -- >> Read the docs: http://akka.io/docs/ >> Check the FAQ: >>

[akka-user] question on getting mailbox confirmation

2015-05-23 Thread Shawn Garner
I was talking with a coworker and he has some custom behavior he can't understand how to do anything useful without. He want's an tell message (a') sent from A -> C to not allow actor A to continue until after there is confirmation that A's message is in C's mailbox. This way if a sends (a'') to