the actual problem was play was not able to handle all the requests that where sent to it and the connection timed out eventually
like increasing workers in nginx in play we have to increase thread pools to improve parallel performance
overriding the default thread pool to increase performance
default configuration
play {
akka {
event-handlers = ["akka.event.Logging$DefaultLogger","akka.event.slf4j.Slf4jEventHandler"]
loglevel = WARNING
actor {
default-dispatcher = {
fork-join-executor {
parallelism-factor = 1.0
parallelism-max = 24
}
}
}
}
}
the parallelism-factor is number of threads to be created per available core increasing it to 4 since there is a lot of read and write operations per request
overridden configuration parallelism-factor = 4.0 parallelism-max = 24
this stopped the 110 time out error