Introduction to CompletableFuture in Java 8

Defog Tech
Defog Tech
321.2 هزار بار بازدید - 7 سال پیش - Learn about what comes next
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 - defogtech

New video added every weekend.

Popular Videos
----------------------------------
What is an API Gateway - What is an API Gateway?
Executor Service - Java ExecutorService - Part 1 - Intro...
Introduction to CompletableFuture - Introduction to CompletableFuture in ...
Java Memory Model in 10 minutes - Java Memory Model in 10 minutes
Volatile vs Atomic - Using volatile vs AtomicInteger in Ja...
What is Spring Webflux - What is Spring Webflux and when to us...
Java Concurrency Interview question  - Java Concurrency Interview Question: ...
7 سال پیش در تاریخ 1396/11/06 منتشر شده است.
321,225 بـار بازدید شده
... بیشتر