Skip to content

Kafka Consumer lag and batching #1414

@montiver0311

Description

@montiver0311

Description

We have a dotnet kafka consumer running in a continuous web job in Azure. We can't get the consumer to keep up with the amount of messages produced. However, if we create a java client and wire it up we can get the lag to go down and we get caught up to real time. If we switch back on the dot net consumer the message lag starts to increase again.

In java we can configure the consumer to give us a batch of messages and that seems to be the key. Currently we haven't configured fetch max bytes in the dotnet client so it's whatever the default is(52mb i think). Is this possible in the Confluent consumer?

We are running Confluent.Kafka 1.5.0. in a .Net 3.1 worker service in azure app service.

How to reproduce

The vendor kafka is setup so we only get one partition. But this doesn't seem to be an issue for a java client.

Checklist

Please provide the following information:

  • A complete (i.e. we can run it), minimal program demonstrating the problem. No need to supply a project file.
  • Confluent.Kafka nuget version.
  • Apache Kafka version.
  • Client configuration.
  • Operating system.
  • Provide logs (with "debug" : "..." as necessary in configuration).
  • Provide broker log excerpts.
  • Critical issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions