I haven't seen any other tutorial that has described this with such simplicity and beauty!! Really great work man!
@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
@sekharsamanta62668 ай бұрын
The most practical video I've ever seen on CompletableFuture
@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
@Javavidz2 жыл бұрын
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.
@balakrishnajangita66385 жыл бұрын
I don't have words to describe you boss awsome bro
@heshamosman97524 жыл бұрын
Whenever I want to remember something about java concurrency, I go and watch your videos, Great job
@solorankerone2 жыл бұрын
came back it to again after few years. still blows my mind how simply OP has explained the concepts.
@kunalrai75773 жыл бұрын
Your explanations are truly amazing and crystal clear, hats off and thanks a lot for such a great content.
@dhaanaanjaay4 ай бұрын
why this channel stopped. This is the best source for concurrency topics.
@asashish9052 жыл бұрын
Whenever I think of concurrency, I know which YT channel to look up. 🙂❤
@ndk8111 Жыл бұрын
Thank you for the session. A few questions please: ONE - what if instead of creating a loop of 1:100 (i) you fetched 100 product ids, how would you revise your code to process 100 orders in parallel? TWO : what if you needed a receipt at the end of each order processing (success or failure) , how would you aggregate results of each thread without blocking and print the final 100 line status receipt from main thread?
@AbhijeetMuneshwar3 ай бұрын
This is 1 video which explained me Future vs Callable Future clearly out of many other videos
@MukeshShah-lj4th Жыл бұрын
Sir your explaination is awesome. I haven't see this type of deep explaination from other tutorials
@pankajgupta47404 жыл бұрын
Terse, succinct, precise, informative, amazing, clear, .... running out of words to describe. Thank you so much for the video series
@drakezen6 жыл бұрын
Would be great if you had a series on reactive programming. Good complement to your discussion on completablefutures
@TheHarpanOnly4 жыл бұрын
I do agree. You have very good approach in teaching other.
@surajsingh-vu5oc3 жыл бұрын
Please make video on reactive programming
@sushmithashenoy75813 ай бұрын
Beautifully explained. You make everything very simple yet covering all thats relevant to the context. Please keep up the good work that benefits millions like us.
@krishandeo40703 жыл бұрын
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.
@AbhijeetMuneshwar3 ай бұрын
This video has shown me true power of CompletableFuture
@danielgyrtes63704 жыл бұрын
Watch it twice guys, after second time everything is clear. Thanks for the video!
@davesachin1048 Жыл бұрын
Thanks.. you really made this complex thing easy!!!
@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.👍
@gersonadr2 Жыл бұрын
Finally I understood! Thank you!!
@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....
@aryansharma6725 Жыл бұрын
Such great understanding, I have become a fan. How did you learnt about all these ,you prefer documentation or books or videos? Knowing the answer to this will help me hit the foundational part missing in my learning. Great video though.
@manishmanghwani7313 жыл бұрын
The way you explain complex things in simple flow with sharp voice makes it impossible to take break from learning :) Great work Sir!
@ismile47Ай бұрын
Hi Sir, Your videos are more informative and upto the point. I am not sure why now days there no new videos or topic not getting upload. Please continue with atleast 6months 1 topic
@shivaliraina30383 жыл бұрын
i can't think of a better explanation than this . Amazingly explained. thank you
@ramt1792 жыл бұрын
Crystal clear. You are really have the knack of teaching
@nileshdasarwad16684 жыл бұрын
By watching this I have become a big fan of your tutorial thanks lot ..
@shwetapriyadarshani197 Жыл бұрын
Too concise and crisp 👍
@PujaSingh-qg5ln2 жыл бұрын
Very nicely explained. Finally got clear on the concept of CompletableFuture. Thanks for this video.
@DurgaShiva7574 Жыл бұрын
salute you from heart.. no words i have !
@karankanojiya76722 жыл бұрын
Teaching is an art and you have mastered it . Respect ++ Sir !
@bandisruthi68773 жыл бұрын
Really nice 👌.. I have never seen this type of videos related to concurrent package...Awesome explanation with simple examples ...tq so much....
@vijaykumarreddyt3287 Жыл бұрын
You are doing Great service, Dude
@anandashekhar9908 Жыл бұрын
Do you have any video tutorial about reactive framework in Java please (Extension RX Java)? If yes please kindly share the link.
@RaviBoyina Жыл бұрын
super precise and super cool..thanks to you sir.
@hareeshjp2 жыл бұрын
Really really superb explanation of complex topic to understand easy.
@woshinidayeeee3 жыл бұрын
The thread pool and tasks graph is really nice.
@spidy27004 жыл бұрын
If only everything was explained with an example like you did, we would never not understand anything.
@HighlifeC Жыл бұрын
I am interested to smash the like button..in a for loop 100 times in async mode :)
@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.
@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!
@DefogTech2 жыл бұрын
Thank you for the kind words Priyank!
@KundanRoy5 жыл бұрын
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 ..
@hyperborean724 жыл бұрын
Hello, thank you for the great tutorial. Did I understand right that in your example of single order processing the tasks submitted to ExecutorService are blocking to each other though each one is performed in a separate thread? if I'm correct I was wondering why did you use ExecutorService for single order processing if single order processing is sequential by its nature. And the problem is how to fire several separate order processings - not to separate different steps of the same order processing?
@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.
@Namrata7662 жыл бұрын
Really simple and informative. Thanks for this video. I got to know all that I needed to know about CompletableFuture from here.
@alpavaidya4124 жыл бұрын
I could listen to your explanations all day...u make it so easy to understand...u deserve many more subscribers
@DefogTech4 жыл бұрын
Thank you so much for the kind words!
@tristanmoller94982 жыл бұрын
Best explanation I have encountered, thanks so much!
@mayankpant5471 Жыл бұрын
who is this guy ? I have seen very few people in internet explain java topics with such simplicity and cohesion
@lings6284 жыл бұрын
Fantastic job man! God bless you. Please do a video on RxJava. Nobody will be able to explain it like you do.
@manomitmitra69032 жыл бұрын
Beautiful. "Possibly Asynchronous", I have never heard anyone said that. 👍
@virendrakhade126 жыл бұрын
Very nice explanation, thanks a lot
@DefogTech6 жыл бұрын
You're welcome!
@sivaramakrishnakv3 жыл бұрын
Very composed and clear explanation with practical examples. Great work!!
@pbgkhy Жыл бұрын
Superb explanation
@Chronosulph Жыл бұрын
@15:07 creating a threadpool for every task seems like a overkill . Can we not create threadpool outside of loop it might reduce overhead of 100 threadpools
@praveensisodia80553 жыл бұрын
Absolutely brilliant !! I have seen many videos on completableFuture , but this was the best one. what clarity man. Brilliant !!
@jsaimanohar Жыл бұрын
Really great work man!
@AshishRohillax Жыл бұрын
Brilliant explanation mate.❤
@RahulKumar-j9y6p Жыл бұрын
liked the detailing
@ntonZZ5 жыл бұрын
Dude, where were you all this time? videos are precise, exact and crisp.
@rajeshg35702 жыл бұрын
Beautiful explanation on this concept. I've a question here - Do we have any specific advantage if we use two thread pools instead of one? I mean to ask what are the practical scenarios to use more than one thread pool ?
@cseshivaprasad19856 жыл бұрын
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 ?
@vinaypandey55993 жыл бұрын
You are awesome! Please keep posting videos don't stop. No one explained threads the way you do..
@MakeItStik4 жыл бұрын
Another beautiful and clearly explained video :) Haven't seen any new videos from you :( Please continue making such videos, it really helps.
@omerchannel3 жыл бұрын
simple, easy, to the point, really excellent
@rohannayak49795 жыл бұрын
Awesome explanation Sir. Why are there 20+ down votes....?
@murrayKorir2 жыл бұрын
Very very awesome. I now fully understand.
@dhruvgupta19934 жыл бұрын
You have really explained it in a proper manner and very easy way. Thank you!!
@asankasiriwardena3383 Жыл бұрын
Wow superb explanation ..!
@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
@curriedagain Жыл бұрын
Very nice!
@SreeAn4 жыл бұрын
You deserve more subscribers and views. Very clear and crisp and to the point.
@pramodkumar-fo5sy3 жыл бұрын
such a amazing teacher, hats off dear!!!
@gargsuraj125 ай бұрын
Have to say, very well explained. Keep creating the good work.💪
@karanvatwani90773 жыл бұрын
Very well explained. One doubt i have, suppose if we have one executor service and we have Future.submit(task) which is performing some DB fetch or list operation and when we do future.get() with timeout overloaded method so it is blocking the thread and giving Timeout Exception. We are passing 120 sec time out limit in get() method. So how does CompletebaleFuture.suuplyAsync() and CompletableFuture.complete() will help us here?
@sathishrajasekar11553 жыл бұрын
Good Explanation on Completable Future
@SunnyKumar-ud9gp3 ай бұрын
Please please continue video making😭😭..it's a GOLD
@gkcs4 жыл бұрын
10:47 I got unsettled watching those lambdas not being converted to method references :P Thanks for the great video Deepak!
@B-Billy4 жыл бұрын
@Gourav are you a java developer? :)
@upeshsai28044 жыл бұрын
Wow it's soo good to see you here Gaurav ! It's like when both of my gurus meet :D
@marlonemoreira34604 жыл бұрын
Ra
@ms_thesingh78943 жыл бұрын
By voice it looks like Gaurav and Deepak are same :-)
@chetanmishra70093 жыл бұрын
@@ms_thesingh7894 gangadhar(#guru_ji) hi shaktimaan hai
@mahmoudezzeldin32655 жыл бұрын
great video. i am seeing this in December 2019, go a head. u have agreat future in education because u r an awesome teacher. u explain stuff like a pro
@biswaranjan845 жыл бұрын
Best Explanation ever which i find. Just one question in my mind - Can the same functionality be achieved by CompletionService as well ?
@PA-vf5st3 жыл бұрын
Very well explained, You have long way to go....Subscribed already n waiting for other video’s....Thank You...
@raghavprasad2773 жыл бұрын
Thank you so much for the explanation. Very well explained.
@no_more_free_nicks4 жыл бұрын
Thanks this is a good explanation, I will do some exercises tomorrow.
@giriNITT4 жыл бұрын
Thank you for helping me to understand the future concepts and tidy up. I especially like the way you lined the problems with blocking calls and then completable futures. That will make a really big difference when i will use it.
@rohitkumar-pr9ox3 жыл бұрын
Thanks for explaining in such a great way
@kayeshparvez3 жыл бұрын
Great video. Thanks for explaining nicely
@MegaSriku3 жыл бұрын
A great video that I came across to understand CompletableFuture. Keep it up man.
@unsaturated8482 Жыл бұрын
excellent.
@HarishKumar-yh3tz3 жыл бұрын
Nice explanation. Very clear and the recording was also crisp
@pranabkumarsahoo24905 жыл бұрын
Very very clear explained......thanks a lot
@jamesteh28472 жыл бұрын
Great, clear explanation. Thank you!
@divyamahesh90322 жыл бұрын
Awesome video with the perfect usecase
@mjsprasad93964 жыл бұрын
It's great. Question: 1) Can we execute a threads like a Cron Job? Ex: Suppose execute the 5 thread from main method for specific time and period.
@Luk3Stein4 жыл бұрын
Check out ScheduledExecutorService
@pdteach2 жыл бұрын
Thank you for such a informative video
@suhassuvvi57774 жыл бұрын
Great explaination. Also could you please explain how completable future works internally
@adriancontreras76912 жыл бұрын
great job man, best explanation ever! thanks you so much!
@NitishRajSrivastava4 жыл бұрын
Brilliant explanation of the concept. Thanks !!
@amitsinha39443 жыл бұрын
Beautifully explained. Have one confusion though. Would request you to clear that. I tried below piece of code to get complete understanding. What i was expecting is all threads to complete except the one for which i purposefully slept thread for 5 seconds. for(int i=0;i"").thenAccept((o)->{ if(val==5){ try(){ Thread.sleep(5000); }catch(InterruptedException e){ } } System.out.println(o+"-printed-"+val) }) } However, i saw o/p like this which caused the confusion amit-printed-0 amit-printed-1 amit-printed-2 amit-printed-3 amit-printed-4 waited for 5 seconds and then printed.. amit-printed-5 amit-printed-6 amit-printed-7 amit-printed-8 amit-printed-9 I thought no thread will be blocked if any one cause delay. In order to fix that i had to provide a seperate threadpool like below ExecutorService executorService =Executors.newCachedThreadPool(); CompletableFuture.supplyAsync(()->"",executorService).thenAccept((o)->{... Can you please clear this confusion.