How to create resizable pool router in Akka Typed API?

Hi there,
I am following Akka Typed new Router APIs to create pool router.
https://doc.akka.io/docs/akka/current/typed/routers.html#dependency

I am trying to create a resizable pool router with below application.conf:
akka.actor.deployment{
/worker-pool-router {
router = round-robin-pool
resizer {
enable = on
low-bound = 1
upper-bound = 10
pressure-threshold = 1
rampup-rate = 0.25
backoff-threshold = 0.3
backoff-rate = 0.25
messages-per-resize = 10
}
}
}

But I could not find the way to create router from configuration file in new Typed APIs.
I tried below:
val config = ConfigFactory.load()
val pool = Routers.pool(poolSize = 4)(
Behaviors.supervise(Worker()).onFailureException)
val router = context.spawn(pool, “worker-pool-router” ,
FromConfig.props(Props[Worker]))

by mocking from classic router API but the “FromConfig.props(Props[Worker])” got compiling error because here akka.actor.typed.Props expected while akka.actor.Props found.

If Typed API of Routers does not support resizable pool router, does that mean I need to use classic Router actor and mix it with my typed actor by leveraging akka.actor.typed.adapter??

Can anyone share the experience on How to create resizable pool router in Akka Typed API?

I guess you’ll get feedback quicker if you ask on https://discuss.akka.io/ instead

Hi Tarsa,

Thanks a lot for the redirection.