-
Notifications
You must be signed in to change notification settings - Fork 647
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Write log entry when publishing without subscribers when message driven pubsub is used #4119
Comments
Note: this is only relevant for the message driven transports (msmq+asq+sql) since we have no way of knowing this with Rabbit+ASQ since the broker has that info @Particular/rabbitmq-transport-maintainers does rabbit have some kind of native "if no binding was present let me know" feature? @Particular/azure-service-bus-maintainers does ASB have some way of knowing that there was no one listening to the topic? |
@andreasohlund not really, but we can query the namespace for that info. But this is also a timing question, what if no one is listening yet (aka, subscriber is still booting up) |
@andreasohlund there is mandatory flag that lets broker know if you should be informed if the message cannot be delivered to any queue (like publishing without subscribers). At the moment, mandatory flag is set for Sends (as the message should get to someone) and to not set for publish (as publishing with no subscriptions is considered valid scenario). So it seems that there could be an option to do something with it if needed. |
This seems like a low hanging fruit, do you want to send in a PR @ramonsmits ? |
We seem to be officially support publishing on a send only endpoint (#2612).
For diagnostical purposes, I would propose to write a log entry with level WARN stating the following message
Concerns:
The text was updated successfully, but these errors were encountered: