简体   繁体   中英

Which technology to choose for PubSub between java service and C# client

Which technology would you suggest for PubSub between Java Service and C# desktop client. What do you think about CometD? Is there any nice .net API for it? Server and client will run within the same organization so can use different protocols Is CometD a right choice at all or would it be better to use TCP instead of HTTP?

Since your apps run within the same organization, you will likely be able to use more efficient transport than HTTP, or even TCP, depending on your situation and requirements.

The Data Distribution Service (DDS) is a standard by the OMG based on Pub/Sub. Standardized language bindings are C, C++, Java and Ada, but C# and others are available as well. Different languages as well as operating systems can be mixed in your system. Structured datatypes to be distributed are specified in a language-neutral format (by the standard a subset of OMG IDL), which is then translated into language-specific interfaces and datatypes to be used by your applications.

It can use different transport layers, like UDP or also TCP. Although I can not determine from your brief description whether DDS would be your best choice, I think it is worth investigating. See this Wikipedia entry for a very brief introduction and list of references.

Warning: I have only used cometd (no atmosphere or even none-java solutions)

I like cometd as it was very fast to get started and the documentation was good. Also the javascript API worked without any issues.

and then the bayeux specification could be implemented on c# too: https://github.com/Oyatel/CometD.NET

http://bugs.cometd.org/browse/COMETD-23

You might want to look at some messaging protocols such as AMQP and STOMP . There's decent support for both protocols in both Java and .NET and you can choose your choice of message brokers such as RabbitMQ or ActiveMQ and others.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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