Richard Groß

IT Archaeology: Mend Software · Create Options · Increase ROI

RSS

Talks

2027-02-03 - JavaLand

JavaLand 2027

Programming Without Callback Hell - Virtual Threads vs. Coroutines

Highly concurrent JVM applications must remain efficient while waitingHighly concurrent JVM applications must remai

Highly concurrent JVM applications must remain efficient while waiting on databases and remote services. Traditional solutions such as futures and reactive pipelines achieve scalability at a cost: they make developers abandon familiar control flow and data abstractions for callback chains and types that only exist inside the reactive world. Java’s virtual threads let us return to sequential, idiomatic code without introducing a separate asynchronous programming model. To understand the design choices and trade-offs, we will contrast them with Kotlin coroutines—an example of how compiler-supported `async`/`await` could have worked on the JVM. We will compare blocking, scheduling, API compatibility, and context propagation, then examine how structured concurrency manages task lifetimes, failures, cancellation, and deadlines. Java developers will leave with a clearer understanding of preemptively scheduled virtual threads, why they differ from cooperative `async`/`await`, and when they can replace thread pools or reactive code.

Give Feedback

What worked for you? What could be better? I’d love to hear your thoughts.

Give feedback via

BlueSky LinkedIn

Grab a coffee

Questions or ideas after the talk? Book a virtual coffee with me.

Grab a coffee

Additional links

Post on Mastodon

Choose your Mastodon instance or type its domain. Your post will open in a new tab.