Pages

Sunday, 29 September 2013

How facebook works behind the curtain..

                                     

Facebook is a social networking service use by me ,you and each and every one living in modern era.But have you ever wondered how Facebook works?
Facebook uses various programming languages with "LAMP" system(Linux,Apache,MySQL and PHP)  and Memcache.

Actually Facebook uses LINUX because of its high security and ease of customization according to its need. It is UNIX type operating system and it is open source.It uses APACHE  the most powerful open source  HTTP server.
It uses MySQL for its database because its reliable and speedy as well. PHP a scripting language is also used by Facebook because of its dynamic nature  and high performance.

MEMCACHE is open source system for caching memory.It make dynamic sites like Facebook which cache memory in RAM instead of database.

Facebook has come across many problems due to this LAMP system.Among many problem s,the major problem is that PHP is difficult to configure for big websites.Beside this due to dynamic growth it also faces problem of memory caching , database queries and storage of data.To cover up this Facebook has started back end and open source projects.

In back end and open source projects they create any program or service when they need it.these services are written in languages like Java,C++,Python and Erlang.I am discussing here some of important open source projects which are
                                                      

CASSANDRA  a storage system designed to handle a large amount of data with out a single point of failure.
                                                     

THRIFT provide framework for service development in cross languages.it support languages like C++,Java,Python ,PHP and Ruby.
                                                       
HIPHOP  transforms PHP source code into optimized C++. It causes large performance gain for Facebook servers.
            written by S.S.Ali at Monday,September,29,2013

No comments:

Post a Comment