Skip to content

carlosm-o/pub-sub-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Service Bus Publisher and Subscriber

This project demonstrates how to use Service Bus to send and receive messages.

Prerequisites

  • Node.js installed
  • Azure Service Bus account

Setup

Before running the publisher and subscriber, make sure to create a topic and subscription in your Azure Service Bus account.

  • Install dependencies: npm install

Running the Publisher

  1. Open a terminal and navigate to the project directory.
  2. Run the publisher: npm run publisher

Running the Subscriber

  1. Open another terminal and navigate to the project directory.
  2. Run the subscriber: npm run subscriber

Make sure to keep both terminals open in order to send and receive messages between the publisher and subscriber.

  • Use Postman to send a json object in the body of the request to the publisher.

Microsoft Topic Tutorial

For more information on how to use topics in Azure Service Bus, you can refer to the Microsoft Topic Tutorial.

License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors