azureservicebus

Looking for clarity on Event Hubs vs Topics in Azure Service Bus

落爺英雄遲暮 提交于 2019-11-30 10:25:46
问题 I've been learning about Event Hubs and just want to get confirmation or correction on my perspective on Event Hubs? I’m used to leveraging retries, poison messages, at least once delivery and so on for normal enterprise messaging solutions, which Azure Service Bus Queues and Topics give me. It seems that Event Hubs is intended to provide a different tool for very high scale where you have to give up a little of the more “enterprise” features for much higher scale. Am I thinking about this

Cannot connect to Azure ServiceBus with Microsoft.Azure.ServiceBus

青春壹個敷衍的年華 提交于 2019-11-30 09:05:57
I have created a very simple console application that connects to Azure ServiceBus and sends one message. I tried the latest library from Microsoft ( Microsoft.Azure.ServiceBus ) but no matter what I do I just get this error: No connection could be made because the target machine actively refused it ErrorCode: ConnectionRefused I have tried exactly the same connection string in Service Bus Explorer and it does work just fine. Moreover I connected without problems using the older library from Microsoft ( WindowsAzure.ServiceBus ). var sender = new MessageSender("endpoint", "topicName"); sender

Microsoft.ServiceBus.Messaging vs Microsoft.Azure.ServiceBus

 ̄綄美尐妖づ 提交于 2019-11-30 08:38:38
MS has recently introduced the Microsoft.Azure.ServiceBus namespace. https://github.com/Azure/azure-service-bus/blob/master/samples/readme.md It is geared for the new .net standard framework (as if MS doesn't have enough semi-redundant code bases) My question is, how much better could it be in terms of performance? I can say with confidence, that the Microsoft.ServiceBus.Messaging leaves lots to be desired, in particular when it comes to persistent receiving. A very useful feature of the Microsoft.ServiceBus.Messaging , is the message pump, built on top of OnMessage() method. The new library,

Difference between BrokeredMessage class in Microsoft.ServiceBus and Message class in Microsoft.Azure.ServiceBus

纵然是瞬间 提交于 2019-11-30 08:32:47
I've got started with Azure Service Bus in Azure. Having gone through some references over the Internet, it seems that people use BrokeredMessage class in Microsoft.ServiceBus.Messaging rather than Message class in Microsoft.Azure.ServiceBus. BrokeredMessage class: https://docs.microsoft.com/en-us/dotnet/api/microsoft.servicebus.messaging.brokeredmessage?view=azure-dotnet Message class: https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.servicebus.message?view=azure-dotnet I can send both of message 'types' to Azure Service Bus and also work with them over Azure Service Bus. Also,

Azure WebJobs ServiceBus returns Exception: found 2 DNS claims in authorization context

本秂侑毒 提交于 2019-11-30 07:59:48
I'm trying to read a message from an Azure ServiceBus queue using an Azure WebJob but it's throwing and exception: Unhandled Exception: System.InvalidOperationException: Found 2 DNS claims in authorization context. I've set the correct connection strings named "AzureWebJobsServiceBus", "AzureWebJobsDashboard" and "AzureWebJobsStorage" The WebJob Program code has been updated to use JobHostConfiguration: class Program { static void Main() { var config = new JobHostConfiguration(); config.UseServiceBus(); var host = new JobHost(config); host.RunAndBlock(); } } And the actual Job method public

Azure Service Bus queue messages got stuck

白昼怎懂夜的黑 提交于 2019-11-30 03:12:29
问题 I recently created some partitioned queues from where I send and receive all the time. They've run as non-partitioned in the past without any of my current issues. The problem is, I have a constant number of messages in the queue that I can not receive. I always get nothing back when not sending any other messages to the queues but when I send messages to the queues I receive the new messages without a problem. The messages that are stuck in the queue are active messages, not dead lettered. I

Why use a QueueClient vs MessageFactory?

不羁岁月 提交于 2019-11-30 01:26:11
问题 In Azure Service Bus, you can send a brokered message using QueueClient and MessageFactory . I would like to know why would you want to use one over the other. 回答1: Azure Service Bus provides different way to send/receive messages. You can use the QueueClient to send and receive message to/from a queue. You can use the TopicClient to send message to a topic And you can use the SubscriptionClient to receive message from a subscription. Using MessageSender and MessageReceiver , you create

Test Azure Service Bus locally without any subscription or login

泪湿孤枕 提交于 2019-11-30 01:20:44
Is there a way to play with and discover Azure Service Bus on the local emulator without registering to the real Azure Services? I was following a tutorial on the use of the Azure Service Bus but at a certain point a Namespace and an Issuer Name and Key is required. I don't have that data since I'm not registered to Azure Services and I don't want to do it now ( I will get my trial when I will feel ready to develop/test something real ). SliverNinja - MSFT Unfortunately there is not an emulated Azure Service Bus you can run locally. The Azure Service Bus requires an active Azure Subscription .

Clearing azure service bus queue in one go

删除回忆录丶 提交于 2019-11-30 00:31:35
问题 We are using a service bus queue in our project. We are in need of a functionality to remove all the messages from the queue when the administrator chooses to clear the queue. I searched on the net but could not find any function which does this inside the QueueClient class. Do I have to pop all the messages one by one and then marking them complete to clear the queue or is there a better way? QueueClient queueClient = _messagingFactory.CreateQueueClient( queueName, ReceiveMode.PeekLock);

Looking for clarity on Event Hubs vs Topics in Azure Service Bus

孤者浪人 提交于 2019-11-29 20:37:31
I've been learning about Event Hubs and just want to get confirmation or correction on my perspective on Event Hubs? I’m used to leveraging retries, poison messages, at least once delivery and so on for normal enterprise messaging solutions, which Azure Service Bus Queues and Topics give me. It seems that Event Hubs is intended to provide a different tool for very high scale where you have to give up a little of the more “enterprise” features for much higher scale. Am I thinking about this correctly? Are there additional specifics I need to consider as well? I realize there could be some