We have multiple resources exposed as REST service and running in to design argument whether client needs to implement re-try logic if service in unavailable due to network and/or application level failures. Is it worth it? One group argues, if service is unavailable then there is no point of re-trying but other group argues there may be network busy issues and re-try could help. There are no statistics to defend either arguments at this time. How about implementing a fall back URL (a replica of original http resource) and use fall back service during failures.
Any suggestions based on your prior experience?
Keep in mind that when a service request is failing, it can be due to network overload or service degradation. In several cases the best option is to just fail immediately. Regarding using a fall back URL, it probably will not solve your problem, since it could keep network under high load.
Suggestion is to take a look in patterns such as:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With