You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Divij Vaidya (Jira)" <ji...@apache.org> on 2023/01/10 10:33:00 UTC
[jira] [Commented] (KAFKA-14606) Use virtual threads to publish Kafka records
[ https://issues.apache.org/jira/browse/KAFKA-14606?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17656562#comment-17656562 ]
Divij Vaidya commented on KAFKA-14606:
--------------------------------------
I would probably suggest to wait for virtual threads to land in a LTS release before we start modifying existing code base. Meanwhile, if you could perform a prototype with the preview features and demonstrate the impact on Kafka's performance, that will be very helpful to make a decision later on when a LTS release is available.
> Use virtual threads to publish Kafka records
> --------------------------------------------
>
> Key: KAFKA-14606
> URL: https://issues.apache.org/jira/browse/KAFKA-14606
> Project: Kafka
> Issue Type: Improvement
> Components: producer
> Reporter: Bart De Neuter
> Priority: Major
>
> 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?
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)