Python Concurrency with asyncio

Douban
Python Concurrency with asyncio

Entre ou cadastre-se para escrever uma análise ou adicionar este item à sua coleção.

ISBN: 9781617298660
autor: Matthew Fowler
casa editorial: Manning Publications
data de publicação: 2021 -5
preço: USD 59.99
número de páginas: 325

/ 10

0 avaliações

Avaliações insuficientes
Emprestar ou Comprar

Matthew Fowler   

visão geral

Python Concurrency with asyncio teaches you to write concurrent Python code that will boost the speed of your apps and APIs. The book demystifies asynchio's unique single-threaded concurrency model, giving you a behind-the-scenes understanding of the library and its new async/await syntax. Hard-to-grok concurrency topics are broken down into simple flowcharts so you can easily see how your coroutines and tasks are running.
You'll learn to apply asyncio to solve common performance problems, such as batch database jobs, slow web servers, and scaling microservices. All examples you'll build are designed to be usable in the real world, including a clever command line SQL client that can run multiple slow queries at the same time. By the time you're done, you'll even be able to combine asyncio with traditional multiprocessing and multithreading techniques for huge improvements to performance.
what's inside
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

comentários
Análises
notas