Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Scalability Case Studies

I'm starting to build a community website from the site up and my web framework will be Asp.net and Mysql.

I want to start planning some scalability into the infrastructure early because I'm anticipating high traffic when the site goes live.

Are there any case studies which you recommend reading where asp.net or mysql has been scaled and which demonstrates good scaling techniques?

like image 911
GateKiller Avatar asked Dec 08 '08 16:12

GateKiller


4 Answers

I think it could be a challenge to find reference materials for that particular combination. Many .NET shops stick to SQL Server, and fewer use MySQL (at least at scale).

In general it would be appropriate to:

  • Follow general .NET practices for scalability. Weed out what is not appropriate for you.
  • Learn about database performance and implications of various design strategies such as denormalisation (when and why).
  • Consider out-of-process caching like memcached.
  • Review books on MySQL performance. Most of these are focused on UNIX platforms. Windows users may have problems applying some of these practices.
  • Read up on how other people are scaling their sites (Building Scalable Sites and The Art of Capacity Planning)
  • Consider how you might optimise your web design to be more scalable. Are you using AJAX? Work out what the impact of excessive polling may be etc.
  • Learn how to measure the performance of your application and database (starting points ASP.NET and MySQL).
  • Develop a plan for scaling your architecture (1 server to 2 servers, to multiple servers etc) so that you have some frame of reference for making decisions about building things in your system.
like image 114
Brian Lyttle Avatar answered Nov 18 '22 06:11

Brian Lyttle


I only know of one really good resource to read case studies about scalability techniques and I am really surprised no one has mentioned it. High Scalability

There is so many examples of "out of the box" thinking that and different techniques for scaling that I think it makes a good read for anyone who is interested in the topic.

like image 42
cgreeno Avatar answered Nov 18 '22 04:11

cgreeno


BrianLy said it best here:

"Develop a plan for scaling your architecture (1 server to 2 servers, to multiple servers etc) so that you have some frame of reference for making decisions about building things in your system."

As a forum I frequent says, 'quoted for truth'. All of his points are excellent, but this one is a key point that many people overlook. It doesn't matter how scalable your code and database are if you are running on a creaky old server. The hardware may not be as important as your code, improving it beyond a certain point will give diminishing returns VERY quickly, but do NOT forget to get your hardware to that point. If you have crap hardware, or even good hardware but not enough of it, your site will bomb out.

like image 29
Jeff Avatar answered Nov 18 '22 06:11

Jeff


For mysql scaling, you may find this interesting: danga livejournal

like image 1
SorinV Avatar answered Nov 18 '22 06:11

SorinV