Your SlideShare is downloading. ×
0

Facebook, Robert Johnson

2,120

Published on

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
2,120
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
18
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Transcript of "Facebook, Robert Johnson"

  1. 1. 500 Million Active Users 0M 60M 120M 180M 240M 300M 2004 2005 2006 2007 2008 2009 500M
  2. 2. #2 property on the Internet (time on site) 100s of billions of monthly page views >4 trillion feed actions processed per day 100s of millions of cache queries per second Over 2 trillion objects cached Over 500 million active users, half log in every day 100 billion photo files stored Over 20 billion minutes spent every Day Over 2 billion pieces of content uploaded every week
  3. 3. Move Fast Server Scaling Reliability
  4. 4. 500 Million Active Users 0M 60M 120M 180M 240M 300M 2004 2005 2006 2007 2008 2009 500M
  5. 5. Over 1 million active users per engineer 0 240,000 480,000 720,000 960,000 1,200,000 Facebook Google* Amazon* Microsoft* 75,00094,000 190,000 1,100,000 * Conservative estimates based on publicly available data
  6. 6. Few external deadlines... but
  7. 7. The site can’t go down
  8. 8. Frequent small changes Never a delay waiting for a push Easier to isolate bugs Major changes dark launched
  9. 9. Traditional websites Bob Bob’s data
  10. 10. Traditional websites Bob Bob’s data Julie Julie’s data Dan Dan’s data Beth Beth’s data Sue Sue’s data Erin Erin’s data
  11. 11. Facebook the data is interconnected Bob ErinBeth Servers
  12. 12. Scale Horizontally
  13. 13. Database Memcache Web Server
  14. 14. Database Memcache Web Server
  15. 15. Database Memcache Web Server
  16. 16. Database Memcache Web Server
  17. 17. Network Incast Memcache Memcache Memcache Memcache Switch PHP Client
  18. 18. Network Incast Many Small Get Requests Memcache Memcache Memcache Memcache Switch PHP Client
  19. 19. Memcache Memcache Memcache Memcache Switch PHP Client Many big data packets Network Incast
  20. 20. Memcache Memcache Memcache Memcache Switch PHP Client Network Incast
  21. 21. Memcache Memcache Memcache Memcache Switch PHP Client Network Incast
  22. 22. Memcache Memcache Memcache Memcache Switch PHP Client Network Incast
  23. 23. Reliability
  24. 24. Single Points of Failure
  25. 25. Single Points of Failure Software can be a SPOF
  26. 26. Don’t make small problems big
  27. 27. Don’t make small problems big Don’t push problems upstream
  28. 28. Don’t make small problems big Don’t push problems upstream Be wary of “smart” failover
  29. 29. Don’t make small problems big Don’t push problems upstream Be wary of “smart” failover Shed load when you’re in trouble
  30. 30. If you lose half of your machines you’re doing well if you’re serving half of your traffic
  31. 31. Measure Everything
  32. 32. p95 vs p99
  33. 33. Culture Always do a post-mortem Release often Control and Responsibility
  34. 34. Facebook Platform
  35. 35. Lessons Learned Federate everything Keep failures contained Measure distributions Understand every problem Make a person responsible
  36. 36. (c) 2009 Facebook, Inc. or its licensors.  "Facebook" is a registered trademark of Facebook, Inc.. All rights reserved. 1.0
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×