Understanding Python: Asyncio

preview_player
Показать описание
In this video, I give an introduction to asyncio and asynchronous concepts.
Included in the lesson are conversions from threading, real-world HTTP requests, and even how to call synchronous code asynchronously.
As always, if you have any questions or suggestions for future videos, please leave a comment down below.

Timelapse music: 失望した by Eva
Outro music: Elix by Synthness
Рекомендации по теме
Комментарии
Автор

Great video! once again, you made learning easy and soothing! the Bob Ross of programming!

dragonkat
Автор

This is the best asyncio introduction video I have watched.

ruiwang
Автор

What is the best way, to go around the external API limitations? I want to get all data from the API, yet it yields only 10 data point, and a nextPageToken. So I tried to flood it with multiple calls, but it simply stooped sending data for a while. So I guess, the way to go is to do the initial check for 10-30 data point, and pass the flow of the program two ways, one for interaction with the user, and displaying those first data point, and second, which will continue gathering the data in the background.

For now Im using asyncio and aiohttp, but now I wonder, should I use threading as well, as a way to split those tasks?

PixelMotionHD
Автор

Do you have a video specifically on aiohttp and uvicorn?

default_youtube_profile
Автор

Wow!! Another great tutorial Jake. I am really enjoying your teaching style, the choice of content/examples and the difficulty level you choose of your examples.

I do have a query about this, though. I am not sure but guessing that, async operations run on a single process, like threading. So, suppose if I have a piece of program that downloads data from a website using multiple request which is IO intensive, cleans that data using advanced feature engineering techniques which are CPU intensive, and then stores that cleaned data into a DB, which again will be a IO task, then I would be needing asyncio, threading and multiprocessing in one piece of code. Is there some literature like blogs, books, video tutorials or articles you could direct me towards that could help when building such software as there is going to be a great degree of overlap and interaction between all three packages.

Also, is the assumption that async operations run on a single process, correct? Can I make them run in parallel in multiple processes?
I know a google search would do the trick, but I am guessing you will share much better resources than what google would.

But again, excellent tutorial!!

Cheers and Kudos!

cheesecake_mafia