Python Concurrency with Asyncio

Python Concurrency with Asyncio
Author :
Publisher : Simon and Schuster
Total Pages : 374
Release :
ISBN-10 : 9781617298660
ISBN-13 : 1617298662
Rating : 4/5 (60 Downloads)

Book Synopsis Python Concurrency with Asyncio by : Matthew Fowler

Download or read book Python Concurrency with Asyncio written by Matthew Fowler and published by Simon and Schuster. This book was released on 2022-03 with total page 374 pages. Available in PDF, EPUB and Kindle. Book excerpt: Learn how to speed up slow Python code with concurrent programming and the cutting-edge asyncio library. Use coroutines and tasks alongside async/await syntax to run code concurrently Build web APIs and make concurrency web requests with aiohttp Run thousands of SQL queries concurrently Create a map-reduce job that can process gigabytes of data concurrently Use threading with asyncio to mix blocking code with asyncio code Python is flexible, versatile, and easy to learn. It can also be very slow compared to lower-level languages. Python Concurrency with asyncio teaches you how to boost Python's performance by applying a variety of concurrency techniques. You'll learn how the complex-but-powerful asyncio library can achieve concurrency with just a single thread and use asyncio's APIs to run multiple web requests and database queries simultaneously. The book covers using asyncio with the entire Python concurrency landscape, including multiprocessing and multithreading. Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications. About the technology It’s easy to overload standard Python and watch your programs slow to a crawl. Th e 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. About the book 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. What's inside Build web APIs and make concurrency web requests with aiohttp Run thousands of SQL queries concurrently Create a map-reduce job that can process gigabytes of data concurrently Use threading with asyncio to mix blocking code with asyncio code About the reader For intermediate Python programmers. No previous experience of concurrency required. About the author Matthew Fowler has over 15 years of software engineering experience in roles from architect to engineering director. Table of Contents 1 Getting to know asyncio 2 asyncio basics 3 A first asyncio application 4 Concurrent web requests 5 Non-blocking database drivers 6 Handling CPU-bound work 7 Handling blocking work with threads 8 Streams 9 Web applications 10 Microservices 11 Synchronization 12 Asynchronous queues 13 Managing subprocesses 14 Advanced asyncio


Python Concurrency with Asyncio Related Books

Python Concurrency with Asyncio
Language: en
Pages: 374
Authors: Matthew Fowler
Categories: Computers
Type: BOOK - Published: 2022-03 - Publisher: Simon and Schuster

DOWNLOAD EBOOK

Learn how to speed up slow Python code with concurrent programming and the cutting-edge asyncio library. Use coroutines and tasks alongside async/await syntax t
Using Asyncio in Python
Language: en
Pages: 166
Authors: Caleb Hattingh
Categories: Computers
Type: BOOK - Published: 2020-01-30 - Publisher: O'Reilly Media

DOWNLOAD EBOOK

If you’re among the Python developers put off by asyncio’s complexity, it’s time to take another look. Asyncio is complicated because it aims to solve pro
Mastering Concurrency in Python
Language: en
Pages: 433
Authors: Quan Nguyen
Categories: Computers
Type: BOOK - Published: 2018-11-27 - Publisher: Packt Publishing Ltd

DOWNLOAD EBOOK

Immerse yourself in the world of Python concurrency and tackle the most complex concurrent programming problems Key FeaturesExplore the core syntaxes, language
Learning Concurrency in Python
Language: en
Pages: 352
Authors: Elliot Forbes
Categories: Computers
Type: BOOK - Published: 2017-08-16 - Publisher: Packt Publishing Ltd

DOWNLOAD EBOOK

Practically and deeply understand concurrency in Python to write efficient programs About This Book Build highly efficient, robust, and concurrent applications
Advanced Guide to Python 3 Programming
Language: en
Pages: 638
Authors: John Hunt
Categories: Computers
Type: BOOK - Published: 2023-11-02 - Publisher: Springer Nature

DOWNLOAD EBOOK

Advanced Guide to Python 3 Programming 2nd Edition delves deeply into a host of subjects that you need to understand if you are to develop sophisticated real-wo