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:
- Explore inside Facebook's data center in Europe
- How does Facebook configure millions of servers every day?
- How to download data on Facebook, Google Photos and many other services
You should read it
- Facebook confirmed that the global network crash was caused by server configuration changes, which have not been resolved yet
- How does Facebook configure millions of servers every day?
- Summary, all things from A to Z to Facebook
- Here's how to choose the type of Facebook ad that shows up on your Facebook
- 5 ways Facebook has changed our lives
- The way Facebook checks out is revealed in the September 2018 hack
- Ways to contact Facebook to troubleshoot
- Check what Facebook 'knows' about you
- 5 reasons why you should uninstall the Facebook application now and always
- 6 useful features of Facebook are rarely used
- Best Facebook name, meaning, unique, funny, mood
- Why is Facebook called ... Facebook but not any other name?
May be interested
Never upgrade the operating system from the first day
2018 smartphone market: Winners and losers
Why are flagship smartphones more expensive?
[Infographic] Scary statistics about mobile addiction
What is CES? Why is the tech world boiling for CES?
Face unlock feature on many popular smartphones can easily be fooled with just one photo