Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 32371
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T13:45:09+00:00 2026-05-10T13:45:09+00:00

So I was listening to the latest Stackoverflow podcast ( episode 19 ), and

  • 0

So I was listening to the latest Stackoverflow podcast (episode 19), and Jeff and Joel talked a bit about scaling server hardware as a website grows. From what Joel was saying, the first few steps are pretty standard:

  1. One server running both the webserver and the database (the current Stackoverflow setup)
  2. One webserver and one database server
  3. Two load-balanced webservers and one database server

They didn’t talk much about what comes next though. Do you add more webservers? Another database server? Replicate this three-machine cluster in a different datacenter for redundancy? Where does a web startup go from here in the hardware department?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T13:45:09+00:00Added an answer on May 10, 2026 at 1:45 pm

    A reasonable setup supporting an ‘average’ web application might evolve as follows:

    1. Single combined application/database server
    2. Separate database on a different machine
    3. Second application server with DNS round-robin (poor man’s load balancing) or, e.g. Perlbal
    4. Second, replicated database server (for read loads, requires some application logic changes so eligible database reads go to a slave)

    At this point, evaluating the current state of affairs would help to determine a better scaling path. For example, if read load is high and content doesn’t change too often, it might be better to emphasise caching and introduce dedicated front-end caches, e.g. Squid to avoid un-needed database reads, although you will need to consider how to maintain cache coherency, typically in the application.

    On the other hand, if content changes reasonably often, then you will probably prefer a more spread-out solution; introduce a few more application servers and database slaves to help mitigate the effects, and use object caching, such as memcached to avoid hitting the database for the less volatile content.

    For most sites, this is probably enough, although if you do become a global phenomenon, then you’ll probably want to start considering having hardware in regional data centres, and using tricks such as geographic load balancing to direct visitors to the closest ‘cluster’. By that point, you’ll probably be in a position to hire engineers who can really fine-tune things.

    Probably the most valuable scaling advice I can think of would be to avoid worrying about it all far too soon; concentrate on developing a service people are going to want to use, and making the application reasonably robust. Some easy early optimisations are to make sure your database design is fairly solid, and that indexes are set up so you’re not doing anything painfully crazy; also, make sure the application emits cache-control headers that direct browsers on how to cache the data. Doing this sort of work early on in the design can yield benefits later, especially when you don’t have to rework the entire thing to deal with cache coherency issues.

    The second most valuable piece of advice I want to put across is that you shouldn’t assume what works for some other web site will work for you; check your logs, run some analysis on your traffic and profile your application – see where your bottlenecks are and resolve them.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was listening to the podcast about PowerShell 2.0 that Scott Hanselman did .
I was listening to a podcast recently (may have been SO - can't remember)
I've just installed the latest production release of MySQL (64-bit) on my Windows 7
I have a server listening on a port for request. When the request comes
For the login page of my website I would like to list the latest
I was listening to a podcast a while back on an Open Source project.
Just listening to this week's podcast and thought it would be nice to group
Im listening to my phones GPS and post latitude and longitude to my webservice
In listening for key events in ActionBarSherlock in order to show the overflow menu
I am listening for PreviewTouchDown at a Canvas , and its working fine. The

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.