JMS的替代品有哪些? [英] What are the alternatives of JMS?

查看:305
本文介绍了JMS的替代品有哪些?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于JMS,我们还有其他选择吗?

Do we have any alternative for JMS?

问题陈述 我们有一个名为Configuration Manager的组件,其中包含应用程序的配置.该配置管理器由该应用程序的4个实例使用.现在,每当管理员更改配置时,都应将其通知应用程序的所有实例.

Problem statement We have a component called Configuration Manager, which contains configuration of the application. This configuration manager is used by 4 instances of the application. Now , any time an administrator changes the configuration, it should get notified to all the instances of the application.

推荐答案

即使在更新后,您的问题仍然不清楚.根据您提供的信息,我看到两个选择:

Even after your update, your question is still not crystal clear. Given the information you provided, I see two options:

  • 通知.确实使用JMS或其他通知机制.这取决于技术堆栈:是Web应用程序吗?桌面应用程序?它可以在应用服务器中运行吗?
  • 轮询.每个应用程序都有一个后台线程,该线程轮询配置管理器(或数据库?)以查找更改.检测到更改后,将重新加载整个配置.
  • notification. Use indeed JMS or some other notification mechanism. That depends on the technology stack: is it web applications? desktop application? does it run in an application server?
  • polling. Each application has a background thread that polls the configuration manager (or the database?) for changes. When changes are detected, the whole configuration is reloaded.

对于配置刷新的问题,我宁愿进行轮询(至少这是我们用于类似要求的方法,并且效果很好).

For the problem of configuration refresh, I would rather go for polling (at least that's what we used for a similar requirement and it worked fine).

这篇关于JMS的替代品有哪些?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆