Async Techniques and Examples in Python Transcripts
Chapter: Welcome to the course
Lecture: Course introduction
0:00 Hello and welcome to Asynchronus
0:02 Techniques and Examples in Python.
0:04 In this course, we're going to explore the entire
0:06 spectrum of asynchronous programming in Python.
0:09 This means threads, this means subprocesses
0:13 the fancy new asyncio and the async and await keywords.
0:17 All of that and much, much more.
0:19 I hope you're excited about digging into it
0:21 because I'm super excited to share it with you.
0:24 Now before we get into the details of what we're going to
0:25 cover, let's talk really briefly about
0:27 what asynchronous programming is.
0:31 If we go and look at Wikipedia it'll say
0:33 asynchrony and computer programming refers the
0:35 occurrence of events independent of the main
0:37 program flow and way of dealing with such events.
0:41 These may be outside events such as the arrival
0:44 of signals or actions started by the program
0:46 without blocking or waiting for results.
0:49 Now what's really important about this statement
0:51 is it doesn't say asynchronous programming is
0:54 you create threads and then you join on them
0:57 or you create other processes and wait for
0:59 them to finish or get back to you.
1:01 It just says stuff happening at the same time.
1:05 So we're going to look at many different ways
1:07 in fact we're going to explore three very
1:09 different approaches that Python can
1:11 take to this: threads, processes, and asyncio.
1:16 We're going to explore more than that of course.
1:18 But there's actually a lot of ways in which
1:19 asynchrony can be achieved in Python and knowing
1:23 when to choose one over the other is super important.
1:25 We're going to talk all about that.