java - How to use Servlet 3 @WebServlet & async with Spring MVC 3? -
I want to integrate servlet 3.0 async support with spring MVC. Like something:
@RequestMapping @WebServlet (name = "myServlet", asyncSupported = true) public string getMessage (string user name) {......}
Is this possible?
Not so fast, it is not easy to implement good long voting method. Works from, but there is a serious issue of "Thread Starvation"
Every long voting will use a thread, if you have 1000 concurrent users then you will need a long service of upto 1000 votes. (Most of the time the server side status updates on the client browser Tetan)
There is a continuous pattern in JT6, which intelligently releases the thread of the longest voting request to be used by the actual application logic.
Comments
Post a Comment