azureservicebus

How can the serialized size of EventData be determined for batching?

情到浓时终转凉″ 提交于 2019-12-19 10:27:53
问题 In the documentation for the Azure EventHubClient there are two methods for sending a batch of data each of them has the remark below and will throw a MessageSizeExceededException if it is ignored. You should ensure that the total serialized size of eventDataList is less than the size limit of one event data transmission, which is 256k by default. A similar warning is present in the Programming Guide How can the serialized size of IEnumerable<EventData> eventDataList be determined? The size

Resubmitting a message from dead letter queue - Azure Service Bus

别来无恙 提交于 2019-12-19 06:26:20
问题 I have created a service bus queue in Azure and it works well. And if the message is not getting delivered within default try (10 times), it is correctly moving the message to the dead letter queue. Now, I would like to resubmit this message from the dead letter queue back to the queue where it originated and see if it works again. I have tried the same using service bus explorer. But it gets moved to the dead letter queue immediately. Is it possible to do the same, and if so how? 回答1: The

Azure Service Bus and Messaging Sessions

百般思念 提交于 2019-12-19 05:16:43
问题 I've been looking into Azure Service Bus Queues ( NOT Azure Storage Queues). All of the details that I have read indicate that it supports FIFO semantics, but only in the context of a "Messaging Session". The problem is that I can't seem to find any information on what exactly this is in the context of Azure. Is this a WCF construct, or something that is particular to Azure Service Bus? I assume that it does not relate to local transactions, but I am not 100% sure. Any pointers would be very

The binding type 'serviceBusTrigger' is not registered error in azure functions c# with core tools 2

故事扮演 提交于 2019-12-19 02:47:11
问题 I open a fresh new azure functions project, my packages are: Microsoft.Azure.WebJobs 3.0.0-beta4 Microsoft.Azure.WebJobs.ServiceBus 3.0.0-beta4 Microsoft.NET.Sdk.Functions 1.0.7 NETStandardLibrary 2.0.1 I use servicebustrigger and my function code is basic: public static class Function1 { [FunctionName("OrderPusherFunction")] public static Task Run([ServiceBusTrigger("orders","orderpusher", Connection ="ServiceBus")] string myQueueItem, TraceWriter log) { log.Info($"C# Queue trigger function

How do you get the message count for Azure Topic Subscription?

做~自己de王妃 提交于 2019-12-18 13:13:32
问题 Is there a way to get the current message count for an Azure topic subscription? I see that the SubscriptionDescription class has a MessageCount property, but this class appears to only be used to create a subscription. I don't see a way to retrieve a SubscriptionDescription object for an existing subscription. 回答1: I found what I was looking for: var namespaceManager = NamespaceManager.CreateFromConnectionString(connectionString); var subscriptionDesc = namespaceManager.GetSubscription

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

帅比萌擦擦* 提交于 2019-12-18 12:53:28
问题 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

Service Bus - Singleton Connection Class?

北城以北 提交于 2019-12-18 05:03:05
问题 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

Azure ServiceBus AutoRenewTimeout

自古美人都是妖i 提交于 2019-12-18 04:43:22
问题 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

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-12-18 04:29:07
问题 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

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

♀尐吖头ヾ 提交于 2019-12-18 04:23:48
问题 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