How can I use a mysql database from a server on the other side of the world without lag?
-
We have a MySQL server running in the same US region as the application servers.. It is running perfectly. We'd like to set up local application servers in Japan, however we want to use a centralized database for all application servers. What methods are there to combat the latency issues that would experienced connecting to mysql servers on the other side of the world.
-
Answer:
There's nothing you can do about the 100-200ms latency between the US and Japan. Cf. http://www.dotcom-monitor.com/WebTools/network_latency.aspx And that's assuming the network is working at all. If your applications try to use a database in another region, you're asking for trouble. Any network downtime means your applications can't function. So a better strategy is to host a copy of your database in Japan, so your application servers in Japan are always reading and writing data locally. Then the problem is how to keep databases in sync across the WAN? Look into http://www.percona.com/software/percona-xtradb-cluster (PXC) for a good solution for wide-area multi-way synchronous replication. It's open-source and free. If your applications use the database by writing a high volume of changes, or if individual transactions contain a lot of data, then PXC isn't so efficient. But typical applications read data a lot more frequently than they write data, and transactions make small incremental changes (i.e. single row updates). In the latter scenario, PXC is great. Disclaimer: I work for Percona.
Bill Karwin at Quora Visit the source
Related Q & A:
- How can I use a button to retrieve a phone 'number' from contacts?Best solution by Stack Overflow
- How Can I Use A Picture For My Avatar?Best solution by Yahoo! Answers
- How can I use a prepaid credit card?Best solution by ehow.com
- How can I use a VGA cable as an input?Best solution by tomsguide.com
- How can I use my digital camera as a webcam?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.