π Running code synchronously causes delays when waiting for responses from external sources.
π Using async and await allows for more efficient execution of code by not waiting for each response before moving on to the next request.
β±οΈ By making 2500 HTTP requests asynchronously, the code execution time is significantly reduced.
π Using threading with concurrent futures and thread pool executor can speed up processing of multiple URLs.
β© Async and await can significantly reduce the time taken for sending multiple HTTP requests.
π Threading is more suitable for parallel processing, while async and await are ideal for network requests.
π‘ Using async and await allows for faster network requests.
βοΈ To make multiple network requests, create a main function and an extra function to manage and wait for responses.
π Asyncio eliminates wait time in the code by sending out all requests and managing the responses.
π The video demonstrates how to make 2500 HTTP requests in just 2 seconds using async and await.
π‘ By using async and await, multiple requests can be sent simultaneously, reducing the time it takes to retrieve data from a server.
π This approach is useful when repeatedly requesting data from the same server or when needing to visit multiple URLs from different sites.
π This video discusses how to make 2500 HTTP requests in 2 seconds using async & await.
𧩠The speaker provides examples and explains different ways to use async & await.
BAHAS KASUS JESSICA - MIRNA & NETFLIX! | #NERROR Ft. Sarah & Esther Lubis
Rachel Shechtman, STORY at Macy's - New rules of retail | #BBDSummit 2020
Containerizing LLM-Powered Apps: Part 1 of the Chatbot Deployment
ESTUDO DO EFEITO MUTAGΓNICO DA PIRANHEIRA (Piranhae trifoliata) (FINTER 2023)
Zoey + Mia In Minecraft!
Key Elements of A Successful Email Marketing Strategy