<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

    主站蜘蛛池模板: 亚洲日本天堂在线| 3d成人免费动漫在线观看| 日本卡1卡2卡三卡免费| 毛片免费vip会员在线看| 亚洲AV无码国产精品色午友在线| 亚洲另类小说图片| 男人都懂www深夜免费网站| 亚洲中文久久精品无码1| 在线美女免费观看网站h| 亚洲级αV无码毛片久久精品| 亚洲熟妇AV日韩熟妇在线| 成人性生交大片免费看无遮挡 | 最近免费mv在线观看动漫| 亚洲国产精品碰碰| 亚洲av成人片在线观看| 我们的2018在线观看免费高清| 亚洲黄色一级毛片| 久久99国产乱子伦精品免费| 亚洲欧美在线x视频| 成全视频免费高清| 日韩视频免费在线观看| 粉色视频成年免费人15次| 免费a级毛片视频| 国产精品亚洲精品日韩电影| 亚洲精品专区在线观看| 久久久久av无码免费网| 亚洲kkk4444在线观看| 国产在亚洲线视频观看| 午夜亚洲www湿好大| 久99久精品免费视频热77| 97亚洲熟妇自偷自拍另类图片| 无码一区二区三区免费| 全部在线播放免费毛片| 亚洲女人被黑人巨大进入| 在线观看的免费网站| 国产AV日韩A∨亚洲AV电影| 亚洲欧洲国产成人精品| 国产青草视频免费观看97| 国产午夜亚洲精品不卡电影| 亚洲中文字幕一二三四区| 久久精品蜜芽亚洲国产AV|