golang的kafka 框架有不少种, sarama是一种比较经常使用的,是用golang写的,可是不能支持consumer group。 confluent是一种,是调用c语言的库librdkafka,能够支持consumer group。可是会麻烦一点,须要安装librdkafka。html 安装librdkafka 先看官网上的一句话。 This client for Go depends