Clustering and loadbalancingPage added by charles MoulliardCamel proposes different solutions to allow your solution to be scalable, to distribute the load between different instances. The choice will depend on how you will deploy/package Camel (standalone mode, embedded in a J2EE or OSGI server, ...) and how the servers will be configured (master/slave, ...). 1. Loadbalancing This approach allows to distribute the load between different endpoints. The from endpoint plays the role of a 'proxy' when we use by example a jetty server loadbalance() : http://camel.apache.org/load-balancer.html 2. Clustering The clustering can be achieved in different ways :
2.1. Same JVM & CamelContext Different Camel components can be used depending if the work must be done in a sync or async way 2.1.1 Without persistence Async Sync 2.1.2 With persistence 2.2 Different JVM & CamelContext When the infrastructure offers the possibility to deploy the application on several machines, then you can use the approaches presented at point 2.1. That means means that you will deploy the same application on several nodes and in this case, we have competitor consumers. Depending on the load on the servers, messages can be consume by application 1 running on Server 1 instead of application 2 running on Server 2. If you prefer to deploy routes on different servers having different CPU/memory, then you can use the following components 2.2.1. Suitable for solutions running in standalone mode or deployed in Web Application Server (different WAR/EAR) vm:// : http://camel.apache.org/vm.html This component cannot be used between different OSGI servers 2.2.2. Between different instances of OSGI servers (SMX4) nmr:// : http://camel.apache.org/nmr.html Camel can be not only plugged on the NMR bus but can also use the clustering functionality offered by ServiceMix 4 () 4. Cloudcomputing 4.1 Cassandra 4.2 camel-terracotta
Change Notification Preferences
View Online
|
Add Comment
|
- [CONF] Apache Camel > Clustering and loadbalancing confluence
- [CONF] Apache Camel > Clustering and loadbalancing confluence
- [CONF] Apache Camel > Clustering and loadbalancing confluence
- [CONF] Apache Camel > Clustering and loadbalancing confluence
- [CONF] Apache Camel > clustering and loadbalancing confluence
- [CONF] Apache Camel > Clustering and loadbalancing confluence
- [CONF] Apache Camel > Clustering and loadbalancing confluence
