Play-slick with SecureSocial: Running DB IO in a separate thread pool
问题 I have a Play 2.2.1 app that uses play-slick 0.5.0.8 to persist data to a Postgresql backend and SecureSocial 2.1.2 to handle user authorisation. Since play-slick transactions are blocking, I have created a separate slick-context execution context in my /conf/application.conf file, as per the instructions found in the plugin's Wiki: play { akka { actor { slick-context = { fork-join-executor { parallelism-min = 300 parallelism-max = 300 } } } } } This allows me to create a controller Action