Reactive and asynchronous applications are growing in popularity, but what is the best way to build them? This course helps you apply the latest concurrency techniques to develop state of the art Java applications necessary for the microservices/service oriented architecture (SOA) model. It builds upon the theory described in the associated "Asynchronous Programming in Java" course, by refactoring several projects using Java 8’s CompletableFutures class. It explains the concept behind CompletableFutures, examines the problems they solve for Java developers, and shows through examples how to use the API productively in practice. The course is designed for software architects and intermediate- to advanced-level Java developers.
- Understand how to program event-driven reactive code using Java 8 and CompletableFutures
- Gain experience implementing reactive code in a readable and maintainable way
- Learn to build reliable and performant Java apps for the microservices/SOA model
Raoul-Gabriel Urma is CEO of Cambridge Spark, a learning community for data scientists and developers in the UK. Co-author of Java 8 in Action (Manning Publications), Raoul has delivered over 100 technical talks at international conferences. He's worked for Google, eBay, Oracle, and Goldman Sachs, and holds a PhD in Computer Science from the University of Cambridge.
Richard Warburton is a software engineer, teacher, and Java Champion. He’s worked as a developer in such diverse areas as low latency trading systems, statistical analytics, static analysis, compilers, and network protocols. Author of Java 8 Lambdas (O'Reilly Media), Richard holds a PhD in Computer Science from The University of Warwick.
Table of Contents
- The Problem When Querying Services 00:04:39
- Using the Threads API 00:02:18
- Limitation with the Threads API 00:06:17
- Introduction to ExecutorService 00:02:10
- Using an ExecutorService 00:04:21
- Refactoring to ExecutorService 00:04:34
- Limitations of Future and other APIs 00:02:15
- CompletableFuture Basics 00:11:51
- Refactoring to CompletableFuture 00:03:54
- CompletableFuture Usage Patterns 00:05:50
- CompletableFuture Usage Exercise 00:06:49
- CompletableFuture Execution Model 00:07:43
- Dealing with Exceptions 00:02:41
- Faulty Service Exercise 00:03:10
- Sequence Patterns 00:05:07
- Wrap Up Exercise 00:06:50
- Summary 00:01:34
- Title: Programming Promises in Java 8 Using Completable Futures
- Release date: September 2017
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781491990209