Open emmaccacca opened 6 years ago
As I responded on https://github.com/SOHU-Co/kafka-node/issues/904 - Considering your import is named "Consumer", and not "ConsumerGroup", I assume you imported from lib/consumer.js
If this is the case, you need to use ConsumerGroup (lib/consumerGroup.js) instead, if you want all partitions to be automatically assigned. Consumer requires manually specifying partitions.
@hyperlink I can see why this is a source of confusion considering the docs list Consumer first, but still uses a group ID in config.
Maybe need to update docs to say 'You probably want
You're right @aikar there's certainly improvement opportunities in the docs.
Questions?
I use HighLevelProducer to produce keyed message and then I use ConsumerGroup to consume messages. But I only get message of one or two partitions every time I restart my service.
I have a question. How can I ensure the order of messages ussing HighLevelProducer and ConsumerGroup?
Bug Report
Environment
For specific cases also provide
Include Sample Code to reproduce behavior
Include output with Debug turned on
Thanks for your contribution!