Hello everyone,
We are migrating our play backend who use intensively Http.Context.current(). We are going to implement custom thread pool for the blocking calls.
But in the interval we need to increase the number of simultaneous calls to play. In our tests we ware limited to 6.
public Result sleepTest() {
System.out.println("Go Sleep");
try {
Thread.sleep(10000L);
} catch (InterruptedException e) {
e.printStackTrace();
}
System.out.println("Sleep done");
return ok();
}
the configuration :
akka {
actor {
default-dispatcher {
executor = "thread-pool-executor"
throughput = 1
thread-pool-executor {
fixed-pool-size = 55 # db conn pool (50) + number of cores (4) + housekeeping (1)
}
}
}
}
Best regards