Member Sign In
Not a member?

A Wired.com user account lets you create, edit and comment on Webmonkey articles. You will also be able to contribute to the Wired How-To Wiki and comment on news stories at Wired.com.


It's fast and free.

Sign in with OpenID
Sign In
Webmonkey is a property of Wired Digital.
processing...
Join Webmonkey

Please send me occasional e-mail updates about new features and special offers from Wired/Webmonkey.
Yes No

Please send occasional e-mail offers from Wired/Webmonkey affiliated web sites and publications, and carefully selected companies.
Yes No

I understand and agree that registration on or use of this site constitutes agreement to Webmonkey's User Agreement and Privacy Policy.
Webmonkey is a property of Wired Digital.
processing...

Retrieve Sign In

Please enter your e-mail address or username below. Your username and password will be sent to the e-mail address you provided us.

or
Webmonkey is a property of Wired Digital.
processing...

Welcome to Webmonkey

A private profile page has been created for you.
As a member of Webmonkey, you can now:
  • edit articles
  • add to the code library
  • design and write a tutorial
  • comment on any Webmonkey article
Close
Webmonkey is a property of Wired Digital.

Sign In Information Sent

An e-mail has been sent to the e-mail address registered in this account.
If you cannot find it in your in-box, please check your bulk or junk folders.
Sign In
Webmonkey is a property of Wired Digital.

Facebook Presents Scalability Secret: Memcached

We recently mentioned over 100 presentations from Portland’s OSCon made it to the web. Included was a surprisingly open presentation on Facebook’s backend.

There was a timely discussion on the subject over at Metafilter. The question posed was “How does Facebook handle or simplify the presumably complicated database queries involved so that me loading my page doesn’t bring it to its knees?”

The answer, according to the presentation by Facebook’s Lucas Nealan? Memcached. In fact, a staggering 400 plus memcached hosts with over 5 terabytes of memory. That’s more than your typical network solution. Memcached is a way to cache frequently used database queries in memory for easy serving.

It’s not just Facebook’s secret. I recently had the opportunity to speak with Garrett Camp, founder of StumbleUpon who praised Memcached ability to dramatically reduce their load.

“Memcached has helped a lot. We added memcached to a lot of our most common queries and load has dropped off to about a third,” Camp admitted. “Between basic partitioning, a lot more RAM, database boxes and memcached, a lot of our most urgent pain points in the past six months have kinda disappeared.”

Below is Facebook’s presentation:

Read this document on Scribd: Caching & Performance: Lessons from Facebook
Post Comment Comments Permalink Print
Reddit Digg

 
Subscribe now

Special Offer For Webmonkey Users

WIRED magazine:
The first word on how technology is changing our world.

Subscribe for just $10 a year