Microsoft.ServiceBus 中的 BrokeredMessage class 和 Microsoft.Azure.ServiceBus 中的消息 class 之间的区别
Difference between BrokeredMessage class in Microsoft.ServiceBus and Message class in Microsoft.Azure.ServiceBus
我已经开始使用 Azure 中的 Azure 服务总线。通过 Internet 浏览了一些参考资料后,人们似乎在 Microsoft.ServiceBus.Messaging 中使用 BrokeredMessage class 而不是 Message class 在 Microsoft.Azure.ServiceBus.
- BrokeredMessage class: https://docs.microsoft.com/en-us/dotnet/api/microsoft.servicebus.messaging.brokeredmessage?view=azure-dotnet
- 留言class:https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.servicebus.message?view=azure-dotnet
我可以将消息 'types' 发送到 Azure 服务总线,也可以通过 Azure 服务总线使用它们。此外,两者都可以用于异步操作。这两种类型之间的主要区别是什么?
[更新] 本文提供了 Azure 服务总线在交换 brokered 消息 (https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-performance-improvements) 时的最佳实践。我不确定 Microsoft.Azure.ServiceBus.
中是否也提到了 Message
正如 Gaurav Mantiri 提到的,Microsoft.Azure.ServiceBus 是使用 .Net Standard 构建的库的更新版本。
您可以从github获得详细信息。
This is the next generation Service Bus .NET client library that focuses on queues & topics. This library is built using .NET Standard 1.3.
如果是新项目使用Azure Service Bus,我推荐如下:
- 首选新的 .NET Standard 客户端 (
Microsoft.Azure.ServiceBus
) Message
。
- 注意文档和各种资源。他们主要迎合老客户(希望 MSFT doco 尽快改变)。
- 如果您需要跨越不同实体的传输交易,新客户端还不能提供。
- 如需管理操作,新客户端不提供。曾经。相反,您必须使用管理库或等到
NamespaceManager
的替换包出来。
- 如果您有旧系统发出作为序列化数据而不是 Stream 发送的消息,则使用新客户端的实现必须了解它并使用客户端提供的扩展方法来处理这些消息。新客户端仅处理基于
Stream
的消息。
我已经开始使用 Azure 中的 Azure 服务总线。通过 Internet 浏览了一些参考资料后,人们似乎在 Microsoft.ServiceBus.Messaging 中使用 BrokeredMessage class 而不是 Message class 在 Microsoft.Azure.ServiceBus.
- BrokeredMessage class: https://docs.microsoft.com/en-us/dotnet/api/microsoft.servicebus.messaging.brokeredmessage?view=azure-dotnet
- 留言class:https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.servicebus.message?view=azure-dotnet
我可以将消息 'types' 发送到 Azure 服务总线,也可以通过 Azure 服务总线使用它们。此外,两者都可以用于异步操作。这两种类型之间的主要区别是什么?
[更新] 本文提供了 Azure 服务总线在交换 brokered 消息 (https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-performance-improvements) 时的最佳实践。我不确定 Microsoft.Azure.ServiceBus.
中是否也提到了 Message正如 Gaurav Mantiri 提到的,Microsoft.Azure.ServiceBus 是使用 .Net Standard 构建的库的更新版本。
您可以从github获得详细信息。
This is the next generation Service Bus .NET client library that focuses on queues & topics. This library is built using .NET Standard 1.3.
如果是新项目使用Azure Service Bus,我推荐如下:
- 首选新的 .NET Standard 客户端 (
Microsoft.Azure.ServiceBus
)Message
。 - 注意文档和各种资源。他们主要迎合老客户(希望 MSFT doco 尽快改变)。
- 如果您需要跨越不同实体的传输交易,新客户端还不能提供。
- 如需管理操作,新客户端不提供。曾经。相反,您必须使用管理库或等到
NamespaceManager
的替换包出来。 - 如果您有旧系统发出作为序列化数据而不是 Stream 发送的消息,则使用新客户端的实现必须了解它并使用客户端提供的扩展方法来处理这些消息。新客户端仅处理基于
Stream
的消息。