简体   繁体   English

在两个数据库上同步数据

[英]Sync data on two DB's

This is just a conceptual question. 这只是一个概念上的问题。 If we are trying to update our records on two servers. 如果我们尝试更新两个服务器上的记录。 One locally and second on some remote server (like parse or QB). 一台本地服务器,另一台远程服务器(例如解析或QB)。 What is the best way to save it. 最好的保存方法是什么。

1) Should we save it remotely first and then on local machine 1)我们应该先远程保存然后再在本地计算机上保存吗

2) Save it locally and then save it to remote. 2)将其保存在本地,然后将其保存到远程。

I'm currently sticking to 1st point as it will only create record locally if it can be saved on remote. 我目前坚持第一点,因为它只能在远程保存时才在本地创建记录。

Have you're say. 你有话说吗

I have just faced the same in my company. 我在公司中也面临同样的问题。 What we did we used the live server from which the process was being done and update the records on local server in sync. 我们所做的事情是使用正在处理的实时服务器,并同步更新本地服务器上的记录。 The problem was identified as database transfer in few complexities if stopped then sync or update stops. 如果停止,然后停止同步或更新,则该问题被确定为数据库传输的复杂性较低。 Now if the process stops on live/remote server it will be affecting the client process. 现在,如果该进程在实时/远程服务器上停止,将影响客户端进程。 On local server post the remote server we could be able to resolve any issue not affecting the other important one. 在远程服务器上的本地服务器上,我们可以解决任何不影响另一个重要问题的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM