Question

What do people tend to do when they have a design that put jobs on a service queue or topic that takes longer then the 5min max of peeklock?

I have been using the OnMessage(...) async messagepump of service bus and is wondering if thats not such a good idea after also since if I start moving the jobs to a table while processing them, then the messagepump will just empty the queue and I just have the problem elsewhere of making sure my jobs are scheduled even between servers.

Was it helpful?

Solution

If you have a long running message processing workflow the you can check the lockedUntilUtc property of the message and call RenewLock at the appropriate time.

http://msdn.microsoft.com/en-us/library/windowsazure/microsoft.servicebus.messaging.brokeredmessage.renewlock.aspx

in the next release of SDK the OnMessage processing loop will automatically do that for you so that convenience API is always a good idea to use.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top