Jump to content

Need a distribution solution. How do I run a single PHP app on multiple servers?

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1
Franky

Franky

    Newbie

  • Members
  • Pip
  • 1 posts
This is my first post on these forums. Nice to meet you all :)

I am speculating an upcoming project and have never experimented with distributed applications. I need to build an application, that can be deployed on multiple nodes/servers and provide a single interface (ip/domain) to access it from. A perfect example would be facebook ;) . How exactly could one domain name handle infinite requests?! I looked into hadoop, and searched for clustered solutions for basic php/mysql apps but couldn't find anything. I've also read up on consistent hashing but figured it was just a solution for data redundancy. Any input would be greatly appreciated!

#2
Orjan

Orjan

    Writes binary right handed and hex left handed

  • Moderators
  • 3,299 posts
at first, I can say that there isn't only one IP behind facebook and such. They will probably have an dns pool which is the first part, it more or less randomizes which of the to the host assigned IPs that user will see the site as. This is manageable just by adding several a-records for the same host name, if I remember right. MySQL in their enterprise solution has cluster solutions, so that is the next step to set up. that's a small part of it at least. but there are so much more.
__________________________________________
I study Information Systems at Karlstad University when I'm not on CodeCall

#3
John

John

    Writes binary right handed and hex left handed

  • Moderators
  • 6,321 posts
Facebook also has two layers of data abstraction. They cache the majority of their data, and when the cache is out of date, it is updated from the persistant data store.