• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

AnswerTeller

Get the Answer!

  • APPEARANCE
    • Hair
    • Skin
      • Tattoo
      • Piercing
    • Breasts
    • Makeup
    • Clothing
      • Lingerie
    • Shoes
    • Fashion
  • RELATIONS
    • Dating
    • Love
    • Friendship
    • Sex
    • Family
      • Husband
      • Wife
      • Parents
      • Brother
      • Sister
      • Children
    • Marriage
    • Divorce
    • Teenagers
    • Gifts
  • HOME
    • House
    • Apartment
    • Renting
    • Cooking
    • Garden
    • Pets and Animals
    • Car
    • Bikes
  • HEALTH
    • Maternity
  • LEARNING
    • School
    • College
    • University
    • Education
    • Exams
    • Maths
      • Algebra
      • Geometry
    • Physics
    • Chemistry
    • Anatomy
    • Quiz
  • KNOWLEDGE
    • Life
    • Religion
      • Bible
    • Books
    • History
    • Law
      • Crime
    • Science
    • Economics
    • Politics
    • International
    • Languages
  • WORK
    • Careers
    • Jobs
    • Interview
    • Business
    • Real Estate
    • Office
  • MONEY
    • Credit
    • Loan
    • Buying
    • Selling
    • Shopping
    • Insurance
    • Taxes
    • Stocks
    • E-Money
    • Gambling
    • Scam
  • LEISURE
    • Entertainment
      • Home Cinema
    • Celebrities
    • Sports
    • Movies
    • Music
    • Dancing
      • Ballet
    • Dining Out
      • Restaurants
      • Fast Food
    • Vacations
    • Holidays
      • Christmas
      • New Year
      • Easter
      • Halloween
    • Photography
  • TRAVEL
    • Accommodation
      • Hotels
      • Motels
    • Flights
    • Airlines
    • Trains
  • TRIVIA
    • Fortune
      • Horoscope
    • How To
    • How Do I
    • Puzzle
    • Quiz
    • Miscellaneous
Browse: Home / COMPUTER / Internet / Networking

How can facebook handle so many users in real time with php?

person103: How can facebook handle so many users in real time with php?
There are millions of users on Facebook at a time. Despite this, Facebook is able to update people’s news feeds with others activity in real time. With what structure of php can this be accomplished.

Answers and Views:

Answer by Frxstrem
Well, to be honest, it’s not the PHP code that makes it possible, it’s the huge servers they use.

Answer by Jack Automann
You can do it with any “structure” of PHP, they just have warehouses filled with servers.

Answer by cramtime
Actually both of the answers above suck.
Look into ‘HipHop’
It’s a code translator that the Facebook team made that converts the PHP code to C++, allowing them to compile it. Since compiled code runs much faster than interpreted code (except ASP/ASP.NET, which just sucks in general) it allows them to accomplish much faster loading times.
As well, it’s not only the code that allows them to do such. You have to consider that they’re running constant queries to their databases, thus their queries have to be top-notch. Writing a query well will significantly reduce the amount of time it takes to pull from the database. This includes indexes, proper queries, using prepared statements when need be, and database optimization.

Having a whole databank of servers does NOT make your website run faster. In fact, it adds overhead to the whole process, thus potentially increasing loading times. So there’s both answers proven wrong.
What HipHop did for them was significantly reduced the server load and time required to process the code, thus allowing them to process more on one server, and compile their code. The only con of that was losing some commands such as eval().
I personally compile my PHP source and use it as such. You also have to ensure that when you write it, it’s properly structured and that the best practices are used. This will also significantly reduce processing time and load.

Related Questions:

  • 1.  facebook?!?
  • 2.  What iz the difference between facebook and myspace?
  • 3.  how do I prevent group members on linkedin from receiving group updates?
  • 4.  How do you find your twitter account without signing in?

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Categories

  • APPEARANCE
    • Breasts
    • Clothing
      • Lingerie
    • Fashion
    • Hair
    • Makeup
    • Shoes
    • Skin
      • Piercing
      • Tattoo
  • COMPUTER
    • Computing
    • Hardware
    • Internet
      • Google
      • Networking
      • Spam
      • Yahoo
    • Microsoft
    • Programming
    • Software
  • HEALTH
    • Maternity
  • HOME
    • Apartment
    • Bikes
    • Car
    • Cooking
    • Garden
    • House
    • Pets and Animals
    • Renting
  • KNOWLEDGE
    • Books
    • Economics
    • History
    • International
    • Languages
    • Law
      • Crime
    • Life
    • Politics
    • Religion
      • Bible
    • Science
  • LEARNING
    • Anatomy
    • Chemistry
    • College
    • Education
    • Exams
    • Maths
      • Algebra
      • Geometry
    • Physics
    • School
    • University
  • LEISURE
    • Celebrities
    • Dancing
      • Ballet
    • Dining Out
      • Fast Food
      • Restaurants
    • Entertainment
      • Home Cinema
    • Holidays
      • Christmas
      • Easter
      • Halloween
      • New Year
    • Movies
    • Music
    • Photography
    • Sports
    • Vacations
  • MONEY
    • Buying
    • Credit
    • E-Money
    • Gambling
    • Insurance
    • Loan
    • Scam
    • Selling
    • Shopping
    • Stocks
    • Taxes
  • Popular Questions
  • RELATIONS
    • Dating
    • Divorce
    • Family
      • Brother
      • Children
      • Husband
      • Parents
      • Sister
      • Wife
    • Friendship
    • Gifts
    • Love
    • Marriage
    • Sex
    • Teenagers
  • TRAVEL
    • Accommodation
      • Hotels
      • Motels
    • Airlines
    • Flights
    • Trains
  • TRIVIA
    • Fortune
    • Horoscope
    • How Do I
    • How To
    • Miscellaneous
    • Puzzle
    • Quiz
  • WORK
    • Business
    • Careers
    • Interview
    • Jobs
    • Office
    • Real Estate

Search for More!

Copyright AnswerTeller © 2025 · About · Privacy Policy · Contacts · Sitemap Disclaimer: AnswerTeller.com is an informational website, and its content does not constitute professional advice of any kind. As an Amazon Associate, we earn from qualifying purchases.