You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/service-bus-messaging/message-browsing.md
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: Azure Service Bus - Browse or peek messages
3
3
description: Browse and peek Service Bus messages enables an Azure Service Bus client to enumerate all messages in a queue or subscription.
4
4
ms.topic: concept-article
5
-
ms.date: 06/08/2023
5
+
ms.date: 07/25/2024
6
6
#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.
7
7
---
8
8
@@ -21,7 +21,7 @@ The Peek operation on a queue or a subscription returns at most the requested nu
21
21
| Scheduled messages | Yes for queues. No for subscriptions |
22
22
23
23
## 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).
25
25
26
26
## Expired messages
27
27
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
47
47
48
48
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.
49
49
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.
51
50
52
51
### [C#](#tab/csharp)
53
52
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
+
54
55
```csharp
55
56
usingAzure.Messaging.ServiceBus;
56
57
@@ -113,6 +114,8 @@ Peek round complete
113
114
114
115
### [Python](#tab/python)
115
116
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.
Copy file name to clipboardExpand all lines: articles/service-bus-messaging/message-deferral.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: Azure Service Bus - message deferral
3
3
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.
0 commit comments