简体   繁体   中英

Queuing servlet requests from the same HTTP Client?

I have a conventional servlet, (conforms to the servlet API defined by Oracle/Sun). It receives high volume requests at times from hundreds of users, and in some of these cases, any HTTP client can launch multiple requests in rapid succession. Sometimes the servlet has not finished processing the first request from a HTTP Client when the second is received and has commenced processing. So, I want to be able to manage the processing of request by queueing them when they come from the same HTTP Client and process them in order. This is only an issue when requests are received from the same HTTP Client.

I had heard of FilterChains , but am not sure if this is appropriate for this situation. What is the most appropriate means to queue multiple requests from a user ?

Create two frame in one HTML page. One main frame and another secondary frame.Do something such that whenever we send one request response should be redirected to secondary freme. I m not sure it will work for your case. but i resolved this type of problem in my project. in which servlet processing was heavy weight .and i was not able to complete one servlet process.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM