# Scaling Web Sites (LAMP) : Top Resources

By Steve Francia · April 15, 2009 · https://spf13.com/post/scaling-web-sites-lamp-top-resources-2/

Luckily it’s 2009 and there have been a bunch of successful websites
that have had to deal with large
[scalability](http://en.wikipedia.org/wiki/Scalability "Scalability")
challenges. Many have been kind enough to share their knowledge with the
world. Here is a list of the best books, articles, presentations and
practices from the likes of [Twitter](http://twitter.com "Twitter"),
[Facebook](http://facebook.com "Facebook"),
[Flickr](http://www.flickr.com "Flickr") and more.

Books
=====

[**Building Scalable Web Sites**](http://www.amazon.com/Building-Scalable-Web-Sites-applications/dp/0596102356)
---------------------------------------------------------------------------------------------------------------

[**Building, scaling, and optimizing the next generation of web
applications by Cal
Henderson**](http://www.amazon.com/Building-Scalable-Web-Sites-applications/dp/0596102356)

Cal of Flickr fame has written the definitive resource on scaling web
apps.

[**High Performance MySQL**](http://www.amazon.com/High-Performance-MySQL-Optimization-Replication/dp/0596101716/)
------------------------------------------------------------------------------------------------------------------

[**Optimization, Backups, Replication, and More by Baron Schwartz, Peter
Zaitsev, Vadim Tkachenko, Jeremy Zawodny, Arjen Lentz, Derek
Balling**](http://www.amazon.com/High-Performance-MySQL-Optimization-Replication/dp/0596101716/)

Another great resource, focused heavily on the
[MySQL](http://www.mysql.com "MySQL") portion of LAMP, which is the
hardest part to scale.

Articles
========

[**Optimizing with APC**](http://c7y.phparch.com/c/entry/1/art,apc_facebook)
----------------------------------------------------------------------------

Brian Shire is Facebook’s technical lead for
[PHP](http://php.net/ "PHP") internals and a developer for the
Alternative PHP Cache (APC). Learn more at [Tekrat](http://tekrat.com)
his home on the web.

Presentations
=============

**Scaling Twitter in Ruby (slightly dated)**
--------------------------------------------

Twitter was originally architected in [Ruby on
Rails](http://rubyonrails.org/ "Ruby on Rails") and had some pretty
serious scalability issues resulting in the now (in)famous fail whale.
His presentation is insightful and the basis of many of their inital
scalability measures (now failing as twitter has reached a magnitude
larger than when this was given). Presentation given by [Blaine
Cook](http://twitter.com/Blaine "Blaine Cook").

[**Scaling
Twitter**](http://www.slideshare.net/Blaine/scaling-twitter?type=presentation "Scaling Twitter")<div class="embed slideshare">
<iframe src="https://www.slideshare.net/slideshow/embed_code/41197?rel=0" width="599" height="487" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" style="border:1px solid #CCC;border-width:1px 1px 0;margin-bottom:5px" allowfullscreen webkitallowfullscreen mozallowfullscreen> </iframe>
</div>


[**Scaling PHP5 by Rasmus Lerdorf**](http://talks.php.net/show/oscon06)
-----------------------------------------------------------------------

OSCON has been a major source for scalability presentations. In 2006
Rasmus delivered this presentation. Rasmus is notable for being the
creator of the [PHP](http://en.wikipedia.org/wiki/PHP "PHP") programming
language. [Niall
Kennedy](http://www.niallkennedy.com/blog/archives/2006/07/rasmus-lerdorf-php-web20.html)
recorded the audio and provided it as an mp3
[here.](/uploads/2009/04/phpweb201.mp3)

**Scaling Web Apps**
--------------------

Cal, the author of the first book mentioned also put many of the same
principles into a talk given at WebExpo
2007.!

[Scalable Web Architectures: Common Patterns and
Approaches](http://www.slideshare.net/techdude/scalable-web-architectures-common-patterns-and-approaches?type=presentation "Scalable Web Architectures: Common Patterns and Approaches")<div class="embed slideshare">
<iframe src="https://www.slideshare.net/slideshow/embed_code/40959?rel=0" width="599" height="487" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" style="border:1px solid #CCC;border-width:1px 1px 0;margin-bottom:5px" allowfullscreen webkitallowfullscreen mozallowfullscreen> </iframe>
</div>


The same talk given (and updated) about a year later.

[Scalable Web Architectures: Common Patterns and Approaches – Web 2.0
Expo
NYC](http://www.slideshare.net/iamcal/scalable-web-architectures-common-patterns-and-approaches-web-20-expo-nyc-presentation?type=powerpoint "Scalable Web Architectures: Common Patterns and Approaches - Web 2.0 Expo NYC")<div class="embed slideshare">
<iframe src="https://www.slideshare.net/slideshow/embed_code/603137?rel=0" width="599" height="487" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" style="border:1px solid #CCC;border-width:1px 1px 0;margin-bottom:5px" allowfullscreen webkitallowfullscreen mozallowfullscreen> </iframe>
</div>
<br>

View more [OpenOffice presentations](http://www.slideshare.net/) from
[iamcal](http://www.slideshare.net/iamcal).

**Scaling [LiveJournal](http://www.livejournal.com/ "LiveJournal")**
--------------------------------------------------------------------

LiveJournal was the first open source LAMP based Web 2.0 company to hit
massive scale problems. They developed many of the strategies and tools,
including memcache, that [flickr.com](http://www.flickr.com "Flickr"),
[digg.com](http://digg.com "Digg") and [facebook.com](http://facebook.com "Facebook") are using
today.

[Brad Fitzpatrick](http://bradfitz.com "Brad Fitzpatrick") gave a good
presentation about how they grew, both the challenges they faced, and
the solutions they came
to. !

[LiveJournal’s Backend: A history of
scaling](http://www.slideshare.net/vishnu/livejournals-backend-a-history-of-scaling?type=powerpoint "LiveJournal's Backend: A history of scaling")
<div class="embed slideshare">
<iframe src="https://www.slideshare.net/slideshow/embed_code/11260?rel=0" width="599" height="487" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" style="border:1px solid #CCC;border-width:1px 1px 0;margin-bottom:5px" allowfullscreen webkitallowfullscreen mozallowfullscreen> </iframe>
</div>


Caching and Performance Lessons From Facebook
---------------------------------------------

<iframe class="scribd_iframe_embed" src="https://www.scribd.com/embeds/4069180/content?start_page=1&view_mode=scroll&show_recommendations=false" data-auto-height="false" data-aspect-ratio="undefined" scrolling="no" id="doc_78753" width="100%" height="600" frameborder="0"></iframe>


