Cover of Python Concurrency with asyncio

EPUB · English

Python Concurrency with asyncio

Price and availability

$67.99

Available in: Andorra, Austria, Australia, Belgium, Bulgaria, Canada, Switzerland, Cyprus, Czechia, Germany, Denmark, Estonia, Spain, Finland, France, United Kingdom, Guernsey, Greece, Croatia, Hungary, Ireland, Isle of Man, Iceland, Italy, Jersey, Japan, Liechtenstein, Lithuania, Luxembourg, Latvia, Monaco, Malta, Netherlands, Norway, Poland, Portugal, Romania, Sweden, Slovenia, Slovakia, San Marino, United States, Vatican City, South Africa

Stores: US, UK, Canada, EU, Australia.

Sign in to buy

The price is re-checked by the server before payment.

For personal use under the eBook licence.

Format
EPUB
DRM
Not stated by the publisher
Language
English
Publisher
Manning
Published
15 March 2022
ISBN
9781638357087
Subjects
Programming & scripting languages: general, Programming and scripting languages: general

About this book

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 concurrentlyBuild web APIs and make concurrency web requests with aiohttpRun thousands of SQL queries concurrentlyCreate a map-reduce job that can process gigabytes of data concurrentlyUse threading with asyncio to mix blocking code with asyncio codePython 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.About the technologyIts 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 bookPython 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. Youll learn how to overcome the limitations of Python using asyncio to speed up slow web servers and microservices. Youll even combine asyncio with traditional multiprocessing techniques for huge improvements to performance.What's insideBuild web APIs and make concurrency web requests with aiohttpRun thousands of SQL queries concurrentlyCreate a map-reduce job that can process gigabytes of data concurrentlyUse threading with asyncio to mix blocking code with asyncio codeAbout the readerFor intermediate Python programmers. No previous experience of concurrency required.About the authorMatthew Fowler has over 15 years of software engineering experience in roles from architect to engineering director.Table of Contents1 Getting to know asyncio2 asyncio basics3 A first asyncio application4 Concurrent web requests5 Non-blocking database drivers6 Handling CPU-bound work7 Handling blocking work with threads8 Streams9 Web applications10 Microservices11 Synchronization12 Asynchronous queues13 Managing subprocesses14 Advanced asyncio

Bibliographic data © Gardners Books Ltd.