Tips For A Successful Concurrent Requests With Async/Await And Promise.all

Written by brennon | Published 2021/05/23
Tech Story Tags: javascript | concurrency | lightning-web-components | programming | code | web | web-development | hackernoon-top-story | web-monetization

TLDR In this article, I'll talk about concurrency vs parallelism and why we will be targeting parallelism in this article. I'll create an example project using Salesforce's Lightning Web Components where I will build an art gallery using Harvard's Art Gallery API. I want to talk about how to use async and await to implement a parallel algorithm in serial and how to make it work in parallel by using Promise.all. The easiest way to make this algorithm faster is to remove the word "promise" before the request.via the TL;DR App

no story

Written by brennon | Programmer by day, author by night.
Published by HackerNoon on 2021/05/23