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

Optimization for SslTransportLayer#write(ByteBuffer)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • network
    • None

    Description

      The is a propose to optimize SslTransportLayer#write(ByteBuffer).

      Currently, sslEngine only reads data from src once per selector loop.

      This can be optimized by reading all src data in one selector loop.

      The propose comes from [Amrby|https://github.com/linkedin/ambry/pull/1105], which uses same Transport Layer code and change has been deployed to prod for 6 months. Unfortunately, Ambry didn't record the perf diff.

       

      Code change: https://github.com/apache/kafka/pull/6984

      Let me know if anything needed. 

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              maomaoapache Mao
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: