Round Robin

Round Robin Load Balancer. With this Load Balancing policy, a random endpoint is selected for each exchange.

Options

The Round Robin EIP has no options.

Examples

In this case we are using the header test as correlation expression:

from("direct:start")
    .loadBalance()
    .roundRobin()
    .to("seda:x", "seda:y", "seda:z");

In XML you’ll have a route like this

<from uri="direct:start"/>
    <loadBalance>
       <roundRobin/>
       <to uri="seda:x"/>
       <to uri="seda:y"/>
       <to uri="seda:z"/>
    </loadBalance>