<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    paulwong

    Setting up ActiveMQ for HA-Load Balance


    In a typical enterprise applications, we often need messaging and asynchronous processing.
    To satisfy this need, we need a reliable as well as scalable messaging infrastructure. In currently available messaging infrastructures Apache ActiveMQ stands out in terms of features and simplicity.

    Apache ActiveMQ comes with lot of features in built and also provides a way to configure or tweak as per the needs of an application.

    In this post , we will explore how to enable network of activeMQ brokers so that we achieve HA(High Availability) as well as load balance between consumers & producers.

    I carried out  my experiment on local machine with ACtiveMQ 5.8.0, but this can be easily upgraded to latest versions of ActiveMQ viz. 5.10.0

    To have network of brokers, we need multiple brokers. So, I changed tcp and admin ports of brokers so that I can run multiple brokers on single machine.

    To get brief background on network of broker, please visit this link

    In this post we will setup below topology, we will mix failover and NOB to get work done,

    1. Producer1 is configured to send messages to broker3 with failover to broker2
    2. Producer2 is configured to send messages to broker2 with failover to broker3
    3. Broker3, Broker2 are networked with Broker1as below


    4. Broker1 is connected with broker4 with NOB.
    5. Make sure you enable "advisorySupport" on the broker, which is essential for transparent routing of messages across brokers.
    Dry Run:
    1. Producer1 sends messages to queue "input.q" on broker3, where there are no active consumers, but it see subscriptions from broker1
    2. Broker1 and broker 4 are has consumers which are looking at "input.q".
    3. When broker3 receives a message it forwards it to broker1, as its in networked and has active consumers for "input.q" 
    4. When broker1 receives a messages on "input.q", it gets load balanced between broker1 and broker4  as both has consumers looking for "input.q".
    5. Whenever broker3 goes down, producer1 switches transparently to broker2, as its configured with failover.
    6. I used prefetch size as 1, so that you can load balancing on consumers
    Sample activemq configurations can be downloaded from here.

    posted on 2019-11-04 16:14 paulwong 閱讀(396) 評論(0)  編輯  收藏 所屬分類: JMS

    主站蜘蛛池模板: 久草视频免费在线观看| 亚洲AV无码一区二区三区国产 | 中文字幕免费在线播放| 亚洲AV无码1区2区久久| 成人免费毛片观看| aa级毛片毛片免费观看久| 亚洲国产人成在线观看| 亚洲AV之男人的天堂| 6080午夜一级毛片免费看6080夜福利 | 老司机午夜性生免费福利 | 亚洲男人的天堂久久精品| 亚洲精品国产综合久久一线| 久章草在线精品视频免费观看| 亚洲精品无码你懂的| 亚洲成AV人片在| 午夜亚洲av永久无码精品| h片在线免费观看| 国产精品小视频免费无限app| 91亚洲视频在线观看| 亚洲一区二区三区偷拍女厕 | 4虎1515hh永久免费| 免费无码AV一区二区| 亚洲videos| 亚洲精品成人无码中文毛片不卡 | 亚洲国产成人九九综合| 国产黄色一级毛片亚洲黄片大全| 999国内精品永久免费视频| 国产成年无码久久久免费| 国产产在线精品亚洲AAVV| 亚洲日本乱码一区二区在线二产线 | 亚洲AV无码一区二区三区在线观看 | 91嫩草国产在线观看免费| 日韩电影免费在线观看网站| 国产成人+综合亚洲+天堂| 亚洲中文字幕无码一去台湾| 亚洲Av综合色区无码专区桃色| 全部免费毛片在线| 天天天欲色欲色WWW免费| 美女被cao免费看在线看网站| 久久99精品视免费看| 91免费国产视频|