Download the PHP package php-http/random-host-plugin without Composer
On this page you can find all versions of the php package php-http/random-host-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download php-http/random-host-plugin
More information about php-http/random-host-plugin
Files in php-http/random-host-plugin
Package random-host-plugin
Short Description Client-side round robin load balancer plugin for HTTPlug
License MIT
Homepage https://github.com/php-http/random-host-plugin
Informations about the package random-host-plugin
Random Host Plugin
You might have found yourself in strange situation where instead of people using load balancer, they supply you list of hosts you should try to call. They also don't like it when you pick one of them and use that, instead of going through trouble of doing distribution on client side.
If you want to go through this trouble, you can use this HTTPlug plugin. It picks one of the hosts randomly at beginning and then keeps using it (sticky session), until there is a server or network error - in that case host that's being used is swapped for something else from the list. This ensures same host is never used twice in a row in case you use some retry mechanism.
Install
Via Composer
Usage
Licensing
MIT license. Please see License File for more information.
All versions of random-host-plugin with dependencies
php-http/client-common Version >=2.0
symfony/options-resolver Version >=3.4