#promises

Parallelism VS Concurrency

Parallelism VS Concurrency

March 24, 2024 • 3 min read

With JavaScript being a single-threaded language, it never occurred to me how limiting this fundamental flaw was until I kept hearing about how advantageous languages such as Java, Rust and Go handled concurrency. To me, firing off multiple promises in JavaScript was good enough. Not until I experienced limitations around synchronous blocking code in React and how it affected the user's experience. This is when I started to explore why a single-threaded language simply cannot handle parallel processing well.