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

kq如何订阅多个主题 #24

Open
erosiners opened this issue Mar 22, 2022 · 3 comments
Open

kq如何订阅多个主题 #24

erosiners opened this issue Mar 22, 2022 · 3 comments

Comments

@erosiners
Copy link

conf.MustLoad("config.json", &c)只能配置一个,要订阅多个难道只有定义多个配置文件?

@ChangwangChen
Copy link

conf.MustLoad("config.json", &c)只能配置一个,要订阅多个难道只有定义多个配置文件?

我也有这个疑问 一个 consumer 不能订阅多个 topic 吗? 我看底层的 kafka-go 是可以的啊

@kevwan
Copy link
Contributor

kevwan commented Aug 28, 2024

这个容易,你new多个consumer就好了,然后用ServiceGroup包一下即可。

@ChangwangChen
Copy link

现在也是启动多个 consumer ,就是配置文件略显繁琐

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

3 participants