ThinkAsync in Java8
summary
Argues that Java 8’s CompletableFuture replaces callback hell with readable chains and nonblocking transformations, using thenApply/thenCompose and combining futures instead of get. Demonstrates prime and Fibonacci pipelines, a microservice email “fire‑and‑forget” example, and compares parallel stream (≈2s) to a custom executor run with join (≈1.01s) to show measurable throughput gains. Relies on ForkJoinPool commonPool foundations, notes pitfalls (get blocks, join/complete/timeout APIs) and reports successful production use.
AI-written summary · about
chapters (7)
- 0:00Start
- 3:00Evolution of the Multi-Threading in Java
- 4:42The Concurrency Api
- 7:21Concepts of Futures
- 8:30What Is the Future in Java
- 19:37Computable Futures
- 22:40Work-Stealing
related talks
02h 35mParallel and Asynchronous Programming with Streams and CompletableFuture
48mParallel Streams, CompletableFuture, and All That: Concurrency in Java 8
52mNew Concurrency Utilities in Java 8
55mBack to the CompletableFuture: Concurrency in Action
45mKeynote: Where Promises Fall Short
34mConcurrency in Spring Boot Applications: Making the Right Choice
01h 01mOOP and FP
56mFlavors of Concurrency in Java
