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

  • @BairagiBiker
    @BairagiBiker4 жыл бұрын

    I haven't seen any other tutorial that has described this with such simplicity and beauty!! Really great work man!

  • @balakrishnajangita6638
    @balakrishnajangita66385 жыл бұрын

    I don't have words to describe you boss awsome bro

  • @prashantjha439
    @prashantjha4393 жыл бұрын

    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

  • @heshamosman9752
    @heshamosman97524 жыл бұрын

    Whenever I want to remember something about java concurrency, I go and watch your videos, Great job

  • @Javavidz
    @Javavidz Жыл бұрын

    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.

  • @pankajgupta4740
    @pankajgupta47404 жыл бұрын

    Terse, succinct, precise, informative, amazing, clear, .... running out of words to describe. Thank you so much for the video series

  • @solorankerone
    @solorankerone2 жыл бұрын

    came back it to again after few years. still blows my mind how simply OP has explained the concepts.

  • @vishall3379
    @vishall33794 жыл бұрын

    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.👍

  • @manishmanghwani731
    @manishmanghwani7312 жыл бұрын

    The way you explain complex things in simple flow with sharp voice makes it impossible to take break from learning :) Great work Sir!

  • @MakeItStik
    @MakeItStik4 жыл бұрын

    Another beautiful and clearly explained video :) Haven't seen any new videos from you :( Please continue making such videos, it really helps.

  • @shivaliraina3038
    @shivaliraina30383 жыл бұрын

    i can't think of a better explanation than this . Amazingly explained. thank you

  • @danielgyrtes6370
    @danielgyrtes63704 жыл бұрын

    Watch it twice guys, after second time everything is clear. Thanks for the video!

  • @kunalrai7577
    @kunalrai75772 жыл бұрын

    Your explanations are truly amazing and crystal clear, hats off and thanks a lot for such a great content.

  • @praveensisodia8055
    @praveensisodia80553 жыл бұрын

    Absolutely brilliant !! I have seen many videos on completableFuture , but this was the best one. what clarity man. Brilliant !!

  • @sivaramakrishnakv
    @sivaramakrishnakv3 жыл бұрын

    Very composed and clear explanation with practical examples. Great work!!

  • @sekharsamanta6266
    @sekharsamanta62664 ай бұрын

    The most practical video I've ever seen on CompletableFuture

  • @ramt179
    @ramt1792 жыл бұрын

    Crystal clear. You are really have the knack of teaching

  • @vinaypandey5599
    @vinaypandey55993 жыл бұрын

    You are awesome! Please keep posting videos don't stop. No one explained threads the way you do..

  • @MukeshShah-lj4th
    @MukeshShah-lj4th Жыл бұрын

    Sir your explaination is awesome. I haven't see this type of deep explaination from other tutorials

  • @bandisruthi6877
    @bandisruthi68773 жыл бұрын

    Really nice 👌.. I have never seen this type of videos related to concurrent package...Awesome explanation with simple examples ...tq so much....

  • @ntonZZ
    @ntonZZ4 жыл бұрын

    Dude, where were you all this time? videos are precise, exact and crisp.

  • @SreekarAnugu
    @SreekarAnugu3 жыл бұрын

    You deserve more subscribers and views. Very clear and crisp and to the point.

  • @surendralamichhane9387
    @surendralamichhane93874 жыл бұрын

    Awesome explanation. Looking forward to your other tutorials.

  • @Namrata766
    @Namrata7662 жыл бұрын

    Really simple and informative. Thanks for this video. I got to know all that I needed to know about CompletableFuture from here.

  • @PujaSingh-qg5ln
    @PujaSingh-qg5ln2 жыл бұрын

    Very nicely explained. Finally got clear on the concept of CompletableFuture. Thanks for this video.

  • @KundanRoy
    @KundanRoy4 жыл бұрын

    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 ..

  • @mostinho7
    @mostinho74 жыл бұрын

    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

  • @karankanojiya7672
    @karankanojiya7672 Жыл бұрын

    Teaching is an art and you have mastered it . Respect ++ Sir !

  • @vivekpurushothaman8
    @vivekpurushothaman85 жыл бұрын

    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

  • @pinxtr
    @pinxtr2 жыл бұрын

    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

    @DefogTech

    2 жыл бұрын

    Thank you for the kind words Priyank!

  • @muna6403
    @muna64034 жыл бұрын

    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....

  • @shwetapriyadarshani197
    @shwetapriyadarshani197 Жыл бұрын

    Too concise and crisp 👍

  • @kennethcarvalho3684
    @kennethcarvalho36845 жыл бұрын

    Superb....very helpful in understanding the concept.

  • @NitishRajSrivastava
    @NitishRajSrivastava4 жыл бұрын

    Brilliant explanation of the concept. Thanks !!

  • @omerchannel
    @omerchannel2 жыл бұрын

    simple, easy, to the point, really excellent

  • @rishankgupta1507
    @rishankgupta15075 жыл бұрын

    really a very simple way you found to explain baffling topic....good going..thanks

  • @piotrjazdzyk253
    @piotrjazdzyk2533 ай бұрын

    Bro, this is one of the best and clear explanation on this topic I have ever encountered. Big thanks!!!

  • @xzygis
    @xzygis4 жыл бұрын

    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.

  • @hareeshjp
    @hareeshjp Жыл бұрын

    Really really superb explanation of complex topic to understand easy.

  • @krishandeo4070
    @krishandeo40702 жыл бұрын

    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.

  • @MegaSriku
    @MegaSriku3 жыл бұрын

    A great video that I came across to understand CompletableFuture. Keep it up man.

  • @tristanmoller9498
    @tristanmoller94982 жыл бұрын

    Best explanation I have encountered, thanks so much!

  • @RaviBoyina
    @RaviBoyina Жыл бұрын

    super precise and super cool..thanks to you sir.

  • @lings628
    @lings6284 жыл бұрын

    Fantastic job man! God bless you. Please do a video on RxJava. Nobody will be able to explain it like you do.

  • @nileshdasarwad1668
    @nileshdasarwad16683 жыл бұрын

    By watching this I have become a big fan of your tutorial thanks lot ..

  • @murrayKorir
    @murrayKorir2 жыл бұрын

    Very very awesome. I now fully understand.

  • @pramodkumar-fo5sy
    @pramodkumar-fo5sy2 жыл бұрын

    such a amazing teacher, hats off dear!!!

  • @gargsuraj12
    @gargsuraj1228 күн бұрын

    Have to say, very well explained. Keep creating the good work.💪

  • @davesachin1048
    @davesachin1048 Жыл бұрын

    Thanks.. you really made this complex thing easy!!!

  • @raghavprasad277
    @raghavprasad2773 жыл бұрын

    Thank you so much for the explanation. Very well explained.

  • @asankasiriwardena3383
    @asankasiriwardena3383 Жыл бұрын

    Wow superb explanation ..!

  • @gersonadr2
    @gersonadr2 Жыл бұрын

    Finally I understood! Thank you!!

  • @hirenshah1816
    @hirenshah18163 жыл бұрын

    Neat and beautiful... Excellent!!

  • @mohanskht2367
    @mohanskht23674 жыл бұрын

    Wonderful, this is more than I expected

  • @kotetechuse7254
    @kotetechuse72544 жыл бұрын

    Thank you... Keep up the good work Sir 👌🏻

  • @shadabrazi1687
    @shadabrazi16873 жыл бұрын

    best tutor brother , clear voice and way teaching is amazing :))

  • @PA-vf5st
    @PA-vf5st3 жыл бұрын

    Very well explained, You have long way to go....Subscribed already n waiting for other video’s....Thank You...

  • @20shourya
    @20shourya4 жыл бұрын

    Thanks for this clear and concise explainer!

  • @drakezen
    @drakezen6 жыл бұрын

    Would be great if you had a series on reactive programming. Good complement to your discussion on completablefutures

  • @TheHarpanOnly

    @TheHarpanOnly

    4 жыл бұрын

    I do agree. You have very good approach in teaching other.

  • @surajsingh-vu5oc

    @surajsingh-vu5oc

    2 жыл бұрын

    Please make video on reactive programming

  • @HarishKumar-yh3tz
    @HarishKumar-yh3tz2 жыл бұрын

    Nice explanation. Very clear and the recording was also crisp

  • @divyamahesh9032
    @divyamahesh90322 жыл бұрын

    Awesome video with the perfect usecase

  • @kayeshparvez
    @kayeshparvez3 жыл бұрын

    Great video. Thanks for explaining nicely

  • @sathishrajasekar1155
    @sathishrajasekar11552 жыл бұрын

    Good Explanation on Completable Future

  • @woshinidayeeee
    @woshinidayeeee2 жыл бұрын

    The thread pool and tasks graph is really nice.

  • @DurgaShiva7574
    @DurgaShiva7574 Жыл бұрын

    salute you from heart.. no words i have !

  • @jamesteh2847
    @jamesteh28472 жыл бұрын

    Great, clear explanation. Thank you!

  • @pranabkumarsahoo2490
    @pranabkumarsahoo24905 жыл бұрын

    Very very clear explained......thanks a lot

  • @vijaykumarreddyt3287
    @vijaykumarreddyt3287 Жыл бұрын

    You are doing Great service, Dude

  • @AshishRohillax
    @AshishRohillax Жыл бұрын

    Brilliant explanation mate.❤

  • @GirishBapatpune
    @GirishBapatpune4 жыл бұрын

    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.

  • @virendrakhade12
    @virendrakhade125 жыл бұрын

    Very nice explanation, thanks a lot

  • @DefogTech

    @DefogTech

    5 жыл бұрын

    You're welcome!

  • @no_more_free_nicks
    @no_more_free_nicks3 жыл бұрын

    Thanks this is a good explanation, I will do some exercises tomorrow.

  • @khushboobaheti2571
    @khushboobaheti25713 жыл бұрын

    Great Explanation, Thanks!!

  • @jyotikumarpoddar8048
    @jyotikumarpoddar80484 жыл бұрын

    Crystal clear explanation 👍

  • @alpavaidya412
    @alpavaidya4124 жыл бұрын

    I could listen to your explanations all day...u make it so easy to understand...u deserve many more subscribers

  • @DefogTech

    @DefogTech

    4 жыл бұрын

    Thank you so much for the kind words!

  • @cseshivaprasad1985
    @cseshivaprasad19855 жыл бұрын

    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 ?

  • @jsaimanohar
    @jsaimanohar Жыл бұрын

    Really great work man!

  • @MissGaijin
    @MissGaijin2 жыл бұрын

    great video, great explanation, great example!

  • @pbgkhy
    @pbgkhy Жыл бұрын

    Superb explanation

  • @himanshujoshi9
    @himanshujoshi93 жыл бұрын

    Great Videos! Every time u say "Task" I drank a shot. I passed out by the end.

  • @ayusharora8141
    @ayusharora81412 жыл бұрын

    Very well explained. Thanks !

  • @adriancontreras7691
    @adriancontreras76912 жыл бұрын

    great job man, best explanation ever! thanks you so much!

  • @peeyar2000
    @peeyar20005 жыл бұрын

    Great tutorial. Thanks buddy.

  • @david3979
    @david39792 жыл бұрын

    Thank you for the time and effort!

  • @rohitkumar-pr9ox
    @rohitkumar-pr9ox2 жыл бұрын

    Thanks for explaining in such a great way

  • @pdteach
    @pdteach2 жыл бұрын

    Thank you for such a informative video

  • @ramjeecusat
    @ramjeecusat3 ай бұрын

    Awesome video. Thank you.

  • @TheHarpanOnly
    @TheHarpanOnly4 жыл бұрын

    Very clear explanation. Thanks a lot.

  • @wwhill8033
    @wwhill80335 жыл бұрын

    Great explanation, thanks.

  • @manomitmitra6903
    @manomitmitra69032 жыл бұрын

    Beautiful. "Possibly Asynchronous", I have never heard anyone said that. 👍

  • @corabora6644
    @corabora66445 жыл бұрын

    VVN video...thanks !!

  • @renatogonzalez7691
    @renatogonzalez76913 жыл бұрын

    Awesome tutorial! Thank you!

  • @gogulamsrinivas6499
    @gogulamsrinivas649914 күн бұрын

    Great Explaination!!!

  • @maheshtolani7876
    @maheshtolani78764 жыл бұрын

    Awesome Explanation ...

  • @BharCode09
    @BharCode094 жыл бұрын

    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!

  • @alekhyaarani9506
    @alekhyaarani95064 жыл бұрын

    Awesome Expplanation

  • @AakashMishra21
    @AakashMishra214 жыл бұрын

    This is too good! Thank you.

  • @edarasudhakar8654
    @edarasudhakar8654 Жыл бұрын

    Amazing explanation

  • @parmanugaming284
    @parmanugaming2845 жыл бұрын

    Excellent work. Please do a tutorial on RX java as well

  • @rohitnegi5197
    @rohitnegi51972 жыл бұрын

    Thank u so much. Great learning.

Келесі