Sending and Receiving Messages to an Azure Service Bus Topic
Description
Azure Service Bus is a cloud-based Publish/Subscribe messaging service from Microsoft. Messaging has many use-cases, including:
- Decoupling applications to improve reliability and scalability
- Load balancing workloads so that costs can scale with usage
- Enabling transactional operations
Azure Service Bus is serverless and managed. When using it, you don't need to worry about storing logs, handling backups, patching servers, or failover strategies. All these things are taken care of for you by Microsoft Azure.
In this hands-on lab, you will create a simple web application in NodeJS that sends and receives messages to and from an Azure Service Bus topic.
Learning Objectives
Upon completion of this beginner-level lab, you will be able to:
- Use the Azure Portal to access the primary connection string for an Azure Service Bus namespace
- Create an application that can send and receive Azure Service Bus topic messages using NodeJS
- Examine message activity for an Azure Service Bus namespace using the Azure Portal
Intended Audience
- Candidates for the Azure Developer Associate (AZ-204) certification
- Cloud Engineers
- Developers
Prerequisites
Familiarity with the following will be beneficial but is not required:
- Azure Service Bus
- The Bash shell
- The JavaScript programming language
The following courses and labs can be used to fulfill the prerequisites:
- Configuring Serverless Computing on Azure
- Linux Command Line Byte Session
- Creating a Topic and Subscription in Azure Service Bus
- Web Development Fundamentals - JavaScript
Updates
April 24th, 2024 - Updated the lab to use a newer version of NodeJS
October 13th, 2023 - Updated the screenshots and instructions to reflect the latest UI