Jan 01, 2019
Back to the CompletableFuture: Concurrency in Action
Elevator Pitch (~300 words)
Concurrency is hard! It is especially true for those who have only ever used Threads and Runnables. Fortunately, the Java community has been working hard on improving developer experience around multithreading programming. The declarative model has become an essential part of the concurrency development along with resource management features of JDK5, and post-JDK8 structures like CompletableFutures.
In this talk, we explore concurrency programming and how developer-friendly it has become with the latest advantages of the Java language.
With Threads and Runnables being the first (and often last) things we used in Java, these classes gave many of us an impression of and appreciation for the complexities of concurrency. As a result, many developers abandoned the idea of ever touching thread management in Java and focused on a single-threaded development.
Fear no more! The world of concurrency in Java has changed since JDK8 and continues to get better. This talk discusses improvements around the Concurrency API of JDK5 and the power of asynchronous programming of CompletableFutures post-JDK8. Our goal is to break out of the fear of concurrency in Java and learn about a new, declarative way of thread programming.
- Basics of Concurrency and Its Forms in Java
- Concurrency API and Declarative Model in JDK5
- Asynchronous development with CompletableFuture post-JDK8