Programming - - By Lucas Chan

Are You Ready to Scale?

The growth of a typical web site might look a little like something this:

  1. Ready To Scale - Phase 1You build the first version of your site and deploy it into a shared hosting environment (Dreamhost, etc). All is well.
  2. Ready To Scale - Phase 2You need to build more features for your growing customer base. Performance and uptime are also concerns, so you move your site to a dedicated server. Freedom in a box!
  3. Ready To Scale - Phase 3More customers. They want more features and they want them right now! How do you cope with the load? You put your database onto it’s own dedicated server. We can breath again.

So here we are with the traditional 2 server 2 tier backend. One server is responsible for generating and serving web pages, the other server is responsible for storing data. Here are some of the problems you may be fortunate enough to encounter when running on a setup like this:

  1. Availability: You now have 2 points of failure. If either your web server or database server dies you are in trouble. What’s your plan when this happens?
  2. Performance: How are you measuring this? How many more concurrent users can your site handle before you’re no longer serving requests in a timely manner? More importantly, what do you do when you reach that point?
  3. Backup: How do we accurately and quickly backup all our customer data without taking our entire web site offline?
  4. State & Tangle: Where are you storing user and session data, on the file system? How easily can you partition off different areas of your site/application onto separate servers?

If you’ve reached this point in your web site’s growth but don’t have answers to these questions it’s about time you started thinking about tackling these problems.

Next week is guaranteed to be nothing but crazy at SitePoint HQ as we are moving to a bigger and better office. But I promise to post early in the week with some suggestions/ideas and other things to consider as you ready for the next phase of your site’s growth.

Sponsors