nsqio / go-nsq

The official Go package for NSQ
MIT License
2.59k stars 444 forks source link

How to create a temporary channel on a topic ? #259

Closed acynothia closed 5 years ago

acynothia commented 5 years ago

I was using nsq as a broadcast queue. I create a topic, then If some worker online, worker will create a personal channel on this topic. Is there any way to delete the channel when worker offline automatic ?

mreiferson commented 5 years ago

Yes, use "ephemeral channels" by naming the channel name#ephemeral

acynothia commented 5 years ago

thanks very much.