Questions tagged [azure-servicebus-queues]

Windows Azure Service Bus Queue, questions regarding relay, topics and queues

Windows Azure Service Bus Queues are a set of cloud-based, message-oriented-middleware technologies. These “brokered” messaging capabilities can be thought of as asynchronous, or decoupled messaging features that support publish-subscribe, temporal decoupling, and load balancing scenarios using the Service Bus messaging fabric. Decoupled communication has many advantages; for example, clients and servers can connect as needed and perform their operations in an asynchronous fashion.

Service Bus Relay offers the ability to publish a WCF endpoint in the cloud, acting as a bridge to bypass firewalls, allowing duplex operations.

1015 questions
3
votes
1 answer

What kind of exceptions give retries in Azure Service Bus SubscriptionClient?

I am struggling with messages ending up in dead letter queue too quickly. I have specified an ExponentialRetry policy like this: private readonly RetryExponential _retryPolicy = new RetryExponential( TimeSpan.FromSeconds(1), …
Alf Kåre Lefdal
  • 643
  • 1
  • 6
  • 27
3
votes
1 answer

Microsoft Azure WebJobs SDK ServiceBus connection string 'ServiceBusSettings.ConnectionString' is missing or empty

The Main Method is as shown below, class Program { static void Main(string[] args) { var builder = new HostBuilder(); builder.ConfigureWebJobs(b => { b.AddAzureStorageCoreServices(); …
3
votes
1 answer

Azure Service bus queue - Message proccessed vs active message proccessed

I have a webjob (App service) that acts on messages from a queue in Azure. I like to scale the webjob when I have a long queue. How do I do that? From the criteria, I can see 2 options: - Messages processed/Instance (AVG) - Active Messages…
Ashkan S
  • 10,464
  • 6
  • 51
  • 80
3
votes
1 answer

How to config service bus function 2.x for max retry count?

By default the Azure service bus queue binding function will have a retry count of 10, is there anyway to custom this value in either host.json or local.settings.json file? I've read about the microsoft document, which introduce four variables…
Drex
  • 3,346
  • 9
  • 33
  • 58
3
votes
1 answer

Azure Functions dynamic input / output binding based on Service Bus trigger message content

I'm trying to create Azure Function 2.0 with multiple bindings. The function gets triggered by Azure Service Bus Queue message and I would like to read Blob based on this message content. I've already tried below code: public static class…
mickl
  • 48,568
  • 9
  • 60
  • 89
3
votes
0 answers

Can I use Azure's ServiceBusTrigger with ReceiveMode?

I want to handle dead letters of my azure service bus queue. For this I thought I could use a azure function with a ServiceBusTrigger: [FunctionName("DoSomethingWithDeadLetters")] public static async Task DoSomething( …
3
votes
2 answers

Configure Shared Access Signature on Azure Service Bus Subscription

From the Microsoft documentation, I see that SAS can be scoped to only Azure Service Bus Namespaces, Queues, Topics and not Subscriptions. I have a use case where I want the consumers of one subscription to not be able to access other subscriptions.…
3
votes
1 answer

Can I configure the MessageSession lock to expire?

Context: MSDN documentation on Service Bus queues and message sessions says "When the MessageSession object is accepted and while it is held by a client, that client holds an exclusive lock on all messages with that session's SessionId that exist in…
Craig
  • 1,890
  • 1
  • 26
  • 44
3
votes
2 answers

Azure Service Bus message lock not being renewed?

I built a service to support multiple queue subscriptions in Azure Service Bus, but I'm getting some odd behavior. My subscription singleton class has a method that looks like this: public void Subscribe(Func execution,…
3
votes
1 answer

Microsoft.Azure.ServiceBus.ServiceBusException - Sending a message to the Azure service bus topic queue

I am having a following code snippet in my application to send a message to the Azure service bus topic queue. Randomly I am getting the generic ServiceBusException during sending messages. var serialized =…
3
votes
2 answers

How to read from Microsoft.Azure.ServiceBus queue populated from CRM 2016

I am looking to create a .NET Core 2.2 console app that reads from a Azure Service Bus Queue. Messages are put on the queue by a CRM 2016 instance. The plan is to use the queue to notify externals when entities are created and/or updated. I am able…
Jason
  • 2,806
  • 2
  • 28
  • 38
3
votes
1 answer

Storage Queue vs Service Bus Queue - Polling/Cost question

I have a slightly philosophical problem. We are using Storage Queues for processing the "tickets". The way we have implemented that is we have a background service (worker role) that is polling the storage queue and finding out if there is any…
3
votes
1 answer

Max number of sessions per entity in Azure Service Bus

Azure Service Bus allows to use sessioned entities(queues and topics), we use them to keep batching processing by the same consumer(if we send a batch from producer, it must be processed by the same consumer service). I cannot find any…
3
votes
0 answers

Azure Service Bus negative amount of scheduled messages

I need to get a message from queue in some special time. So I use scheduled message in queue. I send messages via ScheduleMessageAsync method. For getting messages I use Azure Web Job with ServiceBusTrigger. I send a couple of messages, everything…
3
votes
0 answers

More Messages In Azure Service Bus Queue than sent

In an attempt to catch and retry transient exceptions when sending to a queue in an azure service bus, I am seeing more messages than sent when sending more than 25,000 messages in a test scenario. I expected that if I did have excess messages,…
DanCaveman
  • 676
  • 1
  • 6
  • 22