144
Chapter 3
What does asynchronous get you?
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 benet 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 benets of the “asynchronous”
part of Ajax. In fact, you’re going to build another
application—an Ajax-powered coffee maker—where being
asynchronous makes a big difference. Ready? Let’s get started.
So what’s the point of an
“asynchronous” application if the
server responds so fast that it
doesn’t make a difference anyway?
What applications do you use on
the Web that would be better if
they were asynchronous?
brain
power
asynchrony in the real world