문제

We have a set of 30 producers and 30 consumers consuming messages from single ActiveMQ instance currently. All Producers write to 25 queues and all consumers can consume from the queues. There is no message routing or failover in place as of now. We would like to make it horizontally scalable with out any code changes on producers & consumers.

One idea we've had is using two ELB's, one before producers and one before consumers so we would add/remove activemq's at will. I'm unable to find any such documentation or material online for such setup, and would like to know if any one worked on such setup or if its possible in the first place. Any suggestions to make the system horizontally scalable by adding nodes at will will be helpful

도움이 되었습니까?

해결책 2

We went ahead with using automatic broker cluster feature found with ActiveMQ 5.4 or greater. This article has been really helpful in understanding this setup.

다른 팁

Take a look at networks of brokers. This will let you add activemq instances (presumably using multicast discovery) on the fly. You'll then need to dynamically update the ELB to include the new instances. ActiveMq networks of brokers allow consumers and producers to be connected anywhere on the network and exchange traffic.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top