Skip to content

usage of minBytes results in extreme Consumption bandwidth usage #99

@tobiasdcl

Description

@tobiasdcl

Hi there,
I started to migrate a consumer to @platformatic/kafka that was using kafkajs before.
The DX is great! I noticed a minor type issue and submitted a PR for that ref - Thanks for the great work 🚀

However during validation in a pre prod stage I noticed an extreme spike in the Consumption bandwidth of the related kafka Topic. Usually Production and consumption bandwidth are somewhat equal but I observed an ~ 100x increase in the consumption bandwidth compared to the production bandwidth. I was able to identify setting minBytes: 250_000 as a property in the options of the consumer to be the cause of this. Once I removed the minBytes property the bandwidth normalized again (I even made another deployment afterwards with minBytes again to ensure the behaviour is consistent - which it was)

I was not yet able to identify the actual root cause for this but wanted to share the issue with you in case you already have a hunch what might be going on here.

Image Image

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