Skip to content

Commit 03becbe

Browse files
Update articles/service-bus-messaging/message-sessions.md
Co-authored-by: Eldert Grootenboer <[email protected]>
1 parent d382b8c commit 03becbe

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,12 @@ 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-
## MaxDeliveryCount
72+
## Maximum delivery count in sessions
7373

74-
When failures occur, and the message is abandoned, it will be made available again on the session for consumption by a receiver until the MaxDeliveryCount is exceeded. When the MaxDeliveryCount is exceeded, the failing message is dead-lettered, and the receiver will continue receiving subsequent messages from the session. If and when the dead-lettered message is moved back to the queue for reprocessing, the original order in which the messages were received is lost.
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.
7578
7679
## Request-response pattern
7780
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.

0 commit comments

Comments
 (0)