使用 ActiveMQ 5,是否可以使用内存和网络连接配置代理?

发布于 2024-07-09 20:55:52 字数 221 浏览 3 评论 0原文

我们有一组应用程序,我想在它们之间使用 JMS 进行消息传递。 现在,我们的应用程序都与 ActiveMQ 代理建立 TCP 连接。 是否可以使同一主机上的 15 个左右的应用程序使用 inVM 连接或使用某种形式的共享内存,而该主机上剩余的 20 个左右的应用程序仍然使用 TCP?

基本上,我想结合使用 inVM 配置的代理和使用 TCP 配置的代理。 我可以这样做吗,还是必须进行桥接配置?

We have a set of applications that I want to use JMS for messaging between. Right now, our applications all make TCP connections to the ActiveMQ broker. Is it possible to make the 15 or so applications that are on the same host use the inVM connections or use a form of shared memory while the remaining 20 or so applications that are off of that host use TCP still?

Basically, I want combine a broker configured with inVM and a broker configured with TCP. Can I do that, or do I have to do a bridge configuration?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

晒暮凉 2024-07-16 20:55:52

仅当应用程序位于同一 JVM 内时,inVM 连接才有效。

如果它们在同一个机器上但在不同的进程中,那么 TCP 是最好的选择。 大多数操作系统将使用高效的 TCP 实现,因此您实际上不会进入网络在本地进程之间进行通信。

消息传递是基于流的,因此共享内存对 ActiveMQ 并没有真正的帮助。 如果您的应用程序与代理位于同一 JVM 中,那么它实际上只是 TCP 或 VM 的选择

The inVM connections only work if the applications are within the same JVM.

If they are on the same box but in different processes, then TCP is the best bet. Most operating systems will use efficient TCP implementations so that you are not actually going onto the network to communicate between the local processes.

Messaging is stream based, so shared memory doesn't really help with ActiveMQ. Its really just a choice of TCP or VM if your application is within the same JVM as the broker

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文