nbn/loadbalancer

LoadBalancer training component

1.0.1 2016-07-13 14:03 UTC

README

Build Status Scrutinizer Code Quality SensioLabsInsight Latest Stable Version Total Downloads

Overview

Important : This is a training projet, it's only purpose is to demonstrated how to develop an open source component.

Installation

This is installable via Composer as nbn/loadbalancer:

composer require nbn/loadbalancer

Getting start

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

Go further

This component provided all the necessary set of interfaces to extends it as needed.

Contributing

Pull requests are welcome.

Thanks to everyone who has contributed already.

Developed by Nicolas Bastien

Released under the MIT License