Consuming a Topic with .NET from the beginning

First off, I’m extremely new to Kafka but am an experienced .net developer. Using the .net examples, I’m able to connect and subscribe to a topic. Now I might very well be missing something in the documentation, but I can’t seem to find out how to get all the messages/data from beginning of time. Our organization publishes data to this kafka topic and I need to connect at least once to level-set the data before taking on deltas of it.

Any help would seriously be appreciated, thanks!

Hi, welcome to the forum!

You need to set auto.offset.reset to earliest, which I believe in .NET is done in the ConsumerConfig with AutoOffsetReset

There’s an example here:

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.