Open
Description
I’m using the Confluent Kafka JS client and I’d like to programmatically re-consume a topic from the beginning with an already existing consumer group.
More specifically:
How can I reset the offset within my code so that the consumer starts reading the topic from the beginning again?
I’ve seen references to seek(), but I’m unsure how to use it properly in this context.
Do I need to fetch the partition metadata manually first? And what’s the recommended way to do this cleanly?
Any code example or guidance would be greatly appreciated.
Thanks in advance!
Metadata
Metadata
Assignees
Labels
No labels