I'm new at the web develope and I have a small problem. I'm using scala akka with spray to make a website. My leader give me a question : I have a response like this
case HttpRequest(GET, Uri.Path("/ping"), _, _, _) => {
Thread.sleep(10)
sender ! HttpResponse(entity = "this is t2")
}
the Thread.sleep(10) is represent a heavy thread with constanst processing time is 10ms, so it make the whole program run slower 1000times, so how do I make it retrieve 10times more HTTPRequest ? The hint was using actors but somehow I read the whole documents but still missing something