Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Send message directly to Subscription

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.

like image 868
Jamez Avatar asked Feb 28 '14 13:02

Jamez


People also ask

How do I get messages from Service Bus topic?

Use the Azure Portal to access the primary connection string for an Azure Service Bus namespace. Create an application that can send and receive Azure Service Bus topic messages using NodeJS. Examine message activity for an Azure Service Bus namespace using the Azure Portal.

What is Service Bus subscription?

A topic subscription resembles a virtual queue that receives copies of the messages that are sent to the topic. Consumers receive messages from a subscription identically to the way they receive messages from a queue.

What is Service Bus topic and subscription?

Azure Service Bus Topic Publishers send messages to a topic in the same way that they send messages to a queue, but it varies on a slight factor where Topics can have multiple, independent subscriptions. A subscriber to a Topic can receive a copy of each message sent to that Topic.


1 Answers

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.

like image 134
Sam Vanhoutte Avatar answered Sep 18 '22 22:09

Sam Vanhoutte