shah_ankitb Posted September 16, 2013 Share Posted September 16, 2013 Hello Friends, Can anyone know how to do load balancing in PHP? It's server side or we can manage through PHP script also?? Link to comment Share on other sites More sharing options...
Mudsaf Posted September 16, 2013 Share Posted September 16, 2013 (edited) I think the major browsers tell which one to load first. 1. Style & Lightweight HTML code 3. JavaScript / Ajax / -Something else- 2. Images / Other larger files / Flash / Videos See more http://stackoverflow.com/questions/1795438/load-and-execution-sequence-of-a-web-page Edited September 16, 2013 by Mudsaf Link to comment Share on other sites More sharing options...
shah_ankitb Posted September 16, 2013 Author Share Posted September 16, 2013 Thanks for reply. But i think you are talking about other. http://stackoverflow.com/questions/5085599/how-to-load-balance-a-php-application I'm talking about this. Memcache & all that Link to comment Share on other sites More sharing options...
Mudsaf Posted September 16, 2013 Share Posted September 16, 2013 Ah my bad Link to comment Share on other sites More sharing options...
justsomeguy Posted September 16, 2013 Share Posted September 16, 2013 Load balancing is when you have multiple servers and you try to send the same number of requests to each server so that any one server does not become overloaded. If that's what you're trying to do, the actual load balancing has nothing to do with PHP, that is accomplished with network hardware (a load balancer) that decides where to send each request. The concurrency issues that you may deal with are making sure that the databases that each server uses are synchronized (probably using a database cluster), and making sure that each server saves session information in the same location so that no matter which server a request goes to it will find the same session. Some load balancers work per-client, so that it will always send a certain client to the same server. In that case you don't need to worry about the session issue. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now