Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NSQD在选择消费者client时,能否支持自定义选择,例如根据消息中的某个字段来选择 #111

Open
li-bit opened this issue Oct 16, 2019 · 3 comments

Comments

@li-bit
Copy link

li-bit commented Oct 16, 2019

No description provided.

@qingfeng777
Copy link

根据我的理解,nsqd 是不会选择或者过滤consumer的。
不过有一个带带拓展(extend)的topic类型,其msg可以带拓展信息。然后你的consumer 根据这个拓展消息去做一个过滤 或者筛选,应该能达到你的目的 。

@li-bit
Copy link
Author

li-bit commented Oct 18, 2019

是哪个函数,能否帮忙发下,多谢

@qingfeng777
Copy link

qingfeng777 commented Oct 21, 2019

在admin ,lookup界面上先建一个带拓展消息的的topic。
然后 在sdk里找PublishWithJsonExt 这个函数。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants