O'Reilly logo

Head First Python by Paul Barry

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 10. Scaling your Webapp: Getting real

image with no caption

The Web is a great place to host your app...until things get real. Sooner or later, you’ll hit the jackpot and your webapp will be wildly successful. When that happens, your webapp goes from a handful of hits a day to thousands, possibly ten of thousands, or even more. Will you be ready? Will your web server handle the load? How will you know? What will it cost? Who will pay? Can your data model scale to millions upon millions of data items without slowing to a crawl? Getting a webapp up and running is easy with Python and now, thanks to Google App Engine, scaling a Python webapp is achievable, too. So...flip the page and find out how.

There are whale sightings everywhere

The Head First Whale Watching Group (HFWWG) coordinates the live cetacean sightings for the entire country. To date, they’ve provided a PDF form on their website that members of the public can download, fill in, and mail to the HFWWG central office.

The form contains the essential data needed to record the sighting:

image with no caption

After a busy sightings weekend, the central office is swamped with completed forms for thousands of sightings...which is a data-entry nightmare as all those forms can take an age to process manually. There’s nothing worse than being stuck in front of your computer ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required