Asynchronous Programming in Java: From Completable Futures to Project Loom

Softwareentwicklung mit Open Source



9:10 – 17:00 Uhr
Fachhochschule OST Campus Rapperswil
Max. Teilnehmer: 42

Einleitung

Java started out offering multithreading for parallel and concurrent programming. Over the years the need for asynchronous programming has grown, due to the use of webservices, microservices, and distributed computing in general. Java introduced the promises API with CompletableFutures and now is introducing Project Loom. In this workshop learn about asynchronous programming in Java, how to make use of CompletableFutures, what are the benefits and pitfalls, and what problems does the new Virtual Threads that are part of Project Loom solve. Using practical hands-on examples, practice along to learn the power, the benefits, and the drawbacks of each of these ways of creating asynchronous programs.

Programm

*Parallel, Concurrent, and Asynchronous programming

*The non-blocking calls

*CompletableFuture and how to make asynchronous calls

*Virtual Threads, the problem they solve and how to use them

*Benefits and drawbacks of each

Kursziel

Learn how to create asynchronous applications using modern versions of Java, from features available in Java 8 to Java 21. We will dive deep into understanding the benefits and the drawbacks of using CompletableFuture and how Virtual Threads differ from normal threads and the benefits they offer to create asynchronous programs. We will also discuss when to use Virtual Threads and when to avoid them.

 

Adressaten

Programmers, lead developers, hands-on architects, technical managers

Voraussetzungen

Working knowledge with Java

Infrastruktur

A laptop with the following installed:

Java 20 or newer to make use of Virtual Threads

git client

Your favorite IDE

Referenten

Venkat Subramaniam

Agile Developer, Inc.


Dr. Venkat Subramaniam is an award-winning author, founder of Agile Developer, Inc., creator of agilelearner.com, co-founder of the devdotnext software conference, and an instructional professor at the University of Houston. He has trained and mentored thousands of software developers in the US, Canada, Europe, and Asia, and is a regularly-invited speaker at several international conferences. Venkat helps his clients effectively apply and succeed with sustainable agile practices on their software projects. Venkat is a (co)author of multiple technical books, including the 2007 Jolt Productivity award winning book Practices of an Agile Developer. You can find a list of his books…