Azure Service Bus and Messaging Sessions

后端 未结 2 1594
谎友^
谎友^ 2021-01-11 12:06

I\'ve been looking into Azure Service Bus Queues (NOT Azure Storage Queues). All of the details that I have read indicate that it supports FIFO semantics, b

2条回答
  •  情深已故
    2021-01-11 12:45

    Taken from MSDN:

    SessionId: If a message has the Microsoft.ServiceBus.Messaging.BrokeredMessage.SessionId property set, then Service Bus uses the SessionId property as the partition key. This way, all messages that belong to the same session are handled by the same message broker. This enables Service Bus to guarantee message ordering as well as the consistency of session states.

    For a coding sample employing SessionId and AcceptSessionReceiver see.

提交回复
热议问题