Skip to content

Kafka: Consumer configuration "auto.offset.reset" #822

@Amakaev

Description

@Amakaev

Hey, why is "auto.offset.reset" hardly set's to earliest? Can it be configured to latest?
I don't wanna get all topics messages on attaching new consumer group.

var config = new ConsumerConfig(new Dictionary<string, string>(_kafkaOptions.MainConfig))
{
BootstrapServers = _kafkaOptions.Servers,
GroupId = _groupId,
AutoOffsetReset = AutoOffsetReset.Earliest,
AllowAutoCreateTopics = true,
EnableAutoCommit = false,
LogConnectionClose = false
};

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions