Facebook uses..

Facebook primarily uses MySQL for structured data storage such as wall posts, user information, timeline etc.  This data is replicated between their various data centers.

Cassandra is free and open source distributed database management system designed to handle large amounts of data across many commodity servers and providing high availability without single point of failure. It is essentially a hybrid between a key-value and a column oriented database management system. Facebook uses it for its Inbox search.

  • Initial Release : Year 2008
  • Written in         : Java

Memcached (pronunciation: mem-cash-dee) is a general purpose distributed memory caching system.Facebook started using memcached in August 2005. It is used to speed up dynamic database driven websites by caching data and objects in RAM to reduce reading time.

In Facebook, the old photo infrastructure consisted of several tiers:

  1. Upload tier receives users’ photo uploads and saves them on the storage tier.
  2. Photo serving tier receives HTTP requests for photo images and serves them from the storage tier.
  3. Storage tier built on top of commercial storage appliances.

Haystack photo infrastructure is the new photo infrastructure, merges the photo serving tier and storage tier into one physical tier. It implements HTTP based photo server which stores photos in a generic object store called Haystack. The main requirement for the new tier was to eliminate any unnecessary metadata overhead for photo read operations, so that each read I/O operation was only reading actual photo data (instead of file system metadata).

HipHop for PHP  a source-to-source compiler means PHP code is translated into C++, compiled into a binary and run as an executable. Facebook has achieved morethan a 6x reduction in CPU utilization for the site using HipHop as compared to Apache and Zend PHP.

  • Initial Release : Feb 2, 2010
  • Written in         : C, C++, PHP

One thought on “Facebook uses..

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s