Menu
InfoQ Architecture·August 24, 2026

JDK 27 & 28: Performance, Concurrency, and Security Enhancements for Java Systems

This article outlines upcoming features in JDK 27 and 28, focusing on advancements relevant to system design in Java. Key areas include improved concurrency with Project Loom, performance optimizations through better garbage collection and the Vector API, enhanced security with Post-Quantum cryptography and PEM encodings, and streamlined JSON handling, all of which impact the architecture and performance of Java-based distributed systems.

Read original on InfoQ Architecture

The upcoming releases of JDK 27 and JDK 28 introduce several significant enhancements that directly influence the design, performance, and security of Java applications and distributed systems. Understanding these features is crucial for architects and developers aiming to build robust, scalable, and efficient Java platforms. The changes span core libraries, the HotSpot JVM, and security components.

Structured Concurrency (Project Loom)

JEP 533 (Structured Concurrency) aims to simplify concurrent programming by treating groups of related tasks running in different threads as a single unit. This feature, part of Project Loom, significantly improves error handling, cancellation, reliability, and observability in multi-threaded applications. For system designers, this means more manageable and predictable concurrent services, reducing the complexity often associated with asynchronous operations and parallel processing.

💡

Architectural Impact

Structured Concurrency can lead to cleaner service boundaries and more robust inter-service communication patterns where individual requests might fan out to multiple internal tasks. It simplifies the design of APIs that handle complex, concurrent workflows.

Performance Optimizations: GC and Vector API

  • G1 as Default GC (JEP 523): Making G1 the default garbage collector across all environments streamlines performance tuning and provides better out-of-the-box performance for applications, especially those running in containerized or cloud environments where explicit JVM flags might be overlooked.
  • Compact Object Headers (JEP 534): By making compact object headers the default, HotSpot reduces memory footprint, which can lead to better cache utilization and overall system performance, particularly in memory-intensive applications.
  • Vector API (JEP 537): This API allows developers to express vector computations that compile to optimal CPU vector instructions. For data-intensive applications, scientific computing, or AI/ML workloads, this offers significant performance gains over scalar computations, directly impacting throughput and latency.

Security and Data Handling

JDK 27 and 28 introduce critical security enhancements. JEP 527 adds Post-Quantum Hybrid Key Exchange for TLS 1.3, preparing systems for future cryptographic threats. JEP 538 and JEP 542 (PEM Encodings of Cryptographic Objects) provide a standard API for handling cryptographic keys and certificates in the widely-used PEM format, simplifying secure credential management. Additionally, JEP 540 introduces a Simple JSON API, reducing reliance on external libraries for basic JSON parsing and generation, which can simplify dependency management and reduce attack surface.

📌

Example: Secure Microservice Communication

A microservice architecture relying on TLS 1.3 for inter-service communication can immediately benefit from post-quantum cryptography, enhancing long-term security. The new PEM API simplifies the management of service-specific certificates for mutual TLS (mTLS), making deployment and rotation easier and more secure.

JavaJDKJVMConcurrencyGarbage CollectionPerformanceSecurityJSON API

Comments

Loading comments...