Parallel | Concurrent |
---|---|
Literally at the same time | Little slices, one after the other |
Multithreading | Async await |
Hire more employees | Buy more washing machines |
I/O | CPU |
---|---|
Calling external service | Internal work |
Async await helps here | Parallelization helps here |
Like the washing machine | Like folding clothes |
Calling DB, API, disk | Looping, calculation |