Skip to main content

Diigo Home

Stack Overflow Architecture | High Scalability - The Diigo Meta page

highscalability.com/stack-overflow-architecture - Cached - Annotated View

Joel Liu's personal annotations on this page

joel
Joel bookmarked on 2009-07-17 architecture scalability
    • 16 million page views a month

    • 3 million unique visitors a month (Facebook reaches 77 million unique visitors a month)

    • 6 million visits a month

    • 86% of traffic comes from Google

    • 9 million active programmers in the world and 30% have used Stack Overflow.
    • If you’re comfortable managing servers then buy them. The two biggest problems with renting costs were: 1) the insane cost of memory and disk upgrades 2) the fact that they [hosting providers] really couldn’t manage anything.

    • Make larger one time up front investments to avoid recurring monthly costs which are more expensive in the long term.
  • Memory is incredibly cheap. Max it out for almost free performance. At Dell, for example, upgrading from 4G memory to 128G is $4378.
  • Stack Overflow copied a key part of the Wikipedia database design. This turned out to be a mistake which will need massive and painful database refactoring to fix. The refactorings will be to avoid excessive joins in a lot of key queries. This is the key lesson from giant multi-terabyte table schemas (like Google’s BigTable) which are completely join-free. This is significant because Stack Overflow's database is almost completely in RAM and the joins still exact too high a cost.
  • At low server volume, the key cost driver is not rackspace, power, bandwidth, servers, or software; it is NETWORKING EQUIPMENT. You need a gigabit network between your DB and Web tiers. Between the cloud and your web server, you need firewall, routing, and VPN devices. The moment you add a second web server, you also need a load balancing appliance. The upfront cost of these devices can easily be 2x the cost of a handful of servers.

This link has been bookmarked by 24 people . It was first bookmarked on 16 Jul 2009, by someone privately.