Skip to content

Commit d382b8c

Browse files
authored
Enhance message-sessions.md with MaxDeliveryCount details
Added section on MaxDeliveryCount to explain message handling and dead-lettering in sessions.
1 parent b474df1 commit d382b8c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ 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
73+
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.
75+
7276
## Request-response pattern
7377
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.
7478

0 commit comments

Comments
 (0)