简体   繁体   English

在Java服务和.net客户端之间通信数据的最佳方法是什么?

[英]What's the best way to communicate data between java services and .net clients?

We have what I think is a fairly typical client/server architecture, with a frontend written in .NET, displaying data sent from a backend written in Java. 我认为我们是一个相当典型的客户端/服务器体系结构,其前端使用.NET编写,显示从Java编写的后端发送的数据。

Currently, we use a custom message-based framework for transmitting data snapshots and updates down to clients. 当前,我们使用基于消息的自定义框架将数据快照和更新传输到客户端。 This might be upgraded; 这可能会升级; although the basic java service/.net client setup is set in stone, we want to look at replacements for the message framework, for example WPF MVVM (with an eye on Sliverlight), with databindings to java web-services, or perhaps Coherence. 尽管基本的Java服务/.net客户端设置是一成不变的,但我们希望查看消息框架的替代品,例如WPF MVVM(着眼于Sliverlight),并带有与Java Web服务的数据绑定,或者可能是Coherence。

I was wondering what experiences others have had with this and other approaches (obviously there's no golden bullet for all situations...). 我想知道其他人对这种方法和其他方法有什么经验(显然,在所有情况下都没有万灵丹……)。

Our requirements are that the clients can show large, frequently updating and editable datasets, primarily in grids. 我们的要求是客户可以显示大型,频繁更新和可编辑的数据集,主要是在网格中。

Update I've accepted that REST/SOAP is the standard way to do it, but I'd still be interested to hear any other approaches, especially from a performance point of view. 更新我已经接受了REST / SOAP是执行此操作的标准方法,但是我仍然想听听其他方法,特别是从性能的角度。

Web services is the most common choice: Web服务是最常见的选择:

  • RESTful service - more flexible, no strictly defined schema RESTful服务-更灵活,没有严格定义的架构
  • SOAP service - rigid schema, less flexible SOAP服务-刚性模式,灵活性较差

Checkout protobuf ,这是一个很好的平台不可知协议。

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

相关问题 Adobe flex 与 Java 通信的最佳方式是什么? - What is the best way for Adobe flex to communicate with Java? 在SWT中,父外壳程序和非对话框子外壳程序之间进行通信的最佳方法是什么? - In SWT, what's the best way to communicate between a parent shell and a non dialog child shell? 在PHP Web服务和Android / Java应用程序之间保护数据的最佳方法是什么 - What's the best way to secure data between an PHP webservice and a Android/Java application 在Java中使用.NET Web服务的最佳方式 - Best way to consume .NET web services in Java 在jsp页面和Servlet之间进行通信的最佳方法是什么? - What is the best way to communicate between a jsp page and a Servlet? 在两个应用程序之间进行通信的最佳和最快方法是什么? - what is the best and fastest way to communicate between two applications? 在同一主机上的node.js和java之间进行通信的最佳方式 - Best way to communicate between node.js and java on the same host 与Bonjour交流的最佳方式是什么? - What is the best way to communicate with Bonjour? 在活动之间共享数据的最佳方式是什么? - What's the best way to share data between activities? 在Java桌面应用程序中保留数据的最佳方法是什么? - What's the best way to persist data in a Java Desktop Application?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM