In integration there is a lot of Async I/O (calling disk, databases, api's and other external systems). Though Camel is very fast, it's mostly these async I/O calls that take time and eat a lot of platform threads.
For example: from("direct:start") .log("some log") //this takes less than 1 ms .setHeader(Exchange.HTTP_URI, constant("http://someapi")) //this takes less than 1 ms .to("http://someapi") //this takes 3 seconds .setHeader("Result","Done") //this takes less than 1 ms .to("sql://insertindatabase") //this takes less than 1 seconds ; One solution to this is using virtual threads. They are already part of Kotlin (coroutines), but now coming to Java as well in Java 21 (release 19th September). In the Camel 4 blog "What's new" it states that: "We plan to support Java 21 on next LTS released by the end of this year." Camel next LTS release (4.2) is expected around December. I was wondering what the plans here are with supporting virtual threads? Will they part of 4.2 or planned for later? Raymond