#100DaysOfWeb in Python Transcripts
Chapter: Days 21-24: Async Flask APIs with Quart
Lecture: Introducing asynchronous web programming

Login or purchase this course to watch this video and the rest of the course contents.
0:00 Welcome to your next four days
0:01 and oh my gosh, this is an amazing topic.
0:06 We're going to talk about bringing
0:07 asynchronous programming to the web
0:11 to web servers, and these web frameworks like Flask.
0:14 So why do we care about async programming?
0:16 Well it lets us take the same amount of hardware
0:19 and the same amount of processing power and CPUs
0:21 and memory and all of that kind of stuff
0:23 and massively scale it up.
0:26 You'll see we're going to take a simple API
0:28 that we're going to create and we're going to first write it
0:31 in Flask and then we're going to convert it
0:33 to this other framework called Quart
0:35 which allows us to do async programming
0:38 effectively in the Flask API.
0:41 When we do that we'll see that the performance
0:44 should be quite a bit better.
0:47 Asynchronous programming is fairly advanced
0:49 but it's an interesting topic in that modern Python
0:53 and by modern I mean Python 3.5 or higher
0:57 makes writing this type
0:58 of asynchronous programs ridiculously easy.
1:01 It's almost exactly the same as writing regular programs.
1:05 The synchronized kind that just happen in order.
1:09 The language will really help us out.
1:10 So actually programming the async version
1:13 of our website, no problem.
1:15 You're going to see it's quite easy, actually.
1:17 However, actually understanding what's happening
1:20 understanding the power and what's going on
1:23 with all of this asynchronous stuff
1:25 well that is much harder.
1:27 So we're going to take this topic in layers.
1:30 We're going to start out by just talking
1:32 about regular asynchronous programming.
1:34 Forget the web.
1:36 What does asynchronous programming look like in Python?
1:38 Why does it matter?
1:40 Once we understand that we're going to create
1:41 our website in Flask.
1:42 Something you've already studied
1:44 and already have experience with.
1:45 Finally, we're then going to convert to this framework
1:50 called Quart, apply our asynchronous ideas
1:52 and get better performance for exactly the same hardware.
1:56 So I hope you're excited, I'm thrilled about this topic
1:59 and I'm looking forward to sharing it with you.
2:01 So let's get to it.