Posted on 2007-11-26
I was wondering if anyone knew of any good retry strategies?
I have alot of try catch blocks, database calls, external webservice calls and I want to make my webservice more robust.
So when a try catch is hit, it would retry 3 more times. Catches are usually hit as a result of a bad database connection or external webservice not being available. I would like the ability to retry.
I was thinking of having a global reference and when it fails it would increment the reference variable and recursively call itself. But this approach could cause more hassle than it's worth.
Are there any good articles, samples, examples or has anyone got any good ideas on this?