Skip to content

RoundRobinLoadBalancer

rmuthupandian edited this page Feb 11, 2015 · 1 revision

The RoundRobinLoadBalancer is a specialized processor implementation that provides load balancing among its sinks. The events received by this processor are distributed evenly among its sinks in a round robin fashion. In a typical deployment this processor is injected between an Inbound channel and processors or between processing stages or between a processor and a set of outbound channels as shown in the figure below

#Screenshot

This processor is provisioned as follows in a spring XML file

       
     <bean id="loadbalancer" class="com.ebay.jetstream.event.processor.loadbalance.RoundRobinLoadBalancer">
        <property name="eventSinks" ref="loadbalancerSinks"/>
          
    </bean>

    <bean id="loadbalancerSinks" class="com.ebay.jetstream.event.EventSinkList">
       <constructor-arg>
            <list>
               <ref bean="Processor2"/>
               <ref bean="Processor2"/>
              <ref bean="Processor3"/>
            </list>
        </constructor-arg>
    </bean>
      
Clone this wiki locally