<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) 評(píng)論(0)  編輯  收藏 所屬分類: JMS

    主站蜘蛛池模板: 亚洲国产精品成人综合色在线婷婷| 亚洲国产综合精品中文第一区| 亚洲AV无码专区国产乱码4SE| 亚洲成AV人片久久| 大桥未久亚洲无av码在线| baoyu777永久免费视频| 亚洲第一网站免费视频| 亚洲AV成人精品日韩一区18p| 日韩亚洲Av人人夜夜澡人人爽 | 亚洲成a人片毛片在线| 朝桐光亚洲专区在线中文字幕| 久草视频在线免费看| 国产免费黄色大片| 久久精品九九亚洲精品| 羞羞视频免费网站含羞草| 曰批全过程免费视频播放网站| 亚洲国产精品狼友中文久久久| 亚洲欧洲日本天天堂在线观看| 国产VA免费精品高清在线| A级毛片内射免费视频| 久久精品国产亚洲AV果冻传媒| 在线观看免费亚洲| 69天堂人成无码麻豆免费视频| 亚洲色欲色欲www在线丝| 亚洲精品无码成人| 亚洲视频在线免费看| 亚洲午夜国产精品无码| 亚洲七久久之综合七久久| 久久99国产乱子伦精品免费| 亚洲区日韩区无码区| 亚洲精品无码高潮喷水A片软| 18禁美女黄网站色大片免费观看 | 久久精品国产亚洲7777| 亚洲AV无码一区二区三区牛牛| 国产精品免费无遮挡无码永久视频| 亚洲AV永久无码精品一区二区国产 | 99久久国产热无码精品免费| 国产亚洲美女精品久久久久狼| 美女视频黄频a免费大全视频| 特级做A爰片毛片免费69| 婷婷精品国产亚洲AV麻豆不片 |