Asynchronous Processing in Ajax Apps

Most web applications are still request driven, i.e. the browser makes a request and backend state is updated as a response to that request. There is some backend processing, but usually that processing is very losely coupled with the webapp, updating a backend data store.

Many more advanced apps make use of web services, MDB's, JMS, and other approaches to perform asynchronous processing. The need for asynchronous processing in webapps has been mostly confined to some special cases, requiring extreme scalability or performance. But now with the advent of Ajax, many new webapps are going to have to perform ongoing background processing in order to update front end displays. Some of these processes are going to exceed the time you want an XHR to be open. Or maybe you want to perform some backend processing tightly coupled to the session and UI, rather than loosely tied to the persistent store.

I've used open source tools like Mule, ActiveMQ and the like for some of these things. It does make life a bit easier when doing async processing, but moving to these new technologies will involve a bit of a learning curve for most webapp developers. Sorry, guys, the pain isn't over.

Related posts:

  1. Jetty 6’s Continuation Mechanism for Ajax
  2. More Articles Needed on How to Design Ajax Apps, not Just How to Program Them
  3. Zimbra Desktop – One Way of Handling Offline Processing
  4. X Windows and Ajax: Two Kinds of Display Servers
  5. MVC and RIA – Learning From Desktop Apps

Comments: 1 so far

  1. I just wanted to let you know I really like your blog, its direction, and the topics you’re covering. And, I had to register for a typepad id before leaving this comment, so you know I mean it. :-)

    Keep it up! Cheers, Scott

    Comment by scott, Friday, April 14, 2006 @ 2:52 pm

Leave a comment

Powered by WP Hashcash

Launch: Pathfinder Newsletter

    Get a monthly update on best practices for delivering successful software.

    Subscribe via email


    Subscribe via RSS      RSS icon

Topics

Search

WordPress

Comments about this site: info@pathf.com