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: