Hi all,

I'm trying to wrap my mind around how to use a ClusterRouterGroup with 
GraphStage API.  I have some old code that I'd like to refactor to move 
away from the deprecated ActorPublisher/Subscriber APIs.  The code is 
generally something like this:

  val router = ClusterRouterGroup(
     totalInstances = Int.MaxValue,
     routeesPaths = List("/user/jobCoordinator"),
     allowLocalRoutees = true,
     useRole = Some("worker")))
 val source = Source.actorPublisher(Props[JobSource])
 val sink = Sink.actorSubscriber(Props[JobCoordinator].withRouter(router))

I am having a bit of trouble figuring out how to translate to the new API.  
Any help would be appreciated!



** New discussion forum: https://discuss.akka.io/ replacing akka-user 
google-group soon.
** This group will soon be put into read-only mode, and replaced by 
** More details: https://akka.io/blog/news/2018/03/13/discuss.akka.io-announced
>>>>>>>>>>      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