Book a Demo Free Trial

Peek messages by sequence number in Azure Service Bus

Divya Harinarayanan

Mar 24, 2022

Category: Azure Service Bus

In this blog post we will see how to peek Active and Deadletter messages from a Sequence number in Queues and Topic Subscriptions. 

Problem

Peeking retrieves all the available messages without any filters. In Peek mode, the messages will remain in the queue until processed or dead-lettered. While processing the older messages, it’s hard to get the targeted messages from a random list. 

Solution

Cerebrata now supports Peek messages by Sequence number where the messages are handled efficiently. The Queue or topic Subscription generates unique sequence number for every message. By providing a sequence number, each message with an increased sequence number can be peeked across the partitions, making it easier to find messages intended for modification, processing, or cancellation of scheduled messages 

In Cerebrata, to display the Sequence number column in Table grid, Select Customize View option > Select Sequence number > Navigate the column by Move Up and Move Down as per your convenience > Click OK 

Peek Messages by sequence number

Peek Active messages in Queue and Topic/Subscription

To Peek messages by Sequence number in Queue and Topic/Subscription in Cerebrata, Open (View Messages – “Peek” Messages) > Select Peek Messages option > Enter Sequence Number > Select Peek  

azure service bus peek messages

azure service bus peek messages

Be on top of messaging issues with proactive monitoring of Azure Service Bus dead-letter messages across multiple Queues and Topic Subscriptions.

Peek deadletter messages in Queue and Topic/Subscription

To Peek deadletter messages by Sequence number in Queue and Topic/Subscription in Cerebrata, Open (View Deadletter Messages – “Peek” Messages) > Select Peek Messages option > Enter Sequence Number > Select Peek  

Peek Active messages

Peek deadletter messages

Conclusion

In this blog, we saw how to traverse across the partitions to peek every message with increased sequence number on Service bus account using Cerebrata. 

Cerebrata enables you to manage your Azure Cosmos DB accounts (SQL API, Table API, Mongo API and Gremlin API), Service Bus Namespaces, Cognitive Search Service accounts, Redis Cache accounts, and much more. It is also cross-platform so that you can manage your Azure resources from a platform of your choice – Windows, Mac, or Linux. 

Please visit https://www.cerebrata.com to learn more.