How to keep Facebook server from collapsing?

By the second quarter of 2018, Facebook had over 2.23 billion active monthly users.With such users, this is one of the busiest web sites in the Internet world and must build a special database architecture to meet.

Facebook launched in February 2004, originally launched by Mark Zuckerberg in his university (Harvard University) and used a single server.But as the number of users is increasing, the number of servers and data centers of the world's largest social networking site is also expanding, spreading all over the world.

Each data center puts thousands of servers connected to each other and to the outside world with fiber optics.Every time you share information on Facebook, the servers on these data centers receive information and distribute them to their 'friends'.

By March 2013, Facebook had 12 data centers worldwide, including 9 in the US and 3 in other countries with a total area of ​​nearly 15 million square feet (completed and under construction).Each center is approximately 1,000 feet long, consists of many rows with tens of thousands of servers.

How to keep Facebook server from collapsing? Picture 1
Facebook data center in Sweden

How does Facebook maintain its server?

The answer is Hip Hop for PHP and Hip Hop Virtual Machine - 2 technologies developed by Facebook to handle traffic more than 500 times in the same time on the server.Their goal is not only to handle traffic more efficiently but also to consume less Internet data, enabling mobile users not to worry about mobile traffic when using Facebook on mobile devices.These technologies and load balancing capabilities help Facebook expand its storage capacity without sacrificing download speeds.

Hip Hop for PHP (HPHPc) is a source-to-source compiler (source to source), whereby PHP is compiled into C ++ into binary files and runs as an executable file.Besides HPHPc, Facebook engineers also create a "developer version" of Hip Hop (PHP implementation engine version, called HPHPi) and a Hip Hop debug tool (called HPHPd).

Hip Hop Virtual Machine (HHVM) is a PHP processing platform that helps speed up PHP using a virtual processor based on the JIT (Just-in-Time) compiler.

See more:

  1. Explore inside Facebook's data center in Europe
  2. How does Facebook configure millions of servers every day?
  3. How to download data on Facebook, Google Photos and many other services
5 ★ | 1 Vote

May be interested

  • 5 ways Facebook has changed our lives5 ways Facebook has changed our lives
    facebook will enter its 10th year on february 4 and 1.2 billion users, and the question is, how has facebook changed our lives?
  • What is VPS? VPS used to do? What is VPS different from Server?What is VPS? VPS used to do? What is VPS different from Server?
    what is vps? vps used to do? what is vps different from server ?. when you intend to learn about network data or open the website, you will definitely be introduced to many different server and server services. but server hosting has a lot of tricks
  • Check what Facebook 'knows' about youCheck what Facebook 'knows' about you
    facebook is one of the most popular social networking sites today. with more than 1.4 million users and more than 900 million daily visitors, facebook is one of the most useful tools for people around the world to connect with each other. however, one thing worth noting is that most users never 'bother' about what facebook does with their information.
  • 7 great ideas using Raspberry Pi as a server7 great ideas using Raspberry Pi as a server
    raspberry pi is a great solution for many computer projects, from learning programming to remote control a car to building a basic stop-motion animation studio. but do you know that raspberry pi can also be used as a server? here are some ideas for using raspberry pi as a server.
  • 6 useful features of Facebook are rarely used6 useful features of Facebook are rarely used
    social network facebook is so familiar to everyone, if you are a regular internet user, you probably have a facebook account for yourself to keep in touch with friends and relatives; make friends with new friends, follow the information of celebrities you care about ...
  • Best Facebook name, meaning, unique, funny, moodBest Facebook name, meaning, unique, funny, mood
    if you are bored with your current facebook name and want to rename facebook to create some fresh wind, the list of the best facebook names, meaningful, unique, funny, mood below will are not bad ideas for you to choose from!
  • The way Facebook checks out is revealed in the September 2018 hackThe way Facebook checks out is revealed in the September 2018 hack
    does your personal facebook belong to the 50 million facebook accounts that were attacked last september?
  • New points in SQL Server 2017New points in SQL Server 2017
    the sql server 2017 version is primarily connected to linux, bringing the power of sql to linux. in short, you can install sql server 2017 on linux, using sql server 2017 on linux-based docker containers. sql server 2017 also allows you to choose development languages, develop it on-premise or cloud-based.
  • Why is Facebook called ... Facebook but not any other name?Why is Facebook called ... Facebook but not any other name?
    facebook, the world's largest social network is so familiar to us, but who can answer the question: where did facebook's name come from?
  • Instructions for setting up and managing FTP Server on Windows 10Instructions for setting up and managing FTP Server on Windows 10
    if you want to create a private cloud for sharing and converting large files without restrictions, you can create an ftp server (file transfer protocol server) on your windows 10 computer.