Skip to content

Commit cbad76b

Browse files
Merge pull request #128317 from lailabougria/patch-1
Document that ordering is lost for dead-lettered messages
2 parents 9edcb72 + 03becbe commit cbad76b

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

articles/service-bus-messaging/message-sessions.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,13 @@ The definition of delivery count per message in the context of sessions varies s
6969
| Session is accepted, the messages within the session aren't completed (even if they're locked), and the session is closed | No |
7070
| Session is accepted, messages are completed, and then the session is explicitly closed | N/A (It's the standard flow. Here, messages are removed from the session) |
7171

72+
## Maximum delivery count in sessions
73+
74+
When a message in a session is abandoned (for example, due to a processing failure), it becomes available again for the receiver until the [`MaxDeliveryCount`](service-bus-dead-letter-queues.md#maximum-delivery-count) for the queue or subscription is exceeded. The default value is 10. Once exceeded, the message is moved to the [dead-letter queue (DLQ)](service-bus-dead-letter-queues.md), and the receiver continues receiving subsequent messages from the session.
75+
76+
> [!IMPORTANT]
77+
> If a dead-lettered message is later moved back to the original queue for reprocessing, the original ordering relative to other session messages is lost because the resubmitted message receives a new enqueue time and sequence number.
78+
7279
## Request-response pattern
7380
The [request-reply pattern](https://www.enterpriseintegrationpatterns.com/patterns/messaging/RequestReply.html) is a well-established integration pattern that enables the sender application to send a request and provides a way for the receiver to correctly send a response back to the sender application. This pattern typically needs a short-lived queue or topic for the application to send responses to. In this scenario, sessions provide a simple alternative solution with comparable semantics.
7481

0 commit comments

Comments
 (0)