On Thu, Jun 29, 2017 at 7:58 PM, Richard Ney <[email protected]> wrote:

> Is there a cleaner way to do this. It seems like overkill to pass the
> shard region proxy into the Props for each Region actor.
>

It's a matter of taste, but I'll note that I handle this through,
essentially, a simple form of dependency injection.  I have a master
"ecosystem" object that provides all the major interfaces, and the various
shard regions (of which I have several) all get accessed through there.

So on the one hand, it's a val that has to be passed into every Actor's
constructor; OTOH, it's *one* parameter that everything hangs off of, so it
scales nicely as the system grows.

-- 
>>>>>>>>>>      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.

Reply via email to