Send message directly to Subscription

删除回忆录丶 提交于 2019-12-03 17:41:13

问题


Is it possible to send a message directly to a Subscription queue?

Scenario:

A message failed, dropped onto the deadletter, the message has been picked up manually using defer, cloned and needs to be sent to the queue it was first deadlettered on, but NOT the topic.

Can I send a message directly to a subscriber?

I've considered creating a separate retry queue per subscriber, where the handling service will also receive messages from but i'd rather not do this.


回答1:


this is a similar question to the one you asked earlier: Azure Service Bus Subscriber Deadletter

this is not possible, as far as I know. the only thing you could do is to add an extra filter on every subscription that has something like SubscriptionName='SubscriptionA'. If you then want to send you deadlettered message to the specific subscription, you can add a property SubscriptionName to it, to achieve your goal. Take into account that you also have to make sure that in your original filter, you add a condition to indicate that the property SubscriptionName should not exist.

I agree however, that it would be a nice scenario to 'undeadletter' a message, so that it ends up again in his original subscription.



来源:https://stackoverflow.com/questions/22096262/send-message-directly-to-subscription

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!