Re: [akka-user] [akka-streams] controlling deployment of children of ActorSubscriber via conf

2015-09-22 Thread Patrik Nordwall
Isn't it typically that you just want to configure one or a few things of your router, like the pool size? Then you can read that from a separate config property. Another solution that might work is to use wildcards in the the deployement config path. It is still a bit fragile in respect to implem

Re: [akka-user] [akka-streams] controlling deployment of children of ActorSubscriber via conf

2015-09-10 Thread MarekK
I was actually hoping to have it all in cfg (including the round-robin part, I don't know how would I extract it so that whole router configuration is loaded from custom cfg section), so it is consistent with way other actors are deployed in system. Doing it as you described is what I wanted to

Re: [akka-user] [akka-streams] controlling deployment of children of ActorSubscriber via conf

2015-09-10 Thread Akka Team
Hi Marek, On Thu, Sep 10, 2015 at 3:34 AM, Marek Kadek wrote: > Hi, > > thanks for answer. Sorry, I'm not sure I understand you - I'm still stuck > those - could you give me an example how to deploy my worker as router, > let's say as RoundRobinPool of 5 instances ? How would I specify it in >

Re: [akka-user] [akka-streams] controlling deployment of children of ActorSubscriber via conf

2015-09-09 Thread Marek Kadek
Hi, thanks for answer. Sorry, I'm not sure I understand you - I'm still stuck those - could you give me an example how to deploy my worker as router, let's say as RoundRobinPool of 5 instances ? How would I specify it in Deploy ? If I use Deploy(routerConfig = FromConfig) I still have the rela

Re: [akka-user] [akka-streams] controlling deployment of children of ActorSubscriber via conf

2015-09-09 Thread Akka Team
Hi Marek, In this case it is better to not rely on the name of the actor since it might depend on several things. Instead, you can specify a Deploy object on your Props directly (programmatically). See the docs for Deploy here: http://doc.akka.io/api/akka/2.3.13/#akka.actor.Deploy Then you can us

[akka-user] [akka-streams] controlling deployment of children of ActorSubscriber via conf

2015-09-06 Thread Marek Kadek
Hi, I would like to do pretty much something like this: http://doc.akka.io/docs/akka-stream-and-http-experimental/current/scala/stream-integrations.html#actorsubscriber that there is a ActorSubscriber, which has some children... I would like to control deyploment of the children via external con