hands-on lab

Sending and Receiving Messages to an Azure Service Bus Topic

Difficulty: Beginner
Duration: Up to 45 minutes
Students: 177
Rating: 4.3/5
Get guided in a real environmentPractice with a step-by-step scenario in a real, provisioned environment.
Learn and validateUse validations to check your solutions every step of the way.
See resultsTrack your knowledge and monitor your progress.

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:

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

Environment before

Environment after

Covered topics

Lab steps

Logging in to the Microsoft Azure Portal
Preparing to Implement a NodeJS Application
Sending and Receiving Messages to an Azure Service Bus Topic