2 Replies Latest reply on Nov 19, 2008 9:34 AM by dmlloyd

    Remoting 3: RFC: Simple load balancers

    dmlloyd

      In IRC someone was asking about load balancing. One major benefit of the ClientSource+Client design is the ability to create a wrapper ClientSource which can do things like this. I thought it would be nice to provide some load-balancing implementations as part of the API - perhaps as a separate package, e.g. org.jboss.remoting.lb or something like that.

      What do you guys think? What load-balancing algorithms should we support beyond simple round-robin?

        • 1. Re: Remoting 3: RFC: Simple load balancers
          trustin

          I thought everything could go to the core actually. What interfaces should be in the API module?

          We could start from simple (prehaps random and ordered?) round-robin, and then the weighted one. Just a simple one should be enough to prove the concept IMHO.

          • 2. Re: Remoting 3: RFC: Simple load balancers
            dmlloyd

            In a container, the core module will not be visible to the user's classloader; only the API will. So anything that we want to make available to the user must be in the API...

            Alternately we could put it in core and expose an API for it in the standalone module classes (which would not be available in a container I guess; instead they would have to set up load-balancing in a configuration file).