azure-servicebus-queues

Azure Service Bus Retry Policy doesn't change the behavior

。_饼干妹妹 提交于 2019-12-11 05:13:23
问题 I'm trying to understand the retry policy on the Azure Service Bus but it's not working the way I would expect. I have the following code that both listens for messages and sends a message to a specific azure queue. using System; using Microsoft.ServiceBus; using Microsoft.ServiceBus.Messaging; namespace ServiceBusTester { class Program { static void Main(string[] args) { var connectionString = "Endpoint=sb://<NamespaceName>.servicebus.windows.net/;SharedAccessKeyName

auto_increment in U-SQL

孤街醉人 提交于 2019-12-11 02:12:42
问题 I am trying to form a new table that contains unique user_id's from existing one. Is it possible to add auto_increment primary key in U-SQL like we can add in MySQL? 回答1: To elaborate on David's answer: Unlike MySQL, ADLA/U-SQL is executed in a scale-out shared nothing architecture. Thus there is not an easy way to manage auto-incremental numbers. However, there is are some tricks that you can use: You can use the ROW_NUMBER() function to generate a number per row. You could add that to the

MessageReceiver.ReceiveBatch() not working as intended

筅森魡賤 提交于 2019-12-10 20:53:15
问题 I am trying to receive messages in batch from the ServiceBus using the ReceiveBatch method in the MessageReceiver: IEnumerable<BrokeredMessage> messages; var messagingfactory = MessagingFactory.CreateFromConnectionString("ConnectionString"); var msgrcvr = messagingfactory.CreateMessageReceiver("queueName", ReceiveMode.ReceiveAndDelete); messages = msgrcvr.ReceiveBatch(20, timeoutInSecs); I have checked that my queue contains 20 messages using the Service Bus Explorer. This code returns only

Asynchronous method for QueueClient.Receive()?

蓝咒 提交于 2019-12-10 16:52:27
问题 I am using service bus to connect web role and the worker role. My worker role is in a continuous loop and i am receiving the message sent by web role with the QueueClient.Receive() method. But with this method, if there is no message on the service bus queue, it waits for a few seconds to receive the message rather than moving to the next line for further execution. I was hoping there would be some asynchronous method for receiving messages? or at least some way for setting this wait time? I

How to send messages to Azure Service Bus over Port 80?

爷,独闯天下 提交于 2019-12-10 12:16:35
问题 As per I know Azure Service bus uses port 9350, 9353 etc. to send messages. In my organization because of firewall policy we can't open these ports. So whenever I try to send messages to my queue in Azure I get error saying No DNS entries exist for host mycloudsevice.servicebus.windows.net". Is there a way I can send these over port 80/443, as they are always open? Let me know if any examples or code changes I can do. 回答1: You can force the Service Bus library to use HTTP by declaring the

Processing Service Bus messages in order (without concurrent calls) in an Azure Function

我是研究僧i 提交于 2019-12-10 10:59:05
问题 I need to read and process messages from an Azure Service Bus Queue by an "Azure function". The messages should be handled in the right order so I need to avoid concurrent calls. I use an Azure Function service bus trigger for this (it's the only subscriber to the queue). According to the documentation I configured the "servicebus/maxConcurrentCalls" (in host.json) setting to 1. On top of this I decorated the function with the "Singleton" attribute. Besides all this the messages seem to be

How to serialize Observables to the cloud and back

╄→尐↘猪︶ㄣ 提交于 2019-12-10 10:04:16
问题 I need to split processing sequence (like in this question How to organize sequence of data processors with .net RX) into several computation units in Azure environment. The idea is to serialize Observable sequence to Azure Queues(or Service Bus) and to deserialize it back. If producer or consumer is failed other party should be able to continue producing/consuming. Could anyone suggest an elegant way to do so and what to use (Azure Queues or Service Bus)? Has anyone used TCP Observable

Windows Azure MessageLockLostException

ⅰ亾dé卋堺 提交于 2019-12-10 03:16:57
问题 I'm having issues with Azure Message Bus Queues. I'm having MessageLockLostException thrown and The request operation did not complete within the allotted timeout of 00:01:10. The time allotted to this operation may have been a portion of a longer timeout . I've set my queue into ReceiveMode.PeekLock . I also check if(message.LockedUntilUtc.Minute <= 1) message.RenewLock(); Why would this happen, what's causing the lock to give out? I was reading somewhere from the point where you Receive you

How to fetch messages from an Azure Service Bus Queue in “PeekLock” mode using AMQP?

て烟熏妆下的殇ゞ 提交于 2019-12-09 17:58:26
问题 We're trying to consume Azure Service Bus in a Node application. Our requirement is to fetch multiple messages from a queue . Since Azure SDK for Node doesn't support batch retrieval, we decided to use AMQP. While we're able to fetch messages using Peek Messages as described here (https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-amqp-request-response#message-operations). What we are noticing is that as soon as messages are fetched, they are getting removed from the

Guidance OnMessageOptions.AutoRenewTimeout

我是研究僧i 提交于 2019-12-09 08:21:30
问题 Can someone offer some more guidance on the use of the Azure Service Bus OnMessageOptions.AutoRenewTimeout http://msdn.microsoft.com/en-us/library/microsoft.servicebus.messaging.onmessageoptions.autorenewtimeout.aspx as I haven't found much documentation on this option, and would like to know if this is the correct way to renew a message lock My use case: 1) Message Processing Queue has a Lock Duration of 5 minutes (The maximum allowed) 2) Message Processor using the OnMessageAsync message