Questions tagged [azure-servicebus-subscriptions]

182 questions
2
votes
1 answer

Azure Service Bus Message deserialize to an unknown type at runtime in subscriptions

It's surprising, but I haven't yet found a sample where the Message received at a subscription could be of different types and the type needs to be known in order to deserialize its content with the right type. This is related but it doesn't…
2
votes
1 answer

Azure Service Bus: How to correctly check if Subscription already exists?

I am trying the following code to check if the Azure Service Bus topic subscription already exists: void Initialize() { CreateTopicSubscription().Wait(); //CreateTopicSubscription().GetAwaiter().GetResult(); } async Task…
Chris W
  • 1,562
  • 20
  • 27
2
votes
1 answer

Designing your Azure Service Bus topics - should you favor the use of more topics, or more filters?

I am in the early stages of designing the high-level structure of how two of our enterprise applications will broadcast to topics in the Azure Service Bus. I am a novice user of this technology, and after my preliminary reading of the…
2
votes
1 answer

Migrating Azure Service Bus Queue to Topic and Subscription in C#

Can I migrate an Azure Service Bus Queue to a Topic and Subscription by just reconfiguring the path names? Are there any code changes needed? Will 3rd parties have to change their code if I keep the names alike?
2
votes
1 answer

Code example for using Rebus with Azure Service Bus, Queue and Topic

I am new to Rebus, I am looking for code sample for using Rebus with Azure Service Bus, Queue and Topic. I cannot see it from the link below: https://github.com/rebus-org/RebusSamples Update To start off: Sample of enqueuing and dequeuing messaging…
2
votes
0 answers

Azure Service Bus Topic Subscription With Sessions - Queue Length

I have a topic subscription with sessions that I cannot manage to get the queue length down on. It appears to keep within a constant range of 95 to 105, very tightly. I am wondering if this is just an artefact of sessions, as our other subscription…
1
vote
1 answer

New-AzServiceBusRule cmdlet randomly failing with "already exists" error

I am trying to automate the infrastructure of my application. As part of that, I am creating Service Bus related resources (Namespace, Topics, Subscriptions) only if they do not exist. My subscriptions will only have 1 rule. So every time the script…
1
vote
2 answers

Deleting dead letter messages with Python

Helo, I have the next code that delete a dlq messages from Azure Service Bus Topics: import asyncio from azure.servicebus.aio import ServiceBusClient from azure.servicebus import ServiceBusSubQueue from azure.servicebus.management import…
1
vote
1 answer

Service Bus Timeout Exception

We have a service bus topic with 300+ number of subscriptions, all these subscribers are azure functions (python) and we are facing a timeout exception that we are trying to understand better and is where we would appreciate inputs from the…
1
vote
0 answers

Python ServiceBus Message Lock Expiry Issue

Im running into an issue with the message lock expiry in SerivceBus using Python SDK. I've created a simple tool that will clear dead-lettered messages in queues and subscriptions. We have various amount of queues and subscriptions and the tool acts…
1
vote
1 answer

How to delete and rename subscription filters that have already been created in the Azure Service Bus Namespace?

I have created a Service Bus Namespace in Azure using the ARM template. In that I have created multiple topics and subscriptions along with filters. "type": "Microsoft.ServiceBus/namespaces/topics/subscriptions/rules", "apiVersion":…
1
vote
1 answer

Azure Service Bus topic subscription throws FilterException about System.DBNull

All messages in a subscription to an Azure Service Bus topic are sent to the dead letter queue with a FilterException saying Operator '==' cannot be applied to operands of type 'string' and 'System.DBNull' The filter is of type SqlFilter and the…
1
vote
1 answer

Active message count in Azure service bus keep decrease after kill the app

I am using ServiceBusProcessorClient consume the events from topic: ServiceBusProcessorClient serviceBusProcessorClient = new ServiceBusClientBuilder() .connectionString(busConnectionString) .processor() …
1
vote
1 answer

Validate the connection string of Microsoft Azure Service Bus

I have a Microsoft Azure Service Bus connection string that I want to validate if it is a valid one. I want to validate the topics and subscriptions as well if they exist. If the connection string, topics, and subscriptions are invalid then we can…
1
vote
1 answer

Is it possible to set up a TTL on a ServiceBus Dead Letter Queue messages?

It is possible to set up TTL for messages in Azure Service Bus. I am wondering if there is a possibility to do the same for Dead Letter Queue? What I want to achieve is "auto-cleaning" of the DLQ of the old messages that are probably not relevant…
1
2
3
12 13