Guzzle custom handler that switches to another host on failure

50 views Asked by At

I need to create a sort of High Availability Guzzle 6 client which, given a list of 3 hosts, falls back to sending its requests on the next one when the current one is down / does not respond.

This functionality has to be built in the Client object. I was told I needed to use a custom handler, but can't understand how to do it.

0

There are 0 answers