ChapterÂ 7.Â Ajax: Avoiding the traffic
People want the best experiences out of life... and their apps. No matter how good you are at Rails, there are times when traditional web apps just donât cut it. Sometimes users want something thatâs more dynamic and that responds to their every whim. Ajax allows you to build fast, responsive web apps, designed to give your users the best experience the web has to offer, and Rails comes complete with its own set of Ajax libraries just waiting for you to use. Itâs time to quickly and easily add Ajax goodness to your web app and please even more users than before.
Thereâs a new offer at Coconut Airways
Coconut Airways has introduced a new promotional offer: the last three seats on every flight are on sale at half price!
But thereâs a problem. Obviously, everyone wants to grab the final three seats, and so in the last hour or two before the check-in closes, customers are continually hitting the reload buttons on their browser, in the hope of getting a cheap flight. Unfortunately, the increase in traffic is putting enormous pressure on the Coconut Airways server.
The extra requests are causing the Coconut Airways site to slow down. There are so many people requesting info on the flights that are close to departure, that other users are having ...