[英]Can Linux and Windows data system co-exist
Planning to have two system - Linux (running Java and databae posgrsql) and Windows (running .net application and database MS SQL) in parallel. 计划有两个系统 - Linux(运行Java和databae posgrsql)和Windows(运行.net应用程序和数据库MS SQL)并行。 Some of the data residing in both the database systems are accessed by both the applications in Linux and Windows.
Linux和Windows中的应用程序都访问驻留在两个数据库系统中的一些数据。 So, can the two system co-exists?
那么,这两个系统能共存吗? Can either of the applications access and manipulate the data?
任何一个应用程序都可以访问和操作数据吗?
In theory it is possible ... to a large degree. 从理论上讲,这在很大程度上是可能的。 A couple of things to things to think about:
需要考虑的几件事情:
If the data is duplicated across the different databases in an ad-hoc fashion, then you are going to have to solve the problem of keeping the copies in step. 如果数据以特殊的方式在不同的数据库中重复 ,那么您将不得不解决将副本保持在步骤中的问题。
If your system requires transactions that read / update the data in multiple databases, then you are going to need to use distributed transactions which is going to make things complicated. 如果您的系统需要读取/更新多个数据库中的数据的事务,那么您将需要使用分布式事务 ,这将使事情变得复杂。 (Really complicated if you don't have an overarching XOpen/XA framework in your system architecture.)
(如果您的系统架构中没有总体XOpen / XA框架,那真的很复杂。)
My advice would be to try to simplify your technology base, and if you can't then try to keep clean boundaries between the respective databases. 我的建议是尝试简化您的技术基础,如果您不能尝试在各自的数据库之间保持清晰的界限。 Ideally, design the architecture so that there is a application service tier with separate / independent services for each database.
理想情况下,设计体系结构,以便为每个数据库提供具有单独/独立服务的应用程序服务层。 Have your clients talk to the application services rather than talking directly to the database(s).
让您的客户与应用程序服务进行通信,而不是直接与数据库通信。
Both Postgres and Mysql are enterprise level database and as such can easily handle two clients. Postgres和Mysql都是企业级数据库,因此可以轻松处理两个客户端。 Normal practices are to include transactional based updates / inserts.
通常的做法是包括基于事务的更新/插入。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.