Failover support for activemq REST api

ぃ、小莉子 提交于 2019-12-11 00:42:17

问题


I am using activemq using a custom message servlet through REST api. For message retrieval url typically looks like "http://localhost:8161/MessageServlet/MessageServlet?destination=queue://test.queue&clientId=Tester".

I am trying incorporate failover mechanism using pure master slave mode("http://activemq.apache.org/pure-master-slave.html").

I have already configured my master slave and it is running using jms connection.

My question is, what should be my failover url look like when i am uisng REST api.

Thanks in advance.

Regards, Arijit


回答1:


From the REST client perspective, you'll need to abstract the requests (proxy URL) or handle the failover of the client connection using 3rd party libraries (see HttpClient failover support, etc.)

If you go with the abstraction approach, then consider doing one of the following to proxy the requests to AMQ and provide failover support...

  • can you use Camel load balancer which supports endpoint failover support
  • use a 3rd party load balancer (Apache mod_proxy, perlbal, etc)


来源:https://stackoverflow.com/questions/9663342/failover-support-for-activemq-rest-api

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!