Master-Master I am building a "master-master" databases topology. There are two databases in two different sites, Site A and Site B. People on Site A and Site B can both read/write from/into these two databases.
Mysql version is 5.7.
So I need to write a microservice using Golang to synchronize these two databases. Is there anyone know any API can achieve this?
The reason why I need to use codes instead of MySQL configuration method is that I need cutoff the synchronization at any time and the environment of one server is not stable.