简体   繁体   English

Linux和Windows数据系统可以共存吗?

[英]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.

相关问题 Java 7和Java 8可以在OSX上共存 - Can Java 7 and Java 8 co-exist on OSX 插件和约定插件可以同时存在于struts2应用程序中吗? - can both code-behind and convention plugins co-exist in struts2 application? Visual Studio Express 2008 C/C++ 可以与 VSE Java 在同一台机器上共存吗? - Can Visual Studio Express 2008 C/C++ co-exist on the same machine with VSE Java? 检查不能彼此共存的按位标志 - Check bitwise flags that cannot co-exist with each other Eclipselink @mapkey和@JoinFetch(JoinFetchType.OUTER)无法共存吗? - Eclipselink @mapkey and @JoinFetch(JoinFetchType.OUTER) cannot co-exist? 来自具有相同名称的不同maven-modules的文件不能在使用maven assembly-plugin创建的jar文件中共存 - files from different maven-modules with the same name can not co-exist in a jar-file created with the maven assembly-plugin 后续 Spring 引导异常处理问题 - 与现有错误处理共存的最佳方式? - Followup to earlier Spring Boot Exception Handling question - Best way to co-exist with already existing error handling? JBoss多个SLF4J绑定错误,如何导致多个日志实现共存 - JBoss multiple SLF4J bindings error, how do I cause multiple log implementation to co-exist Linux系统上的Windows DLL - Windows DLL on Linux System 订阅事件处理器和跟踪事件处理器可以共存吗? - Can subscribing event processor and tracking event processor co exist?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM