简体   繁体   English

使用SDK通过API连接两个Web应用程序

[英]Connecting two web application through API using SDK

I have two SDK from Web and Desktop applications, Sage Line 50 SDK and Trackvia SDK , which approach works well to sync these two 我有两个来自Web和桌面应用程序的SDK ,Sage Line 50 SDK和Trackvia SDK ,这种方法很好地同步了这两个

thank you! 谢谢!

So if you want to sync Sage Line 50 and Trackvia, you essentially have to set up database replication between these two stores. 因此,如果要同步Sage Line 50和Trackvia,则必须在这两个存储之间设置数据库复制 Essentially what this means is that you're going to have to determine one as a master db and another as a slave . 本质上,这意味着您将必须确定一个作为主数据库,另一个确定为从数据库 The reason you want to do this is to maintain coherence of your data between your two different stores. 您要执行此操作的原因是为了保持两个不同存储之间的数据一致性。 The links I provided define what the concept of replication is, however implementing replication in your case is going to require creating a little bit of middleware because no current software exists to create a replication between two different stores. 我提供的链接定义了复制的概念,但是在您的情况下实现复制将需要创建一些中间件,因为不存在用于在两个不同存储之间创建复制的当前软件。

As explained in the articles, your middleware is going to have to ensure that you write to your slave database (you could choose which one this is) and that you have implemented software that will keep this in sync with your master. 如文章中所述,中间件将必须确保您写入从属数据库(可以选择这是哪个),并且已实现使该软件与主数据库保持同步的软件。 Essentially what you will be doing is making sure your CRUD operations are maintaing consistency throughout your data store. 本质上,您将要做的是确保CRUD操作在整个数据存储中保持一致性。

Please let me know if you have any questions! 请让我知道,如果你有任何问题!

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

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