confluentinc / confluentinc/parallel-consumer

Add support for virtual threads

Open
#896 5 comments 2 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
299
Forks
172
PR merge metrics
No merged PRs in 30d

Description

Hi,

This is a feature request.
Virtual threads were added to the JDK in JDK 21. It still had an issue with pinning which has been fixed with https://openjdk.org/jeps/491 in JDK 24.
JDK 25 became the first LTS which has support for virtual threads without the pinning issue.
It would be nice to have support for virtual threads for processing when running on JDK 25.
I created a fork with a first implementation but I didn't find the time to get the Maven build working correctly.
I tried to keep the original build and have only the module parallel-consumer-virtual-threads build on JDK 25 but didn't succeed yet.
You find a rough version from the code here:
https://github.com/bdeneuter/parallel-consumer/blob/master/parallel-consumer-virtual-threads/src/main/java/io/confluent/parallelconsumer/virtual_thread/VirtualThreadProcessor.java

I based the implementation on the reactor version.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.