ZeroMQ 个人订阅者队列 [英] ZeroMQ individual subscriber queues

查看:60
本文介绍了ZeroMQ 个人订阅者队列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个关于 ZeroMQ PUB/SUB 的问题.发布者是为每个订阅者创建一个单独的队列,还是为所有订阅者创建一个队列(因此​​受到最慢订阅者的限制)?

I have a question about ZeroMQ PUB/SUB. Does the publisher create a separate queue for each individual subscriber or is there one queue for all subscribers (and hence limited by the slowest subscriber)?

推荐答案

每个连接的订阅者都有自己的队列.当订阅者速度很慢时,它自己的队列将填满然后溢出(默认情况下高水位为 1,000),并且它的消息将被丢弃.这不会影响其他订阅者.

Each connected subscriber gets its own queue. When a subscriber is slow, its own queue will fill up and then overflow (high water mark is by default 1,000), and its messages will get dropped. This won't affect other subscribers.

这篇关于ZeroMQ 个人订阅者队列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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