Best of Awesome Java NewsletterJune 2024

  1. 1
    Article
    Avatar of java_libhuntAwesome Java Newsletter·2y

    Why are my JAVA virtual threads slower than the platform threads?

    Exploring the performance differences between Java virtual threads and platform threads, the post highlights how virtual threads can enhance service performance by avoiding idle time during I/O operations. It covers enabling virtual threads in Spring Boot, building a test API for comparison, and performance comparisons using Apache HTTP server benchmarking. The author identifies pinning as the reason for unexpected slowdowns and concludes with strategies for overcoming limitations using MySQL Connector/J.

  2. 2
    Video
    Avatar of java_libhuntAwesome Java Newsletter·2y

    Efficient containers with Spring Boot 3, Java 21 and CDS by Sébastien Deleuze @ Spring I/O 2024

    Sébastien Deleuze discusses ways to achieve runtime efficiency with Spring Boot 3.0, Java 21, and Class Data Sharing (CDS). Key topics include optimizing startup time, CPU and memory usage, and container deployment strategies. Deleuze highlights the benefits of using native images, virtual threads, and project-specific features for better scalability and sustainability. He also introduces new capabilities in Spring Boot 3.3 and shares insights on how Virtual threads and other optimizations can enhance performance on limited resources.

  3. 3
    Article
    Avatar of java_libhuntAwesome Java Newsletter·2y

    Virtual vs Platform Threads When blocking operations return too fast

    The post explores the performance differences between virtual threads and platform threads in Java when running blocking I/O operations. Tests conducted show that virtual threads perform better than platform threads for long blocking operations but are outperformed by platform threads for short blocking tasks. Different JDK versions also impact the performance, necessitating benchmarks for specific use cases.