Summary
Asynchronous programming can provide functionalities that complement the process of efficiently facilitating communication channels. Together with the aiohttp
module, asyncio
offers efficiency and flexibility regarding client-side communication processes. The aiofiles
module, which can work in conjunction with the other two asynchronous programming modules, can also help to facilitate asynchronous file reading and writing.
We have now explored three of the biggest, most important topics in concurrent programming: threading, multiprocessing, and asynchronous programming. We have shown how each of them can be applied to various programming problems and provide significant improvements in speed. The code we developed in this chapter serves as a base that may be easily modified to build more complex applications.
In the next chapter of this book, we will start to discuss problems that concurrent programming commonly poses to developers and programmers, starting with deadlocks...