Project Loom

Master the revolutionary features of Project Loom in Java. Explore in-depth tutorials on virtual threads (lightweight concurrency), structured concurrency for manageable multi-threaded code, and scoped values for efficient data sharing. Learn how to solve the C10K problem, optimize I/O-bound workloads, and transition from reactive programming to simple, blocking code that scales millions of concurrent operations. Our comprehensive series covers everything from basic concepts to production-ready microservices and performance tuning.

Showing 9 of 9 articles

Project Loom

Migrating Project Loom Code from Java 21 to Java 25

Learn what changed for Project Loom when moving from Java 21 to Java 25. This guide covers stable virtual threads, redesigned structured concurrency APIs, finalized scoped values, migration patterns, and operational implications.

Jagdish Salgotra · 16 min

Project Loom

Java Concurrency with Project Loom: Part 8 - Future Directions and Migration Planning

Look ahead at the evolution of Java concurrency. Explore Scoped Values as a ThreadLocal replacement, Foreign Function API integration with Project Panama, and the roadmap for next-generation concurrent programming in Java.

Jagdish Salgotra · 15 min

Project Loom

Java Concurrency with Project Loom: Part 7 - Production Readiness, Monitoring, and Debugging

Ensure your virtual thread applications are production-ready. Master essential monitoring strategies, debugging techniques, JFR integration, and pinning detection to maintain reliable and high-performance Java services.

Jagdish Salgotra · 38 min

Project Loom

Java Concurrency with Project Loom: Part 6 - Performance Deep Dive

Settle the performance debate with an evidence-based comparison of Java's concurrency models. Analyze real-world benchmarks, memory footprints, and throughput metrics for virtual threads, platform threads, and reactive programming.

Jagdish Salgotra · 35 min

Project Loom

Java Concurrency with Project Loom: Part 5 - Advanced Structured Concurrency Patterns

Master advanced structured concurrency patterns for production microservices. Learn circuit breakers, fallback patterns, and resilient service orchestration with StructuredTaskScope.

Jagdish Salgotra · 32 min

Project Loom

Java Concurrency with Project Loom: Part 4 - Structured Concurrency in Practice

Discover how Structured Concurrency brings order to parallel programming. Master the StructuredTaskScope API to manage hierarchical tasks, ensure automatic cancellation, and prevent resource leaks in concurrent Java applications.

Jagdish Salgotra · 25 min

Project Loom

Java Concurrency with Project Loom: Part 3 - Real-World Microservices

Deep dive into production-grade microservices built with virtual threads. Explore practical implementation patterns, advanced observability, and graceful shutdown strategies to ensure resilience and scalability in distributed systems.

Jagdish Salgotra · 28 min

Project Loom

Java Concurrency with Project Loom: Part 2 - Building Web Services with Virtual Threads

Learn to build ultra-scalable web services using Java's virtual threads. This guide covers implementing high-performance HTTP servers that handle massive concurrent connections by efficiently managing blocking I/O operations.

Jagdish Salgotra · 15 min

Project Loom

Java Virtual Threads: Why They Matter for I/O Scalability

Discover Java's virtual threads revolution with Project Loom. Learn why Java's threading model is changing forever, performance benefits, migration strategies, and real-world implementation examples. Complete guide to lightweight concurrency in Java 21+.

Jagdish Salgotra · 15 min