The data structure used for storing data by First in-First out rule is defined as a Queue. The data item is inserted from the back of the queue and is retrieved from front. In the similar way Azure queues are used to store the messages in a queue. The message is sent by the sender and the client receives and processes the message.
The messages can be processed and deleted by the client. The message is stored for 7 days by the Windows Azure and after 7 days gets automatically deleted, if it is not deleted by the client. There can be one sender and one client or one sender and many clients or many sender and many clients.
There are two services offered by Windows Azure for message queues - Windows Azure queue and Service Bus queue.
Decoupling the components is one of the advantages of message queue services. It runs in an asynchronous environment where messages can be sent among the different components of an application. Thus, it provides an efficient solution for managing workflows and tasks. For example, a message to complete a task is sent from the frontend of the application and is received by a backend worker, who then completes the task and deletes the message.
The messages in the Microsoft Azure queue do not have any replication. The maximum size of the message can be 40 kb and the number of replications can be processed is 20,000.
Step 1 − Right-click on Windows PowerShell in the taskbar. Choose ‘Run ISE as administrator’.
Step 2 − Run the following command to access the account. Please replace the highlighted part for the account.
Step 3 − Specify the storage account in which a queue is created.
Step 4 − Create a Queue.
Step 1 − Login to the account.
Step 2 − Specify the storage account desired to use.
Step 3 − Retrieve the queue and then insert the message.
The ‘if’ condition in the script above checks if the queue specified exists or not.
The next message from the queue can be dequeue by the following steps:
Step 1 − First connect to the account and specify the storage account, by running the commands as shown in the above steps.
Step 2 − Retrieve the queue.
Step 3 − Dequeue the next message.
Step 4 − Delete the dequeued message.
The queue can be managed using the Azure Storage Explorer by the following steps:
Step 1 – From the dropdown at the top right, the storage account need to be selected. The previously added accounts if any, will be displayed and if nothing is displayed then accounts will be added and provide the credentials. Once signed in, the Azure Storage Explorer is logged in.
Step 2 – By selecting ‘Queues’ from the left panel and clicking ‘New’ a new queue will be added as shown below:
Step 3 – Provide the name of the queue and the queue is created in the storage account.
Step 4 − By selecting the queue in the left panel the messages can be added or deleted.
Microsoft Azure Related Interview Questions
|Microsoft Outlook Interview Questions||MVC Framework Interview Questions|
|Microsoft Entity Framework Interview Questions||JqueryUI Interview Questions|
|Microsoft Office SharePoint Server (MOSS) Interview Questions||Microsoft Solutions Framework (MSF) Interview Questions|
|Windows Presentation Foundation(WPF) Interview Questions||Windows Communication Foundation (WCF) Interview Questions|
|Spring MVC Framework Interview Questions||Advanced jQuery Interview Questions|
|Azure Cosmos DB Interview Questions||Windows Controls Interview Questions|
Microsoft Azure Related Practice Tests
|Microsoft Outlook Practice Tests||Microsoft Entity Framework Practice Tests|
|Windows Presentation Foundation(WPF) Practice Tests||Windows Communication Foundation (WCF) Practice Tests|
|Spring MVC Framework Practice Tests||Advanced jQuery Practice Tests|
|Windows Server 2012 Practice Tests|
Microsoft Azure Tutorial
All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.