Thank you so much for the 10K 🤩Here are few jump codes Synchronous definition: 0:30 Asynchronous definition: 1:25 Synchronous Example: 2:25 Asynchronous Example: 5:30
Thanks for the video Hussein , good video as always , One feedback : i think one element that can be added to bring more clarify to Async call is to add 'what happens' when the async function gets completed ? How does it respond back to the callback and how the user is notified that job of uploading is actually done. i feel , adding this would bring more value to the video.
Thank you for creating this, it's a very simple and straight forward explanation with good example. Constructive feedback: Cut down the beginning and end to 20s rather than (1min +).
Hi Hussein, I have a question please : Which of the following are part of an asynchronous call ? (4 correct answers) 1 - Request submitted 2 - Response submitted 3 - Independent response 4 - Event Notification 5 - Publish/Subscribe Thank for ur answer
Hi Mustafa, That is a confusing question but ill give it a shot Asynchronous call involves making a request (1) receiving a response (3) through an event or callback, (4) I don’t see server submitting a response (2) or public / subscribe (5) part of an asynchronous call. But if I would make a guess Ill pick 2 since you could receive an event when a response is submitted So my answer will be 1, 2, 3, 4
I appreciate your time in trying to explain this topic which is often confused by even some of the more experienced engineers out there. My comment is meant for positive criticism only: Please take your time and enunciate your words better--there is no rush. Sometimes when you say 'ASYNCHRONOUS', it sounds like 'A Synchronous', where the 'A' sounds like the article before the adjective 'Synchronous'.
Lincoln Karim thank you so much for your comment and you are absolutely right, Im trying to get better at speaking slowly and more articulate. Its a struggle. I think Im doing slightly better in my newer videos. Thanks again Lincoln. Let me know what other topics I can do next. Appreciate it Cheers Hussein
I have a question here, In async call you are changing description and title and you are treating it has been successful, but let's assume that call got failed from the service provider , in this case what we showed earlier like successful it is not correct right and assume that I want to change description and title once file uploaded successfully then only I want to change it , in this case async will work out?
Thank you, it's the explanation that i was looking for. I was stuck and wanted to find the concept explained for me. I prefer the asynchronous example. I didn't understand the asynchronous method by the way, You didn't added the V parameters when calling the upload success method.
Hey I am confused that async call uses threading(i know it doesn't but) because for it to callback a success function it needs to work somewhere in the background and how does it show the percentage without creating a thread
Arpit sharma the async call doesn’t have to use another thread, take Javascript for example which is single threaded. It uses an event main loop where one thread is used for all events including awaiting on async result. Its not just busy waiting.. it is doing other things as well. Providing progress is a little different, because the server need to send constant updates to the client (10%, 60% etc. this can be achieved by implementing bidirectional connection like websockets or asynchronous service.. hope that helps :)
Can you please talk on non blocking io vs blocking io ? And how will it affect the server performance based on the use case? io intensive vs cpu intensive...java vs nodejs
swapnil kale not much different its very similar to sync vs async except at io level language decisions matter here This might help Asynchronous vs Multithreading and Multiprocessing Programming (The Main Difference) ua-cam.com/video/0vFgKr5bjWI/v-deo.html
var counter =[1,2,3,4,5,6]: for(var i in counter) { setTimeout(function(i) { console.log(counter[i]) // 1,2,3,4,5,6 },500); } is there any way i can print my counter numbers one by one with delay of 500ms ?
talpatra mammabono thank you , watch my first video ok youtube (sort by date) my english was so bad 4 years ago ... practice makes better, still ways to go
Great explanation!! Thx a lot!!
Synchronized: wait
Asynchronized: do not wait
Thank you so much for the 10K 🤩Here are few jump codes
Synchronous definition: 0:30
Asynchronous definition: 1:25
Synchronous Example: 2:25
Asynchronous Example: 5:30
you are the real MVP
How can synchronous and asynchronous be achieved in the design of operating system?
Very brief in words please.
To sum up in 1 line - For synchronous you gotta wait for your request, for async, you don't need to wait for your request briliant!
that's far most the easiest explanation i found about asynchronous programming
Thanks for the video Hussein , good video as always , One feedback : i think one element that can be added to bring more clarify to Async call is to add 'what happens' when the async function gets completed ? How does it respond back to the callback and how the user is notified that job of uploading is actually done. i feel , adding this would bring more value to the video.
Thank you for creating this, it's a very simple and straight forward explanation with good example. Constructive feedback: Cut down the beginning and end to 20s rather than (1min +).
Thank you so much for watching Erik! Loved your feedback I gotta do better job at quickly jumping into the videos.
Subscribed! I'm an online student getting my BS in IT right now. Thanks for this very helpful explanation!
Ashton Powers amazing! Wish you all the best on your studies and feel free to ask questions here if anything is confusing.. cheers!
@@hnasr
Please help me out with this question.
How can synchronous and asynchronous be achieved in the design of Operating System?
@@hnasr
Please help me out with this question.
How can synchronous and asynchronous be achieved in the design of Operating System?
Hi Hussein, I have a question please :
Which of the following are part of an asynchronous call ? (4 correct answers)
1 - Request submitted
2 - Response submitted
3 - Independent response
4 - Event Notification
5 - Publish/Subscribe
Thank for ur answer
Hi Mustafa, That is a confusing question but ill give it a shot
Asynchronous call involves making a request (1) receiving a response (3) through an event or callback, (4)
I don’t see server submitting a response (2) or public / subscribe (5) part of an asynchronous call. But if I would make a guess Ill pick 2 since you could receive an event when a response is submitted
So my answer will be 1, 2, 3, 4
Hey, just wanted to let u know that the manual subtitles are too early.
Thanks for awesome content :)
Wonderful and very helpful video as always Hussain, lots of love and respect brother 🙏👍
Gonna cry happy tears... 🥺😹
Thanks a lot!!!
Sabrina MIMOUNI 😍
I appreciate your time in trying to explain this topic which is often confused by even some of the more experienced engineers out there. My comment is meant for positive criticism only: Please take your time and enunciate your words better--there is no rush. Sometimes when you say 'ASYNCHRONOUS', it sounds like 'A Synchronous', where the 'A' sounds like the article before the adjective 'Synchronous'.
Lincoln Karim thank you so much for your comment and you are absolutely right, Im trying to get better at speaking slowly and more articulate. Its a struggle. I think Im doing slightly better in my newer videos.
Thanks again Lincoln. Let me know what other topics I can do next. Appreciate it
Cheers
Hussein
I have a question here,
In async call you are changing description and title and you are treating it has been successful, but let's assume that call got failed from the service provider , in this case what we showed earlier like successful it is not correct right and assume that I want to change description and title once file uploaded successfully then only I want to change it , in this case async will work out?
this is explained so well. thnx
Thank you, it's the explanation that i was looking for. I was stuck and wanted to find the concept explained for me. I prefer the asynchronous example. I didn't understand the asynchronous method by the way, You didn't added the V parameters when calling the upload success method.
i watch the entire "adds" as appreciating for the great video!(:
*ads
How can we improve synchronous vertical federated learning algorithms?
the way you explain is amazing
Hey I am confused that async call uses threading(i know it doesn't but) because for it to callback a success function it needs to work somewhere in the background and how does it show the percentage without creating a thread
Arpit sharma the async call doesn’t have to use another thread, take Javascript for example which is single threaded. It uses an event main loop where one thread is used for all events including awaiting on async result. Its not just busy waiting.. it is doing other things as well.
Providing progress is a little different, because the server need to send constant updates to the client (10%, 60% etc. this can be achieved by implementing bidirectional connection like websockets or asynchronous service.. hope that helps :)
Arpit sharma ua-cam.com/video/LMaVIqfb3TQ/v-deo.html
@@hnasr So what I understood is that event loop checks every time it passes the i/o call that it is complete or not
Arpit sharma correct, the event loop checks multiple things and this is one of them. It also calls functions, make callbacks, and do IO as well.
@@hnasr Thanks was really stuck at this!
Awesome work Hussein
Thanks for this video!
What happens if the upstream server is down?
Is Amazon search synchronous or asynchronous?
Can you please talk on non blocking io vs blocking io ? And how will it affect the server performance based on the use case? io intensive vs cpu intensive...java vs nodejs
swapnil kale not much different its very similar to sync vs async except at io level language decisions matter here
This might help
Asynchronous vs Multithreading and Multiprocessing Programming (The Main Difference)
ua-cam.com/video/0vFgKr5bjWI/v-deo.html
Thanks! Short and concise :)
var counter =[1,2,3,4,5,6]:
for(var i in counter) {
setTimeout(function(i) {
console.log(counter[i]) // 1,2,3,4,5,6
},500);
}
is there any way i can print my counter numbers one by one with delay of 500ms ?
Javascript Duniya
function printC(array, currentIndex){
If (currentIndex > 6) return
Console.log(array[currentIndex])
SetTimeout( () => printC( array, currentIndex+1) , 500);
}
printC( [1,2,3,4,5,6], 0);
'searched a lot'
No you're my first stop. =]
Thank you for the upload!
inadaizz haha very happy to help!
Done ✔️ thanks for knowledge 🙏
great video. Very nicely explained!
async is more beneficial, cuz we can execute codes & we don't have to wait for the results. we can test all classes and functions in code
Wow ur just amazing sir... Salute to u.. World wants a good explainer like u
vikas vik's your comment means alot thank you for taking the time and watching :)
thank you for making this video
Very well explained...Thanks
Beautiful👌🏽
thanks brother, this was helpful
Thanks! Glad you enjoyed it :) let me know what other software engineering concepts you would like me to make. Cheers!
thank you, very clear explanation
Yuxiang Zhang thank you for watching 😊
bro your english accent is so good ......
talpatra mammabono thank you , watch my first video ok youtube (sort by date) my english was so bad 4 years ago ... practice makes better, still ways to go
عظيم يا صديقي ..
mohamed saif تسلم عزيزي
Very good explanation with examples😊😊
thanks Anita! glad you enjoy the content
thx for your help i can pass my exams now
Raisul Kibria all the best in your exams! 😊
There's another way you could pronounce Asynchronous, that's ASYNC
Thanks a ton.!!!
Well Explained really helpful Thanks! :)
Jack Dreamer thanks for watching Jack! :)
thanks bro !
very nicely Explained !
Abdul Wahid Pasha thanks! 🙏
Good one!
thanks! this is very helpful
ProoGenji glad I could help :)
Yes
thank u
Good explanation... :-)
Ugh finally not an Indian accent lol
Great
hahahahah You are Awesome
I understand now why PHP sucks.
too wordy... for the content u wanna deliver... U can simply cut into 3 mins....
Yes