Droplet icon indicating copy to clipboard operation
Droplet copied to clipboard

Add a retry mechanism for some requests

Open pozdnychev opened this issue 14 years ago • 2 comments

The server might answer a code 503 if it's busy. We have to sleep() a bit then retry

pozdnychev avatar Jan 13 '11 09:01 pozdnychev

have to think if retry might be at application level.

vrancurel avatar Sep 20 '11 16:09 vrancurel

Amazon S3 in particular needs a retry if the server returns 503 Slow Down on a PUT.

Droplet blacklists a server if it returns a 5xx HTTP status, which is generally a good thing. But if the application had to retry these errors, it would have to interact with the blacklist logic in strange ways in order to be effective.

I think implementing the retries in Droplet would be cleaner, and all applications would automatically benefit.

ghost avatar May 28 '14 14:05 ghost