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
4
votes
1 answer

Filtering the messages in a queue with Windows Azure

Is there any way I can filter the messages based on properties? I mean, that only with certain properties the Worker role takes it?
3
votes
2 answers

How to unit test MassTransit consumer with no response

I want to unit test my MassTransit consumer which does not send a response back. Currently my test does seem to be publishing a message, but the consumer is not being triggered, so my breakpoints are not getting hit within it at all. The consumer is…
user3407039
  • 1,285
  • 5
  • 25
  • 51
3
votes
1 answer

Azure service bus delete queue message by id using the .net sdk

I have an Azure Service Bus Queue filled with messages and I want to delete a message based on it's ID. The REST API provides this solution by http request: DELETE …
3
votes
1 answer

Get message id from Azure Service Bus Queue in .net 5

I want to send a message to a service bus queue and receive it's ID. The sdk examples seems to provide a solution. string connectionString = ""; string queueName = ""; // since ServiceBusClient implements…
3
votes
0 answers

Azure Service Bus: should I close QueueClient on application shutdown?

I have an ASP.NET REST service that receives messages from a queue using Microsoft.Azure.ServiceBus library. It has the next service bus queue messages consumer that instantiates QueueClient and starts listening to the messages from the…
yaskovdev
  • 1,213
  • 1
  • 12
  • 22
3
votes
1 answer

How to send mail/alert when message moved to Dead Letter Queue (ASB DLQ)?

I am trying to send a mail alert when message passed to Azure Service Bus Dead Letter Queue. I did not find any proper solution to send mail alert. Can we process this in which side azure or .net core? if so can anyone help with the process
3
votes
0 answers

How to convert a Postgres query result to JSON or String in Python

I have a Postgres database and I want to send the result of a query to the Azure Service bus. The output of the query is: [(226530, 5, 'GDGDGh', '326', 'Logical Name', 553713665, 537985025, 136, 0, 301, datetime.datetime(2021, 3, 8, 19, 46, 26,…
3
votes
1 answer

Azure Service Bus ReceiveAndDelete

So I have created sample application where an application will send message to queue and read the message. With this application I am using "ReceiveAndDelete" and below is the sample code Create Message private static async void CreateMessage(string…
Ravi Khambhati
  • 637
  • 1
  • 12
  • 35
3
votes
2 answers

Not all messages peeked from Azure Service Bus queue

I have an Azure Service Bus queue with 236 messages in the dead-letter sub-queue. I know this because the Azure Portal and Service Bus Explorer show me that number. I wrote the following in LINQPad to retrieve all 236 messages and examine them.…
Craig W.
  • 17,838
  • 6
  • 49
  • 82
3
votes
1 answer

Get Queue name or Topic+Subscriber name in azure function (Azure Service Bus triggered functions)

Is it possible to get the queue name in a service bus triggered Azure Function? I know it is possible if the QueueName or TopicName+SubscriberName are hard coded. In that case I can make a const string and use it inside the function. However my…
3
votes
2 answers

Azure Function Service Bus trigger fires more times than messages in the queue

I have two Service Bus Queues and Azure Service Bus Queue Trigger. The function reads 1000 messages from the queue and forwards them to another (for test) When publishing to Azure (plan consumption) I get 1030+ function hits even though I only have…
3
votes
2 answers

Unit and Integration Test for Azure Function with ServiceBusTrigger

I have an Azure Function which is triggered by an Azure Service Bus Queue. The function is below. How this Run method can be unit tested? And how an integration test can be done by starting with AddContact trigger, checking the logic in the method…
wonderful world
  • 10,969
  • 20
  • 97
  • 194
3
votes
1 answer

Difference between Messages and Active Messages in Azure Service bus

I am trying to create a chart for Count of messages in Azure Service Bus, I see there are two options i . Count of Messages in Queue/Topic ii. Count of Active messages in Queue/Topic What is the difference between these two ?
3
votes
2 answers

Which .NET Azure Service Bus library should I use for queues?

Microsoft has two Azure Service Bus packages on NuGet: WindowsAzure.ServiceBus Use this for Microsoft Azure Service Bus Queues, Topics, EventHub and Relay backend operations. Microsoft.Azure.ServiceBus This is the next generation Azure Service…
3
votes
1 answer

On azure Event bus How much times takes from a letter go to a dead letter queue

I'm testing an implementation of a retry policy of azure event bus, and my question is how much time after, a letter will go to the dead letter queue. Thanks