问题标签 [message-bus]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
python - ActiveMQ message bus logging handler python
I want to publish message to ActiveMQ when I do LOG.debug
or LOG.info
,
I have to add handler to logging
.
If is there any other pythonic way to do this?
threshold - 如何将组合连接的阈值事件发布到消息总线?
连接阈值事件的主题是什么?如何通过消息总线侦听连接计数阈值事件,以及如何确定当前连接计数是多少?
docker - 如何启用 RabbitMQ Docker 容器的集群
尝试使用官方 RabbitMQ Docker 映像启用集群时遇到问题 - https://hub.docker.com/_/rabbitmq/。我docker-compose
用来启动我的基础设施,我无法让“从”节点加入集群。当我rabbitmqctl cluster_status
在主服务器上运行时,没有列出从服务器。
这是输出rabbitmqctl cluster_status
:
docker-compose.yml
下面列出我的,供参考。
ruby-on-rails - MessageBus.callbackInterval 在生产中不起作用
几个月来,我一直在使用message_bus gem作为 websocket 解决方案的更简化替代方案。默认MessageBus.callbackInterval
值太宽,所以我想缩小它。我已经在我的开发环境中成功地做到了这一点。但是,在部署到生产环境时,似乎忽略了下面的第二行:
知道如何调试吗?
angularjs - 使用 RxJS 实现 MessageBus 用于 angularjs 模块之间的通信
我可以在 angulajs 应用程序中使用 RxJS 创建一个发布/订阅消息队列吗?例如,我有两个模块: ModuleA ModuleB 它们作为单独的 npm 包存在,但在 ModuleC 中连接 - 它是主 shell。
我不想将依赖项创建为 ModuleD 并在模块之间创建紧密耦合。所以我的想法是使用 RxJS 创建一个消息总线。可能吗?
我认为 API 看起来像这样:
RxQueue.subscribe("name:of:the:queuemessage", handler => { handler.result } );
RxQueue.create("name:of:the:queuemessage", (observer) => {
// implementation of usual Rx subscribtion
})
c# - How to retrieve Dead Letter Queue count?
Question
How do i get the dead letter queue length without receiving each message and counting how many message I received?
My Current Implementation
Problem with implementation
Because I am receiving each message in peek and block mode, the messages have a lock duration set. During this time i cannot receive or even see the messages again until this time period has timed out.
There must be an easier way of just getting the count without having to poll the queue?
I do not want to consume the messages either, i would just like the count of the total amount.
liferay-7 - Liferay 7 消息总线
在 Liferay 6.2 中,我们曾经在 messing-spring.xml 中配置自定义邮件并在 service.properties 中进行输入。为了在 Liferay 7 OSGI 模块 portlet 中实现相同的功能,谁能指导我如何在其中配置消息总线?
c++ - 用于存储多种类型值的 STL 容器?
我有一个Message
与消息总线一起使用的结构,我想用消息发送数据。问题是数据的类型会有所不同;也许对于一条消息,我只想发送一个 int,但对于另一条消息,我想发送几个 int、一个字符串,甚至可能是一个指向对象的指针。我可以做这样的事情:
但这不仅丑陋且不干净,而且可能会浪费空间,而且如果我想传递一个相对奇特的数据类型,例如指向类实例的指针,这并不能解释。我应该为此使用什么?
spring-statemachine - Spring 状态机作为消息总线
我目前正在检查弹簧状态机作为自定义服务总线的实现。我有 2 个问题:
- 如何基于计时器配置转换,其中时间将基于模型。例如:如果我想将消息传递延迟到模型对象的开始时间(并且在不同的消息中可能不同)。那是我自己没有实施调度。
- 我喜欢这个 API,但它适合弹簧状态机(性能方面),以实现消息总线,在某些情况下每秒处理数百(甚至数千)条消息。
谢谢
osgi - Liferay 7 MessageListener osgi 模块
当我使用 liferay 6.1 时,我创建了一个接收消息的应用程序。
Java类:
\src\main\webapp\WEB-INF\src\META-INF\messaging-spring.xml 文件:
和 \src\main\webapp\WEB-INF\web.xml 文件:
我如何在 OSGi 模块中为 liferay 7 做同样的事情?OSGi 模块没有 web.xml 文件。非常感谢!