Azure ServiceBus Queues
  • 01 Nov 2022
  • 3 Minutes to read
  • Dark
    Light
  • PDF

Azure ServiceBus Queues

  • Dark
    Light
  • PDF

Article Summary

Service bus queues are used to send and receive messages for asynchronous communication. The queue is chosen when there is only one receiver. For example, there is a Purchase order system that produces some data from different sources and the inventory management system must process all the data i.e only one receiver at the end.


 

Manage Service Bus Queues from BizTalk360 

Configure the respective subscription in the Environment Settings to manage Service Bus Queues from BizTalk360. Multiple Azure Subscriptions can be added to work simultaneously. Once the Subscription is added all the available Service Bus queues will be listed along with their state and message count details. Follow this article to add a subscription.

View Queues from BizTalk360

  • Navigate to Administration ->Azure Services ->Service Bus ->Queues to view the available queues 
  • Select the subscription from the drop-down and click Run query to view the available queues. With a query list, the user can get an insight into the queue's status and message count.
  • Select the queue from the list and click on the eye icon to view the queue and message properties in detail. The queue property blade lists Queue details such as Subscription, Resource group, Creation Time, Status, etc . and Message properties such as Message counts, sizes, etc  
  • The rich query filter capability allows the user to filter the query based on Queue Name, Status, Resource group, and Namespace. Save the query and pin for quick access. 

Update State 

Service bus Queues can have the following states

  • Active - The user can send or receive messages from Queues
  • Disabled – Queue is suspended 
  • Send Disable - The user can’t send messages to Queue, but messages can be received from it 
  • Receive Disable- The user can send messages to the queue, but can't receive messages from it.

Change the state of the queue by selecting the queues and clicking on the State actions(Active, Disable, Send Disable, Receive disable) at the top of the grid. which reflects the corresponding Queues in the Azure Subscription.

Also, bulk operations can be initiated in a single click by selecting multiple queues and clicking the state action 

Process Message

BizTalk360 allows users to send a single/bulk message and delete messages from queues. The message option button at the top drops an option to send /Upload/Purge 

Send Message-  Select the queue and click on the Message button which drops an option to send, upload, and purge, Select send which opens the send message blade. In the blade update actual the Message to send and update the count and click send. In addition to the message, also user properties can be pushed from here.

Upload Message -This option allows the user to send multiple messages by updating the message in excel and uploading the excel workbook. Each message updated in excel should have values for  Message-Id, Message Content, system, and Custom properties must be updated in excel to upload the message. Users can use the template provided for reference to update the message.


Message detailsTypeExample
Message Id Integer1
Message Content JSON{"Message": "Hello! From BizTalk360"}
System Properties JSON{"Label":"BizTalk360Message","EnqueuedTimeUtc":"2018-02-20T05:04:48.7828361Z","ContentType":"json","CorrelationId":null,"EnqueuedSequenceNumber":113,"ForcePersistence":false,"PartitionKey":"1","ReplyTo":null,"ReplyToSessionId":null,"ScheduledEnqueueTimeUtc":null,"SessionId":"1","State":"Active","TimeToLive":"14.00:00:00","To":null,"ViaPartitionKey":null}
Custom PropertiesJSON{"CustomProperty1": "Property1","CustomProperty2":"Property2"}

Purge Message - The purge option allows users to delete the Active and Dead letter messages from the queue. Users can delete all the messages or delete older messages based on the count. If there is no message available in the queue, that will be noted with a message "Active/Dead letter message not found".

Access and Security 

All the state change operations and message processing operations performed by users are audited under the Governance and audit section.

By default, super users can manage the queues from BizTalk360. However, the following access permission is required for the normal user to manage service bus queues

  • Azure service - To view the service bus queues 
  • manage Service Bus queues- To manage the state and process the message of queues

Was this article helpful?

ESC

Eddy, a super-smart generative AI, opening up ways to have tailored queries and responses