Asynchronous Programming with Java 8 and CompletableFuture

Wednesday, January 18, 2017

As developers we understand that simple concepts such as “a REST call that takes a user ID and returns the user’s JSON” is actually a carefully tuned series of filters, service calls, and transformations which make that a reality. With the growing popularity of asynchronous programming, the code to do all of that can get real ugly real fast. Java 8 introduced the CompletableFuture class which provides an elegant way to define large operations as a pipeline of smaller, more focused operations. We’ll review some core “functional programming” ideas to warm up and then build a small REST API that highlights how we can use the new futures to write cleaner, modular, elegant code.

- - - - - - - - - - - - - - - - - - - -

Rob Signorelli has designed, architected, and developed software professionally for 15 years. During that time he’s served as a principal architect for a number of startup companies and larger, established companies in the Indianapolis area. Rob is currently the VP of Product Development for LifeShare Technologies, a software/hardware/servic­es company that provides easy-to-use communication, engagement, and wellness technology for aging seniors at home and in assisted living communities.

We're about:

The Indianapolis Java User Group is a group of professionals and hobbyists in the Indianapolis, Indiana area who share an interest in the Java programming language and related technology.

Many of us work with Java every day at work while others are students or professionals who have not yet worked with Java.

The goal of the IndyJUG is to promote the use of the Java language and components across all levels of interest in the greater Indianapolis area, by serving as a resource for knowledge, experience and career opportunities.