Implementing an async servlet in Scala with less than 10 lines of code
What is async servlet and why use it? An async servlet can tell the
container that it will handle a request later, so that the current
thread is not tied up and can be used for another request. Why is it
useful? For example, if the request is going to do something relatively
time consuming (e.g., generating a report from a DB), instead of tying
up the thread doing nothing waiting for the...