Re: PHP - Load Balancing
It's a trap!
Do not blindly send all SELECTs to the Slave by some load balancer or whatever. You will screwup in certain cases.
It would be better for your app to know when it is safe to just read, then connect to the Slave. Otherwise connect to the Master. Preferably, a single program (eg, PHP web page) would connect one way or the other, not both.
Subject
Written By
Posted
Re: PHP - Load Balancing
May 31, 2016 09:32PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.