Skip to content

Feature request: add MaxBufferedBytes in addition to MaxBufferedRecords #544

@vmihailenco

Description

@vmihailenco

MaxBufferedRecords option works well if all Kafka messages have similar size, but that is not always the case. For example, we have messages that can differ by an order of magnitude: 1KB, 10KB, and 100KB.

What do you think about adding MaxBufferedBytes(number_of_bytes) option? The client would need to track the total size of all messages (size of Record.Value field) in the buffer and TryProduce would refuse to add more messages if the limit is reached.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions