I am new to akka and just looking at the supervisor and strategies and trying to get my head around on how to apply this on my RepositoryActor. Basically I am looking for areas of improvement in my current implementation since I have minimal experience. So I have a RepositoryWorker(for now it is only one) and one supervisor that watches the one worker. 1.In my current implementation all the requests (retrieve,store) pass fom the supervisor and the supervisor propagates the requests to the worker? Is it a good design that all requests to the RepositoryWorker pass from the supervisor? Would it be better for the callers to get a reference to the underlying repo worker and send directly to the worker rather the supervisor? 2.In my current implementation the supervisor for every request to the Worker does an ask and has a timeout so that it can inform the initial callers that their request TimedOut. Kind of trying to guarantee that no caller will wait forever for a response from the RepoWorker(e.g it dies) by having this timeout on the supervisor. Is it correct though that this responsibility lies with the supervisor or should the caller be responsible for this and use the ask pattern with the timeout? (Kind of feels the latter). Because in the scenario where the supervisor dies e.g because all repo workers died, then noone will respond to callers request with the current implementation. Unless the callers watch the reposupervisor and on Terminated Mesage, the callers reject the pending and future requests.
Thanks, Aristoula -- >>>>>>>>>> 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 https://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
