February 2019
Intermediate to advanced
672 pages
16h 50m
English
You have learned that asynchronous programming, and asyncio specifically, can drastically improve the execution of your communication channels. You have also seen the specific methods that you will need to use when implementing an asynchronous communication channel. Before we dive into a working example in Python, let us briefly discuss the big picture of what we are trying to accomplish – or, in other words, the general structure of our program.
As mentioned earlier, we need to implement a subclass of asyncio.Protocol to specify the underlying organization of our communication channel. Again, there is an event loop at the heart of each asynchronous program, so we also need to create a server outside ...