[英]How to add consumerGroup for a topic in kafka using Shopify/sarama golang library?
在 sarama 庫中,有一個初始化 NewConsumerGroup 的選項,但如何將其連接到 NewConumer?
NewConsumerGroup
創建自己的消費者,因此您無需將其掛鈎
來源: https://github.com/Shopify/sarama/blob/main/consumer_group.go#L105
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.