# Create Router/RouterConfig from HOCON Config

**URL:** <https://discuss.akka.io/t/create-router-routerconfig-from-hocon-config/2873>\
**Category:** Akka Libraries\
**Created:** [December 4, 2018, 3:22am UTC](https://discuss.akka.io/t/create-router-routerconfig-from-hocon-config/2873 "2018-12-04T03:22:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![enzeart](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.akka.io/enzeart/32/1328_2.png) [@enzeart](https://discuss.akka.io/u/enzeart)\
**Post date:** [December 4, 2018, 3:22am UTC](https://discuss.akka.io/t/create-router-routerconfig-from-hocon-config/2873/1 "2018-12-04T03:22:13Z")

</div>

We can configure routing using the akka.actor.deployment path of application.conf. How are these configurations used to programmatically create a Router and/or RouterConfig? Example code or a reference to where it is done in the source would be greatly appreciated!

---

<div class="post-metadata">

**Author:** ![johanandren](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.akka.io/johanandren/32/85_2.png) [@johanandren](https://discuss.akka.io/u/johanandren)\
**Post date:** [December 20, 2018, 8:23am UTC](https://discuss.akka.io/t/create-router-routerconfig-from-hocon-config/2873/2 "2018-12-20T08:23:14Z")

</div>

This is one sample in the docs: [https://doc.akka.io/docs/akka/current/routing.html#pool](https://doc.akka.io/docs/akka/current/routing.html#pool)
