functional programming Java Spring
Kansas City, Missouri, United States
This workshop expands on the basics of Java Lambdas and the Stream API. In this workshop, we will go beyond the introduction and basic mechanics of Lambdas and dive deeper into the variety of intermediate and terminal operations and how each of them have multiple overridden implementations within the API (and why).
During this workshop, we will build a functional Spring MVC Restful web service to demonstrate how to apply the different operations, such as:
The review of these operations will focus on the following:
* the difference between intermediate operations and terminal operations
* which operations are short-circuiting operations
* why some operations are stateful
* what it means for some terminal operations to return an Optional
This session will explore the Java CompletableFuture class within the Java Concurrency API introduced in Java 8 and how the CompletableFuture class allows developers the freedom of creating asynchonous code without having to resort to a complicated and advanced approach of directly implementing threads.
This session will assume some basic understanding of Lambdas, Functional Interfaces, and Functional Programming in Java, as the CompletableFuture API leverages these concepts.
We will also discuss some use cases for when to use the CompletableFuture class and show some basic live code examples.