0

I have nodes that need to connect to NSQ, they need to get all the messages for that topic. To do this, they each create a channel. I am wondering if there is a way for nsqd to clean them up after the consumers have been disconnected?

Vitaly Babiy
  • 4,896
  • 4
  • 23
  • 22

1 Answers1

1

NSQ allows for "ephemeral channels", from the 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.

Oliver
  • 7,780
  • 2
  • 28
  • 35