This project demonstrates how to use Service Bus to send and receive messages.
- Node.js installed
- Azure Service Bus account
Before running the publisher and subscriber, make sure to create a topic and subscription in your Azure Service Bus account.
- Install dependencies:
npm install
- Open a terminal and navigate to the project directory.
- Run the publisher:
npm run publisher
- Open another terminal and navigate to the project directory.
- 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.
For more information on how to use topics in Azure Service Bus, you can refer to the Microsoft Topic Tutorial.
This project is licensed under the MIT License.