对ActiveMQ REST API的故障转移支持

编程入门 行业动态 更新时间:2024-10-19 21:34:54
本文介绍了对ActiveMQ REST API的故障转移支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在使用通过REST API的自定义消息Servlet来使用activemq。 对于消息检索,URL通常看起来像 http:// localhost:8161 / MessageServlet / MessageServlet?destination = queue://test.queue& clientId = Tester。

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

我正在尝试使用纯主从模式合并故障转移机制( activemq.apache/pure-master-slave.html)。

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

我已经配置了我的主从服务器,它正在使用jms连接运行。

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

我的问题是,当我出现故障时,我的故障转移URL应该是什么样的是uisng REST api。

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

预先感谢。

致谢, Arijit

Regards, Arijit

推荐答案

从REST客户端的角度来看,您需要抽象请求(代理URL)或使用第三方处理客户端连接的故障转移库(请参见 HttpClient故障转移支持等)

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.)

如果采用抽象方法,请考虑执行以下一项以下将请求转发给AMQ并提供故障转移支持...

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

  • 您可以使用骆驼负载均衡器,它支持端点故障转移支持
  • 使用第三方负载均衡器(Apache mod_proxy , perlba l等)
  • can you use Camel load balancer which supports endpoint failover support
  • use a 3rd party load balancer (Apache mod_proxy, perlbal, etc)

更多推荐

对ActiveMQ REST API的故障转移支持

本文发布于:2023-10-23 05:43:55,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1519965.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:故障   ActiveMQ   REST   API

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!