Azure Service Bus subscriber is needed to send the message to the topic

560 Views Asked by At

I have tried to send a message to the topic of Azure Service Bus but it is not having any subscribers for now and it was showing there is no matching subscription found for it. So I have created a temporary subscriber for that and sent the message successfully. So my question is it compulsory to having a subscriber to send the message to the topic?? Thanks for the help!

1

There are 1 best solutions below

1
On

You do not have to have subscriptions under the topic to be able to publish messages. But in order to receive messages, subscriptions have to exist. Subscribers can come online later and fetch those events. Without subscriptions, subscribers will not get anything as the topic doesn't know what to retain and for whom.