• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Could some one explain me the differences and benefits of Asynchronous processing

 
Kumar Raja
Ranch Hand
Posts: 547
2
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

After a very long time, I have resumed working on enterprise Java and going through the Servlet 3.0 specs. I have not done much of Asynchronous processing of the requests, but heard a lot about Ajax and how Ajax can be used to make Asynchronous requests. Since Servlet 3.0 also offers Asynchronous processing, I would like to understand whats the difference between Ajax way and Servlet 3.0 way of doing Asynchronous.

My understanding is, Ajax allows us to make Asynchronous client calls, which can be issued to Servlet 2.5 or prior (Asynchronous). Which is after making the client call, client will continue its further processing without being blocked.

Asynchronous servlet 3.0 allows to handle the client request (whether coming from Ajax or Synchronous request) in an Asynchronous way. That is request handling is not blocked. What would happen in that case? Would that request/response cycle end, while Asyn servlet handling the request in the background.

Any real time examples of both cases is appreciated.

Thanks
 
Darlan Moraes
Greenhorn
Posts: 7
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic