S
S
Stanislav Somov2014-12-07 13:49:55
PHP
Stanislav Somov, 2014-12-07 13:49:55

Synchronization of two databases, options?

Backend warehouse in php with mysql database. Frontend workplace in python directly sends data to the server with rest requests.
Everything works but there is a dependence on the Internet.
What scheme to use to store data on the frontend and synchronize with the server?
Synchronize with python or database?
If using python, then how to check that the data has been synchronized?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Rsa97, 2014-12-07
@DarkDemon

The best solution is to reserve the Internet channel from both sides.
You can use asynchronous master-master database replication, but there are many pitfalls, for example, you cannot use AUTO_INCREMENT if the table is being written to on both sides.

D
Dremkin, 2014-12-07
@Dremkin

I agree with previous speakers - duplicate the channel, it's easier and cheaper.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question