Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-17296

Add a new compression option on the broker side

Agile BoardAttach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.8.0
    • 4.0.0
    • compression, config

    Description

      Compressing data can reduce the bandwidth required for network transmission and decrease disk storage usage. If the compression types of the client and broker are inconsistent, it may lead to increased resource usage on the broker, such as higher CPU usage. Currently, the default compression type on the Kafka broker side is "PRODUCER". As I understand it, if the client does not use compression, the broker will not use compression either.

      Can we add a new compression option on the broker side, such as "PRODUCER_OR_LZ4". With this option, if the client uses a compression type (like Snappy), the broker would follow the client's compression type (Snappy). If the client does not use compression, the broker would default to using LZ4.

      If this suggestion makes sense, I would be happy to implement it.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            xiaochen.hi xiaochen.zhou

            Dates

              Created:
              Updated:

              Slack

                Issue deployment