Is it good to have multiple mysql databases hosted in multiple database servers for a PHP application??
I know programatically it is pain. But is it secure? will that make my application more flexible?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you’re using multiple of these databases simultaneously, it’ll require connections to multiple servers as well, which could eventually cause it to be a bit slower. If you’ll really notice this will depend on different factors, but I guess it’s not ideal.
Security-wise it shouldn’t matter much, and might even be less secure. More servers means more chances of one of them being compromised. But if you mean security as in making sure that your site won’t go down, you could consider hosting all the databases on all of these servers, and let them sync with each other. That way, if one server goes down, you’ll use one of the other servers. Or use multiple servers at the same time to balance the load.