Introduction to CompletableFuture in Java 8
Ғылым және технология
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 -...
Introduction to CompletableFuture - • Introduction to Comple...
Java Memory Model in 10 minutes - • Java Memory Model in 1...
Volatile vs Atomic - • Using volatile vs Atom...
What is Spring Webflux - • What is Spring Webflux...
Java Concurrency Interview question - • Java Concurrency Inter...
Пікірлер: 335
I haven't seen any other tutorial that has described this with such simplicity and beauty!! Really great work man!
I don't have words to describe you boss awsome bro
Trust me this channel is best for industry people.....the sad part is we do not get to see any more videos from this channel.......i would request the creator to at-least think for a membership based subscription
Whenever I want to remember something about java concurrency, I go and watch your videos, Great job
I have read lot of books and watched so many videos on multi threading, no one explained in this manner. Great work. Thanks for the content.
Terse, succinct, precise, informative, amazing, clear, .... running out of words to describe. Thank you so much for the video series
came back it to again after few years. still blows my mind how simply OP has explained the concepts.
Hi Deepak, Your doing a excellent job of covering the most complex topic of Java threads & concurrency on your channel by providing detailed insight & explanation on each feature in simple and clear manner with hands on code. Keep it up.👍
The way you explain complex things in simple flow with sharp voice makes it impossible to take break from learning :) Great work Sir!
Another beautiful and clearly explained video :) Haven't seen any new videos from you :( Please continue making such videos, it really helps.
i can't think of a better explanation than this . Amazingly explained. thank you
Watch it twice guys, after second time everything is clear. Thanks for the video!
Your explanations are truly amazing and crystal clear, hats off and thanks a lot for such a great content.
Absolutely brilliant !! I have seen many videos on completableFuture , but this was the best one. what clarity man. Brilliant !!
Very composed and clear explanation with practical examples. Great work!!
The most practical video I've ever seen on CompletableFuture
Crystal clear. You are really have the knack of teaching
You are awesome! Please keep posting videos don't stop. No one explained threads the way you do..
Sir your explaination is awesome. I haven't see this type of deep explaination from other tutorials
Really nice 👌.. I have never seen this type of videos related to concurrent package...Awesome explanation with simple examples ...tq so much....
Dude, where were you all this time? videos are precise, exact and crisp.
You deserve more subscribers and views. Very clear and crisp and to the point.
Awesome explanation. Looking forward to your other tutorials.
Really simple and informative. Thanks for this video. I got to know all that I needed to know about CompletableFuture from here.
Very nicely explained. Finally got clear on the concept of CompletableFuture. Thanks for this video.
You are awesome man.. i just can't explain how much you helping people to understand deep concepts in easy way. I request you to make series of RxJava ..
DONE thanks 1:17 callable is used when you want to return a value from a thread (normal thread doesn’t return anything) Implementing call method that returns ReturnType Callable returns a Future that is a placeholder for the real value. Doing future.get() is blocking if the task is not completed 2:50 visualization We can chain methods together (instead of blocking with get() we say thenApply(...) and chain calls asynchronously See chaining from 5:59 12:50 can perform the chained asynchronous operations on the same thread or provide a different thread pool (executor service) for each operation (some operations might be cpu intensive some io, so we want to use different threadpool) 17:00 we don’t have to specify an executor to completable future, it uses forkjoinpool internally Todo continue from 1:17
Teaching is an art and you have mastered it . Respect ++ Sir !
Brilliant video. A lot of my confusions got resolved through this video. I will subscribe to you because I find learning with you very enriching. Please keep creating more videos like this :) Also for completablefuture if you can include collecting multiple futures through .get .all etc... It'll be complete
This is the second video I watched from your channel and you straight away became one of the best Java youtube channels I'll follow and recommend others to follow as well. Thanks a lot for this super easy explanation!
@DefogTech
2 жыл бұрын
Thank you for the kind words Priyank!
I tried to write some good comment for your video session but I can't have word to write.... you are simply very very amazing Sir.... clear all doubt..... never seen this please keep on posting video session.....we are excited to see your new upcoming video session....
Too concise and crisp 👍
Superb....very helpful in understanding the concept.
Brilliant explanation of the concept. Thanks !!
simple, easy, to the point, really excellent
really a very simple way you found to explain baffling topic....good going..thanks
Bro, this is one of the best and clear explanation on this topic I have ever encountered. Big thanks!!!
Thank you! Great and informative video! I don't understand why majority of tutorials(youtube, udemy) doesn't use diagrams or pictures when explaining it's much easier to understand and gives better understanding of all flow. But instead majority just types code and mumbles what that code does and for beginner it's hard to grasp.
Really really superb explanation of complex topic to understand easy.
Hello sir, I am big fan of your teaching skill. You explain tough topics in very easy way. I request you to please make some tutorials on RxJava. Thank you so much for all your effort.
A great video that I came across to understand CompletableFuture. Keep it up man.
Best explanation I have encountered, thanks so much!
super precise and super cool..thanks to you sir.
Fantastic job man! God bless you. Please do a video on RxJava. Nobody will be able to explain it like you do.
By watching this I have become a big fan of your tutorial thanks lot ..
Very very awesome. I now fully understand.
such a amazing teacher, hats off dear!!!
Have to say, very well explained. Keep creating the good work.💪
Thanks.. you really made this complex thing easy!!!
Thank you so much for the explanation. Very well explained.
Wow superb explanation ..!
Finally I understood! Thank you!!
Neat and beautiful... Excellent!!
Wonderful, this is more than I expected
Thank you... Keep up the good work Sir 👌🏻
best tutor brother , clear voice and way teaching is amazing :))
Very well explained, You have long way to go....Subscribed already n waiting for other video’s....Thank You...
Thanks for this clear and concise explainer!
Would be great if you had a series on reactive programming. Good complement to your discussion on completablefutures
@TheHarpanOnly
4 жыл бұрын
I do agree. You have very good approach in teaching other.
@surajsingh-vu5oc
2 жыл бұрын
Please make video on reactive programming
Nice explanation. Very clear and the recording was also crisp
Awesome video with the perfect usecase
Great video. Thanks for explaining nicely
Good Explanation on Completable Future
The thread pool and tasks graph is really nice.
salute you from heart.. no words i have !
Great, clear explanation. Thank you!
Very very clear explained......thanks a lot
You are doing Great service, Dude
Brilliant explanation mate.❤
Amazing work! Thanks a lot for such a wonderful video. I went through 4, 5 videos from your channel. You have excellent command over teaching in all aspects: mentioning problem statement, explaining with diagram, providing solution and need of each line why it's been used with available relevant alternatives, pros and cons. On top of this your speed and tone is perfect for learner. Superb audio, video, presentation quality as well. Thanks a ton! God bless you.
Very nice explanation, thanks a lot
@DefogTech
5 жыл бұрын
You're welcome!
Thanks this is a good explanation, I will do some exercises tomorrow.
Great Explanation, Thanks!!
Crystal clear explanation 👍
I could listen to your explanations all day...u make it so easy to understand...u deserve many more subscribers
@DefogTech
4 жыл бұрын
Thank you so much for the kind words!
Wonderful explanation with right example. I was always struggling to apply this pattern for my processes, this gives lot of clarity. Is it a simplified version of Saga pattern ?
Really great work man!
great video, great explanation, great example!
Superb explanation
Great Videos! Every time u say "Task" I drank a shot. I passed out by the end.
Very well explained. Thanks !
great job man, best explanation ever! thanks you so much!
Great tutorial. Thanks buddy.
Thank you for the time and effort!
Thanks for explaining in such a great way
Thank you for such a informative video
Awesome video. Thank you.
Very clear explanation. Thanks a lot.
Great explanation, thanks.
Beautiful. "Possibly Asynchronous", I have never heard anyone said that. 👍
VVN video...thanks !!
Awesome tutorial! Thank you!
Great Explaination!!!
Awesome Explanation ...
Woaw.. It's such a crisp and comprehensive explanation and demo with most easily understandable yet practical example! I wish there was a way to like the video more than once!!! Thanks a ton!
Awesome Expplanation
This is too good! Thank you.
Amazing explanation
Excellent work. Please do a tutorial on RX java as well
Thank u so much. Great learning.