临时 NSQ 频道

Temporary NSQ Channels

我有一些节点需要连接到 NSQ,它们需要获取该主题的所有消息。为此,他们各自创建了一个频道。我想知道在消费者断开连接后,nsqd 是否有办法清理它们?

NSQ 允许 "ephemeral channels",来自 docs:

Note, a topic/channel whose name ends in the string #ephemeral will not be buffered to disk and will instead drop messages after passing the mem-queue-size. This enables consumers which do not need message guarantees to subscribe to a channel. These ephemeral channels will also disappear after its last client disconnects.