What makes facebook pages load so fast

I am also a php programmer. I always wondered how Facebook pages load so fast when so many users connect to them anyway. My site never reached that speed, even when the traffic was less. What do they do so well for their sites?

What should I take care, even if I want to make the site even half the speed of Facebook. I mean php and mysql and jquery sites.

+5
source share
3 answers

Take a look at this reddit post by someone who interned on Facebook:

http://www.reddit.com/r/programming/comments/nav19/facebook_releases_hhvm_60_percent_faster_than_its/c37pitt

The most important parts of the message:

  • . Memcached . Facebook > 99,9%. , 95%. , , , , .

  • , , , , . ? , , , , . , , , memcached.

+7

Facebook MySQL. "MySQL Facebook" Facebook. !

, , , .. , .

​​ . , , Sphinx, MySQL. .

MySQL slow_queries ..

O'Reilly MySQL.

+3

:

  • PHP
  • Use MySQL in a very distributed form, as if it were a NoSQL database (this means that they do not join this when querying)
  • There is a lot of cache.
+2
source

All Articles