Load balancing

Load balancing through ServiceInvoker allows the ESB to achieve fail-over for services. The ServiceInvoker does this by using different strategies to pick EPRs to invoke. You can choose one of the default load balancing strategies in JBoss ESB (round-robin, first-available, random, and so on) or develop your own and plug it into the configuration file.

You can choose a load balancing strategy by setting the org.jboss.soa.esb.loadbalancer.policy property within jbossesb-properties.xml to one of the following:

  • org.jboss.soa.esb.listeners.ha.RoundRobin: a round-robin policy which alternates through a list of EPRs
  • org.jboss.soa.esb.listeners.ha.FirstAvailable: a policy which chooses the first available EPR and then moves on to alternates if that one dies or becomes unavailable
  • org.jboss.soa.esb.listeners.ha.RandomRobin: a policy that randomly chooses between different EPRs
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.86.134