What's behind facebook

6,005 views

Published on

What's behind facebook

Published in: Technology
0 Comments
5 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
6,005
On SlideShare
0
From Embeds
0
Number of Embeds
264
Actions
Shares
0
Downloads
196
Comments
0
Likes
5
Embeds 0
No embeds

No notes for slide

What's behind facebook

  1. 1. What’s behind facebook A Jen
  2. 2. • font-end o HipHop o BigPipe• back-end outline o Thrift o Scribe o Tornado• data persistence• other
  3. 3. font-endLinux & Apache PHP + HipHop BigPipe
  4. 4. HipHop• PHP complier developed by Facebook.• Convert PHP code to C ++.• Compiled by gcc.• CPU usage recudes 50%.• Git Hub
  5. 5. BigPipe• It’s a fundamental redesign of the dynamic web. page serving system.• Decomposing web pages into 「pagelets」.• Implemented by ONLY PHP + JavaScript!• Link
  6. 6. back-end Thrift Scribe Tornado
  7. 7. Thrift• Cross-language services development.• Code generation engine.• Sample Code definition file thrift complier source code
  8. 8. Scribe• Distributed Loggin System.• git hub
  9. 9. Tornado• Web Server written by python.• For real-time web services• non-blocking web service.• git hub• show case• link
  10. 10. data persistence MySQL Hive + Hadoop + Hbase + HDFS Memcache Haystack
  11. 11. MySQL• It’s still backbon of database infra.• How ? o Learn more : link o facebook patches
  12. 12. Hive + hadoop + Hbase + HDFS Hive hadoop Hbase HDFS
  13. 13. Memcache• Distributed memory object caching system• MySQL Cache• General purpose cache• Link
  14. 14. Haystack• Efficient storage of billions of photos.• Reducing Disk I/O.• Components o Haystack Diretory o Haystack Store o Haystack Cache• Link
  15. 15. Other• Chat o Epoll Server using Erlang o Accessed using thrift• Message Search o Inverted index stored in HBase
  16. 16. Thank you A Jen

×