Python Concurrency with Asyncio
Author | : Matthew Fowler |
Publisher | : Simon and Schuster |
Total Pages | : 374 |
Release | : 2022-03 |
ISBN-10 | : 9781617298660 |
ISBN-13 | : 1617298662 |
Rating | : 4/5 (60 Downloads) |
Book excerpt: It's easy to overload standard Python and watch your programs slow to a crawl. The asyncio library was built to solve these problems by making it easy to divide and schedule tasks. It seamlessly handles multiple operations concurrently, leading to apps that are lightning fast and scalable. "Python concurrency with asyncio" introduces asynchronous, parallel, and concurrent programming through hands-on Python examples. Hard-to-grok concurrency topics are broken down into simple flowcharts that make it easy to see how your tasks are running. You'll learn how to overcome the limitations of Python using asyncio to speed up slow web servers and microservices. You'll even combine asyncio with traditional multiprocessing techniques for huge improvements to performance.