You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "James Strachan (JIRA)" <ji...@apache.org> on 2007/11/14 12:57:27 UTC

[jira] Resolved: (CAMEL-215) Add DSL support for LoadBalance

     [ https://issues.apache.org/activemq/browse/CAMEL-215?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Strachan resolved CAMEL-215.
----------------------------------

    Resolution: Fixed

patch applied with thanks!

> Add DSL support for LoadBalance 
> --------------------------------
>
>                 Key: CAMEL-215
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-215
>             Project: Apache Camel
>          Issue Type: New Feature
>          Components: camel-core
>            Reporter: Willem Jiang
>             Fix For: 1.3.0
>
>         Attachments: camel-215(new).patch
>
>
> LoadBalancingProcessor myStrategy;  // my own strategy to choose an endpoint
>  from(endpointA).loadBalance().setLoadBalance(myStrategy).to(Endpoint1, Endpoint2, ...);
>  or if can use an out of the box strategy like:
>  from(endpointA).loadBalance().roundRobin(),to(endpoint1, endpoint2, ...);
> Just a minor twist on that idea; how about
> from(endpointA).loadBalance().roundRobin().endpoints().<someExpression>
> where loadBalance() returns a LoadBalanceClause rather like filter()
> returns an ExpressionClause which lets folks pick the strategy of load
> balancer to use.
> Using a named reference could be by
> from(endpointA).loadBalance().ref("someName")...
> I also added the idea of using an expression to determine the
> endpoints to load balance across as we might wanna support dynamic
> load balancing. e.g. querying the endpoints in OSGi or JNDI or
> whatever.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.