azureservicebus

Reading Azure Service Bus Queue

旧巷老猫 提交于 2019-11-29 16:55:24
I'm simply trying to work out how best to retrieve messages as quickly as possible from an Azure Service Bus Queue. I was shocked that there wasn't some way to properly subscribe to the queue for notifications and that I'm going to have to poll. (unless I'm wrong in which case the documentation is terrible). I got long polling working, but checking a single message every 60 seconds looks like it'll cost around £900 per month (again, unless I've misunderstood that). And if I add a redundant/second service to poll it'll double. So I'm wondering what the best/most cost efficient way of doing it

How can I set SB-Messaging adapter credentials securely?

爷,独闯天下 提交于 2019-11-29 12:28:07
I am developing a solution which involves reading messages from an Azure service bus queue using the BizTalk SB-Messaging adapter. I am using the BizTalk Deployment Framework to deploy the application without user input. Some adapters have an option to acquire credentials for external systems using the Single Sign-On database (option 'Use SSO'). The SB-Messaging adapter doesn't have this feature, and requires that either ACS (Access Control Service) or SAS (Shared Access Secret) credentials for the service (in this case a queue) are entered in the UI. BTDF can also set them by entering them in

Microsoft.ServiceBus.Messaging vs Microsoft.Azure.ServiceBus

柔情痞子 提交于 2019-11-29 12:16:59
问题 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

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

南楼画角 提交于 2019-11-29 11:43:15
问题 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

Cannot connect to Azure ServiceBus with Microsoft.Azure.ServiceBus

牧云@^-^@ 提交于 2019-11-29 08:21:33
问题 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

Service Bus - Singleton Connection Class?

喜夏-厌秋 提交于 2019-11-29 07:33:44
I'm trying to figure out what is the best practice for using Service Bus from a Web-API. I've read that re-creating objects like QueueClient, SubscriptionClient and etc' is the wrong approach, so I need to reusing factories and clients. Service Bus client objects, such as Microsoft.ServiceBus.Messaging.QueueClient or Microsoft.ServiceBus.Messaging.MessageSender, are created through a MessagingFactory object, which also provides internal management of connections. You should not close messaging factories or queue, topic, and subscription clients after you send a message, and then re-create them

Azure ServiceBus AutoRenewTimeout

旧街凉风 提交于 2019-11-29 06:06:37
I am using Azure ServiceBus Queues through the .net SDK. There is a flag on the OnMessageHandler/OnMessageOptions called "AutoRenewTimeout", but there seems to be confusion on what this value actually means. On the official documentation here https://msdn.microsoft.com/en-us/library/microsoft.servicebus.messaging.onmessageoptions.aspx it suggests that the AutoRenewTimeout should be greater than the queue lockduration. Gets or sets the maximum duration within which the lock will be renewed automatically. This value should be greater than the longest message lock duration; for example, the

What's the proper way to abandon an Azure SB Message so that it becomes visible again in the future in a way I can control?

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-29 05:28:52
So the scenario is that I'm using an SB queue to throttle outgoing callbacks to other services. One of the standard problems with calling back to other services is that they may be down for uncontrollable amounts of time. Assuming I detect that the target is down/not responding, what is the best pattern for abandoning that message so that it doesn't reappear on the queue immediately? Here's are some approaches I'm either aware of, have tried or am considering: Obviously if I just use BrokeredMessage::Abandon() the message will be unlocked and put back on the queue. This is obviously

High throughput send to EventHubs resulting into MessagingException / TimeoutException / Server was unable to process the request errors

心已入冬 提交于 2019-11-29 04:51:34
We are experiencing lots of these exceptions sending events to EventHubs during peak traffic: "Failed to send event to EventHub. Exception : Microsoft.ServiceBus.Messaging.MessagingException: The server was unable to process the request; please retry the operation. If the problem persists, please contact your Service Bus administrator and provide the tracking id." or "Failed to send event to EventHub. Exception : System.TimeoutException: The operation did not complete within the allocated time " You can see it clearly here: As you can see, we got lots of Internal Errors, Server Busy Errors,

How do I report a bug in Windows Server Service Bus?

我的未来我决定 提交于 2019-11-29 02:22:31
问题 I tried to google. Microsoft Connect doesn't accept bugs for Service Bus. Azure Portal sends to either MS forums or to StackOverflow - so here I am. The question is really in the title: how do I report a bug with Service Bus? (not the Azure version, but the one you install on premises) And here is the issue: Microsoft.Cloud.ServiceBus.dll has a reference to Microsoft.Cloud.Common.AzureStorage.dll . It uses one type from that assembly - namely, StorageAccountInfo . It's part of a configuration