Azure Worker Role Asynchronous Receive message: how long I should put the sleep for? (milliseconds)
问题 Sample code here public override void Run() { while (true) { IAsyncResult result = CUDClient.BeginReceive(TimeSpan.FromSeconds(10), OnMessageReceive, CUDClient); Thread.Sleep(10000); } } I have tested this Azure worker role. I kept 100 messages in the Service bus Queue. It's doing entities updates as a operation(Entity framework). It took 15 minutes to process all the queues and looks like taking longer time. Any suggestion to improve this? Thanks in Advance 回答1: Try this one... /