AMQP V1.0 Client for .NET

▼魔方 西西 提交于 2019-12-10 16:33:33

问题


I am looking into using a product such as RabbitMQ or ActiveMQ. I see that there is, to a certain extent, a level of support in these products for AMQP v1.0.

However, I am struggling to find a client for using AMQP 1.0 with .NET. So far the only one I have come across is Apache Qpid. However, having to install all its dependencies along with building it all rather than just using something like NuGet to obtain the client library all seems a bit cumbersome and doesn't give me confidence in support moving forward.

Microsoft Azure Service Bus has AMQP 1.0 support and has a client but it appears to be specific to that product as far as I can tell, which is a shame as I thought one of the benefits of AMQP was the ease to switch out different brokers.

From what I have read on RabbitMQ it appears that they are not committing to building a client for AMQP 1.0.

Does anyone have any thoughts on the above and whether there are any clients I have overlooked?

Many thanks in advance


回答1:


The most complete AMQP 1.0 client for .NET is "Amqp.Net Lite" [1]. I'm aware of people having success with this against Azure Service Bus, Qpid C++ broker and ActiveMQ.

Regards, Dave.

[1] https://amqpnetlite.codeplex.com/




回答2:


AMQP 0.9.1, that RabbitMQ implements, and AMQP 1.0 are very different beasts, so different that many have argued that they shouldn't really be linked in any way. The AMQP 0.9.1 protocol effectively has two parts: the wire protocol and the broker protocol. My understanding is that AMQP 1.0 only describes the wire protocol, thus leaving vendors to specify their broker architecture independently of the protocol and thus ensuring lock-in.

If your plan is to choose a single client library which you can then use to connect to both Azure SB and RabbitMQ, then I think you're likely to be disappointed. Your best bet for interoperability is to stick with 0.9.1.

For more information, Pieter Hintjens has an excellent blog post on this here: http://hintjens.com/blog:28



来源:https://stackoverflow.com/questions/21258792/amqp-v1-0-client-for-net

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!