Important : This is a training projet, it's only purpose is to demonstrated how to develop an open source component.
This is installable via Composer as nbn/loadbalancer:
composer require nbn/loadbalancer
This component provides you a loadbalancer class to handle your request.
You have the possibility to define a list of registered host and a chooser algorithm.
This component implement two chooser :
- RotationChooser : basic random chooser
- LoadLimitChosser : return host under a given load limit
This component provided all the necessary set of interfaces to extends it as needed.
Pull requests are welcome.
Thanks to everyone who has contributed already.
Developed by Nicolas Bastien
Released under the MIT License