Which .NET Azure Service Bus library should I use for queues?

时光总嘲笑我的痴心妄想 提交于 2020-12-13 03:01:10

问题


Microsoft has two Azure Service Bus packages on NuGet:

  • WindowsAzure.ServiceBus

    Use this for Microsoft Azure Service Bus Queues, Topics, EventHub and Relay backend operations.

  • Microsoft.Azure.ServiceBus

    This is the next generation Azure Service Bus .NET Standard client library that focuses on queues & topics

At first it sounds like you should pick WindowsAzure.ServiceBus. The package description is literally a command to "use this" for queues. But Microsoft.Azure.ServiceBus calls itself "the next generation."

The GitHub project for Microsoft.Azure.ServiceBus doesn't exactly help matters, either: The README links to code samples that use WindowsAzure.ServiceBus (as of February 2020).


回答1:


As explained in the blog post The future of Azure Service Bus .NET SDK there are now three SDKs for Service Bus:

  • WindowsAzure.ServiceBus
  • Microsoft.Azure.ServiceBus
  • Azure.Messaging.ServiceBus

Azure.Messaging.ServiceBus, which is the newest one, was recently released and is available on NuGet. There are some official samples available for it. Therefore I recommend using that SDK unless you find there is some critical functionality you need missing in it. To report bugs and request new functionality go to the Azure SDK GitHub home.



来源:https://stackoverflow.com/questions/60283148/which-net-azure-service-bus-library-should-i-use-for-queues

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