performance - JBoss 上的消息复制是否会带来很大的开销?
问题描述
我正在开发一个遗留应用程序,该应用程序已迁移到现代 JBoss 版本(Wildfly 20),并且所有功能都得到了维护。此应用程序在集群模式下运行,节点之间具有消息队列复制(集群上只有 2 个节点)。
但是该应用程序处理大量消息(超过一百万)并且性能不能满足我们的客户。所以,我想知道消息复制是否会带来开销并影响应用程序的整体性能?我应该将消息代理移动到外部服务,例如集中式 ActiveMQ 代理吗?
解决方案
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.
推荐阅读
- sql-server - Launching SQL Server stored procedure from MS Access
- awk - sed 多行匹配与两行之间的删除相结合?
- asp.net-mvc - 如何在 mac os 上运行 mvc 应用程序
- docker - 将库和依赖项的构建/cmake 结果存储在 docker 包中,然后将其添加到现有的 Heroku 应用程序?
- algorithm - 如何在不包含负值的情况下获取矩阵中的所有邻域索引?
- c - 理解此递归 C 程序以反向打印字符串所需的说明
- reactjs - TypeError: action$.ofType(...).mergeMap is not a function
- angular - 脚手架Angular 6组件形式
- linux - problem using ffmpeg drawtext for rtl languge
- azure - 链接到 Application Insights UI