JCM <contact@...> writes:

> 
> On 25 September 2014 14:47, Klavs Klavsen <kl@...> wrote:
> > Any way to make haproxy retry requests with certain http response codes
> > X times (or just until all backends have been tried) ?
> 
> Nope. You really don't want to do this. And I'd be sad if the devs
> added anything in to HAProxy to enable this.
> 
> You don't know how far through a potentially world-changing operation
> the backend managed to get before it threw its error. Did it rollback
> correctly? Nothing generic (as HAProxy as middleware is) can figure
> this out, so you need to present the error to the consumer and get
> them to decide if they want to retry the request.
> 
> The ability of Varnish (and Nginx for that matter) to do this is an
> anti-feature, IMHO.
> 
> Jonathan
> 
> 

You are basically saying a feature that might be misused is bad!

Lets instead assume the guy knows what he is doing and try to be helpful by
pointing out the pitfalls of doing it this way. 

Maybe he has a well designed idempotent rest API with a working transaction
model. Or maybe he just wants to use it for get requests.

/Björn

Reply via email to