The difference between asynchronous and synchronous

_config.yml

I’ll try to explain as simply as I can:

Synchronous Execution

My boss is a busy man. He tells me to write the code. I tell him: Fine. I get started and he’s watching me like a vulture, standing behind me, off my shoulder. I’m like “Dude, WTF: why don’t you go and do something while I finish this?”

he’s like: “No, I”m waiting right here till you finish it off”. This is synchronous.

Asynchronous Execution

The boss tells me to do it, and rather that waiting right there for my work, the boss goes off and does other tasks. When I finish my job I simply report to my boss and say: “I’m DONE!” This is Asynchronous Execution.

…….it really boils down to something as simple as that!

Summary Synchronous: tasks can only run once another is run. Asynchronous: one task is not dependent on another task finishing.

I hope it helps you

Written on December 1, 2016