Section 3.4. What does asynchronous get you?


3.4. What does asynchronous get you?

So what's the point of an "asynchronous" application if the server responds so fast that it doesn't make a difference anyway?

Both of the applications you've built so far are asynchronous. Still, the server responded so fast to your requests that you probably didn't notice any benefit from the asynchronous part of these applications.

But what happens if it takes a really long time to get the data back from the server? Or what if you really do need to do two things at one time? You'd like to keep using the application while that's happening, right?

That's when you'll really see the benefits of the "asynchronous" part of Ajax. In fact, you're going to build another applicationan Ajax-powered coffee makerwhere being asynchronous makes a big difference. Ready? Let's get started.

BRAIN POWER

What applications do you use on the Web that would be better if they were asynchronous?





Head Rush Ajax
Head Rush Ajax (Head First)
ISBN: 0596102259
EAN: 2147483647
Year: 2004
Pages: 241

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net