I think it is worth considering to split application into 2 modules: core - with business logic, interacting with DB and so on, and web - one which is responsible for gluing HTTP with core. That way only web would depend on Play. Moreover in such setup it would be possible to have another module with akka-http instead of Play.
I think it is worth considering to split application into 2 modules:
core
- with business logic, interacting with DB and so on, andweb
- one which is responsible for gluing HTTP withcore
. That way onlyweb
would depend on Play. Moreover in such setup it would be possible to have another module withakka-http
instead of Play.