On Mon, Mar 24, 2014 at 12:08 PM, Patrik Nordwall <[email protected] > wrote:
> On Mon, Mar 24, 2014 at 4:57 PM, Justin du coeur <[email protected]>wrote: >> >> Yep, that's roughly the design I'm thinking of, with the addition that >> the Manager keeps track of when it most recently received a message for >> each Aggregate, and has a scheduler strobe that pings the Manager once a >> second or so, to check whether any Aggregates have timed out. (It looks >> easier to have the timer inside the Manager rather than the Aggregate, to >> avoid funky race conditions.) The timeout should be configurable based on >> the Aggregate's type, and I suspect I want to wrap the Aggregate's ActorRef >> in something that handles the management, and works with a trait that gets >> mixed into the Manager. >> > > I think opposite. It is easier to let each Aggregate decide, e.g. by using > ReceiveTimeout. > Interesting. I've been slightly concerned about the race condition between the Aggregate and the Manager (where the Manager receives and forwards a message while the "kill me now" message is in flight from the Aggregate), but maybe that's not a real issue so long as the Aggregate doesn't *do* anything about the shutdown until the Manager officially acks that message with the Poison Pill. I take it this is how you've built the Cluster Sharding? > (Where should a writeup for this be placed when it's working? I note that >> Aggregator is under the official documentation's "Contributions" section -- >> now that the Community area exists, is there a clear idea of what belongs >> where? >> > > It should be in the contrib module. > Okay, cool. I assume I should write up a page and submit a pull request? -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
