watermark logo

Introduction to CompletableFuture in Java 8

7 Views
admin
admin
03 Dec 2019

Learn about what comes next after ExecutorService. How JavaScript promises compare to similar data-structure of CompletableFuture in Java.

CompletableFuture, introduced in Java 8, is a tool for performing possible asynchronous computations and triggering its dependant computations.

This is very similar to JavaScript Promises where series of callbacks are used to perform operations.

For smaller algorithms or flows CompletableFuture is a perfect option. Though, if this becomes complicated, RxJava is an better alternative which provides same benefits as CompletableFuture but is more feature rich and its resultant code is more readable.

Channel
----------------------------------
Complex concepts explained in short & simple manner. Topics include Java Concurrency, Spring Boot, Microservices, Distributed Systems etc. Feel free to ask any doubts in the comments. Also happy to take requests for new videos.

Subscribe or explore the channel - https://youtube.com/defogtech

New video added every weekend.

Popular Videos
----------------------------------
What is an API Gateway - https://youtu.be/vHQqQBYJtLI
Executor Service - https://youtu.be/6Oo-9Can3H8
Introduction to CompletableFuture - https://youtu.be/ImtZgX1nmr8
Java Memory Model in 10 minutes - https://youtu.be/Z4hMFBvCDV4
Volatile vs Atomic - https://youtu.be/WH5UvQJizH0
What is Spring Webflux - https://youtu.be/M3jNn3HMeWg
Java Concurrency Interview question - https://youtu.be/_RSAS-gIjGo

Show more

0 Comments Sort By

No comments found

Facebook Comments

Up next