18

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.

Jamez
  • 1,559
  • 1
  • 15
  • 26
  • 2
    I need this functionality as well and have submitted a suggestion to Microsoft: http://feedback.azure.com/forums/216926-service-bus/suggestions/9295470-resubmit-dead-letter-message-back-to-the-subscript – Brian Vallelunga Aug 12 '15 at 19:19

1 Answers1

10

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.

Community
  • 1
  • 1
Sam Vanhoutte
  • 3,247
  • 27
  • 48
  • 1
    That's a really nice solution. Thanks man! It wouldn't have occurred to me to use a filter to achieve this! – Jamez Feb 28 '14 at 14:11
  • 1
    I ended up with LINQPad snippet that temporary modifies all topic subscriptions' (except target one) rules adding condition to filter out messages annotated by generated "resubmission-tag" property. Then program receives DLQ, annotates messages with "resubmission-tag" and puts them back into topic. This way all but target subscription will effectively drop the messages as not matching to any rule. – Eugene D. Gubenkov Nov 08 '17 at 18:50