Skip to content

Commit 5803b51

Browse files
Merge pull request #281901 from spelluru/sbusfreshness0722
Service Bus freshness
2 parents 3ed5ddc + 6f676df commit 5803b51

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Azure Service Bus - Browse or peek messages
33
description: Browse and peek Service Bus messages enables an Azure Service Bus client to enumerate all messages in a queue or subscription.
44
ms.topic: concept-article
5-
ms.date: 06/08/2023
5+
ms.date: 07/25/2024
66
#customer intent: As a developer, I want to know how to browse or peek messages in a queue or a subscription, for diagnostic and debugging purposes.
77
---
88

@@ -21,7 +21,7 @@ The Peek operation on a queue or a subscription returns at most the requested nu
2121
| Scheduled messages | Yes for queues. No for subscriptions |
2222

2323
## Dead-lettered messages
24-
To peek into **Dead-lettered** messages of a queue or subscription, the peek operation should be run on the dead letter queue associated with the queue or subscription. For more information, see [accessing dead letter queues](service-bus-dead-letter-queues.md#path-to-the-dead-letter-queue).
24+
To peek into **dead-lettered** messages of a queue or subscription, the peek operation should be run on the dead letter queue associated with the queue or subscription. For more information, see [accessing dead letter queues](service-bus-dead-letter-queues.md#path-to-the-dead-letter-queue).
2525

2626
## Expired messages
2727
Expired messages might be included in the results returned from the Peek operation. Consumed and expired messages are cleaned up by an asynchronous "garbage collection" run. This step might not necessarily occur immediately after messages expire. That's why, a peek operation might return messages that have already expired. These messages will be removed or dead-lettered when a receive operation is invoked on the queue or subscription the next time. Keep this behavior in mind when attempting to recover deferred messages from the queue.
@@ -47,10 +47,11 @@ You can also pass a SequenceNumber to a peek operation. It's used to determine w
4747

4848
You can specify the maximum number of messages that you want the peek operation to return. But, there's no way to guarantee a minimum size for the batch. The number of returned messages depends on several factors of which the most impactful is how quickly the network can stream messages to the client. 
4949

50-
Here's an example snippet for peeking all messages with the Python Service Bus SDK. The `sequence_number​` can be used to track the last peeked message and start browsing at the next message.
5150

5251
### [C#](#tab/csharp)
5352

53+
Here's an example snippet for peeking all messages with the .NET SDK. The `SequenceNumber​` can be used to track the last peeked message and start browsing at the next message.
54+
5455
```csharp
5556
using Azure.Messaging.ServiceBus;
5657

@@ -113,6 +114,8 @@ Peek round complete
113114

114115
### [Python](#tab/python)
115116

117+
Here's an example snippet for peeking all messages with the Python Service Bus SDK. The `sequence_number​` can be used to track the last peeked message and start browsing at the next message.
118+
116119
```python
117120
import os
118121
from azure.servicebus import ServiceBusClient

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Azure Service Bus - message deferral
33
description: This article explains how to defer delivery of Azure Service Bus messages. The message remains in the queue or subscription, but it's set aside.
44
ms.topic: conceptual
5-
ms.date: 06/08/2023
5+
ms.date: 07/25/2024
66
---
77

88
# Message deferral

0 commit comments

Comments
 (0)