首页 > 解决方案 > JBoss 上的消息复制是否会带来很大的开销?

问题描述

我正在开发一个遗留应用程序,该应用程序已迁移到现代 JBoss 版本(Wildfly 20),并且所有功能都得到了维护。此应用程序在集群模式下运行,节点之间具有消息队列复制(集群上只有 2 个节点)。

但是该应用程序处理大量消息(超过一百万)并且性能不能满足我们的客户。所以,我想知道消息复制是否会带来开销并影响应用程序的整体性能?我应该将消息代理移动到外部服务,例如集中式 ActiveMQ 代理吗?

标签: performancejbossactivemq-artemis

解决方案


The overhead of message replication in ActiveMQ Artemis (i.e. the JMS broker implementation shipped in WildFly 20) is generally not significant. The internal architecture of the broker is non-blocking so tasks like persisting the message to disk and replicating it across the network are actually done in parallel. I wouldn't expect replication to add significant overhead unless the network connection between the two brokers was poor.


推荐阅读