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

Use virtual threads to publish Kafka records

    XMLWordPrintableJSON

Details

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

    Description

      Since JDK 19, virtual threads have been added to the JDK as a preview:

      https://openjdk.org/jeps/425

      Virtual threads allows you to use the hardware optimal as it is a lightweight thread that runs on a carrier thread (OS thread). When IO happens, the carrier thread is not blocked and can continue doing other work. Currently it doesn't seem to be possible to make `org.apache.kafka.clients.producer.internals.Sender` run on a virtual thread.

      An instance of `org.apache.kafka.common.utils.KafkaThread` is being started. 

      Is it possible to give the possibility to use virtual threads for publishing records?

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            bdeneuter Bart De Neuter
            Votes:
            2 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated: