Topic Load Balancer

Topic mode for the Load Balancer EIP. With this policy, then all destinations are selected.

Options

The Topic Load Balancer eip supports the following options which are listed below.

Name Description Default Type

Exchange properties

The Topic Load Balancer eip has no exchange properties.

Examples

In this example, we send the message to all three endpoints:

  • Java

  • XML

  • YAML

from("direct:start")
    .loadBalance().topic()
        .to("seda:x")
        .to("seda:y")
        .to("seda:z")
    .end();
<route>
<from uri="direct:start"/>
    <loadBalance>
       <topicLoadBalancer/>
       <to uri="seda:x"/>
       <to uri="seda:y"/>
       <to uri="seda:z"/>
    </loadBalance>
</route>
- route:
    from:
      uri: direct:start
      steps:
        - loadBalance:
            steps:
              - topicLoadBalancer: {}
              - to:
                  uri: seda:x
              - to:
                  uri: seda:y
              - to:
                  uri: seda:z