I'm working on a webjob that checks a Webserver for some data. Sometimes the Webserver is busy and will come back with a try again in a few seconds.
Problem is that if I just ignore it and go through the function, it will delete the message from the queue and I will not be able to retry the call.
My current solution (which I don't like at all) is to through an exception which will increase the dequque number and put the message back on the queue. This however seems very brutal and requires the thread which the webjob is running on to restart.
Is there any other way of handling this?