Chandan Gurjar
Chandan Gurjar

Reputation: 35

can azure service bus (for a topic) send notification to a rest end point (POST)

I need to azure service bus to notify an end point (Rest - POST) whenever a message comes to a particular topic.

In AWS, it is done this way AWS llink

What is the equivalent in Azure. Note: I dont want to write code that will receive the message and then call the end point.

Upvotes: 1

Views: 1872

Answers (2)

Chandan Gurjar
Chandan Gurjar

Reputation: 35

Looks like finally azure released Azure Event Grid which kinds of does this out of the box.. very similar to AWS SQS + AWS SNS combo

https://learn.microsoft.com/en-us/azure/event-grid/overview

Upvotes: 1

Sean Feldman
Sean Feldman

Reputation: 26002

Azure Service Bus is a messaging service, not a Notifications service. As such, it deals solely with messaging, and doesn't create notifications for you.

AWS combines SQS (Simple Queuing Service) with SNS (Simple Notification Service) behind the scenes to allow you the functionality you're describing. This is to allow SQS to have a behaviour of events. Azure Service Bus has a native support for Topics and Subscriptions (if that's what you're looking for). I.e. rather than just sending messages to a queue, the message is sent to a topic and appropriate subscriber(s) will get it.

So the short answer to this question in case you don't want to receive the message and trigger a notification is "no".

Saying that, if you're OK with "serverless" functions (similar to AWS Lambdas), you could use Azure Functions to achieve this goal.

Upvotes: 1

Related Questions