Maybe this distributed workers guide could be good inspiration:
https://developer.lightbend.com/guides/akka-distributed-workers-scala/

--
Johan
Akka Team

On Fri, Feb 2, 2018 at 3:10 AM, Konrad “ktoso” Malawski <
konrad.malaw...@lightbend.com> wrote:

> Have a look at "cluster sharding”, it’s smarter than just routers.
>
> --
> Cheers,
> Konrad 'ktoso <http://kto.so>' Malawski
> Akka <http://akka.io/> @ Lightbend <http://lightbend.com/>
>
> On February 2, 2018 at 11:09:19, Richard Gong (gong...@gmail.com) wrote:
>
> That works in a single machine. Now take a step forward to have the
> workers in a cluster. The master needs to dispatch jobs to workers. I'm
> looking at the document of router, https://doc.akka.io/
> docs/akka/current/cluster-usage.html?language=scala#
> router-with-pool-of-remote-deployed-routees. My thought is worker code
> can be dynamically deployed and join the cluster when needed. Let's say I
> have these 2 components running in different nodes.
>
>    - Master: accepts jobs and dispatches them to WorkerAdvisor.
>    - WorkerAdvisor: creates an actual worker to run the job.
>
> Now how the Master knows dispatches a job to a WorkerAdvisor which is
> free. Broadcasting job to all WorkerAdvisors doesn't seem to be a good way
> because we don't want a job to run in multiple places. Maintaining state of
> WorkerAdvisor in Master seems odd to me as well.
> --
> >>>>>>>>>> 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 akka-user+unsubscr...@googlegroups.com.
> To post to this group, send email to akka-user@googlegroups.com.
> Visit this group at https://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>
> --
> >>>>>>>>>> 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 akka-user+unsubscr...@googlegroups.com.
> To post to this group, send email to akka-user@googlegroups.com.
> Visit this group at https://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
>>>>>>>>>>      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 akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
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