Async Python Mastery (Paperback)
Malte Eisenberg
Sold by CitiRetail, Stevenage, United Kingdom
AbeBooks Seller since 29 June 2022
New - Soft cover
Condition: New
Ships from United Kingdom to U.S.A.
Quantity: 1 available
Add to basketSold by CitiRetail, Stevenage, United Kingdom
AbeBooks Seller since 29 June 2022
Condition: New
Quantity: 1 available
Add to basketPaperback. Stop Letting Your Python Apps Wait Around. Make Them Fly.Your web scraper takes hours to crawl thousands of URLs. Your API server handles requests one at a time while users sit watching loading spinners. Your data pipeline processes records sequentially, wasting precious wall-clock time on the network.You've heard async programming could fix all of this. You've seen the async and await keywords. But the explanations either skip the fundamentals you actually need or drown you in low-level event-loop theory you'll never use.Async Python Mastery is the practical, no-magic guide that takes you from confused to confident.What You'll BuildFastAPI services that serve hundreds of concurrent requests on a single coreWeb scrapers that fetch thousands of pages in seconds, not hoursDatabase layers using async SQLAlchemy, asyncpg, and Motor that don't block on every queryProduction systems with proper timeouts, retries, circuit breakers, and graceful shutdownReal-world applications that mix async, threads, and processes intelligently What Makes This Book DifferentBuilt around real production code. Every example targets Python 3.11+ and uses modern patterns: asyncio.TaskGroup, asyncio.timeout(), FastAPI's lifespan context manager, and redis.asyncio. No deprecated APIs. No tutorial-grade fragments that fall over in production.Honest about trade-offs. You'll learn when async is the wrong choice. When threading wins. When multiprocessing is your only option. The book includes a Decision Matrix you'll come back to whenever you're starting a new project.Code-heavy, jargon-light. Every concept is grounded in code you can run. Every chapter ends with Quick Reference tables, Action Steps, and a "Coming Up" preview so you always know where you are.Inside You'll MasterHow the asyncio event loop actually schedules your tasks (and why blocking it kills performance)Coroutines, tasks, and the modern structured concurrency patterns from Python 3.11+Building production-grade async APIs with FastAPI, including lifespan management and dependency injectionAsync database operations with connection pooling, transactions, and N+1 query avoidanceHigh-throughput web scraping with semaphore-based rate limiting and exponential backoffReal-world patterns: aggregating multiple APIs, streaming responses, WebSockets, cachingConcurrency pitfalls: race conditions, missing awaits, session leaks, and the bugs type checkers can catchChoosing between async, threading, and multiprocessing for any workloadProduction deployment: Uvicorn workers, monitoring with Sentry, structured logging, graceful shutdown, Docker, and Nginx configuration Who This Book Is ForIntermediate Python developers who can write clean synchronous code but feel lost the moment async enters the picture. You don't need prior async experience-just comfort with Python fundamentals: functions, classes, decorators, exception handling, and the standard library.What You Get10 focused chapters across 200+ pages. Two appendices with quick-reference patterns and a common-patterns library. Real case studies drawn from production systems (composite, with the names changed but the bugs and trade-offs preserved). Code examples tested on Python 3.11 and 3.12.Stop fighting your code. Start writing Python that scales. This item is printed on demand. Shipping may be from our UK warehouse or from our Australian or US warehouses, depending on stock availability.
Seller Inventory # 9798195243739
Your web scraper takes hours to crawl thousands of URLs. Your API server handles requests one at a time while users sit watching loading spinners. Your data pipeline processes records sequentially, wasting precious wall-clock time on the network.
You've heard async programming could fix all of this. You've seen the async and await keywords. But the explanations either skip the fundamentals you actually need or drown you in low-level event-loop theory you'll never use.
Async Python Mastery is the practical, no-magic guide that takes you from confused to confident.
What You'll BuildBuilt around real production code. Every example targets Python 3.11+ and uses modern patterns: asyncio.TaskGroup, asyncio.timeout(), FastAPI's lifespan context manager, and redis.asyncio. No deprecated APIs. No tutorial-grade fragments that fall over in production.
Honest about trade-offs. You'll learn when async is the wrong choice. When threading wins. When multiprocessing is your only option. The book includes a Decision Matrix you'll come back to whenever you're starting a new project.
Code-heavy, jargon-light. Every concept is grounded in code you can run. Every chapter ends with Quick Reference tables, Action Steps, and a "Coming Up" preview so you always know where you are.
Inside You'll MasterIntermediate Python developers who can write clean synchronous code but feel lost the moment async enters the picture. You don't need prior async experience—just comfort with Python fundamentals: functions, classes, decorators, exception handling, and the standard library.
What You Get10 focused chapters across 200+ pages. Two appendices with quick-reference patterns and a common-patterns library. Real case studies drawn from production systems (composite, with the names changed but the bugs and trade-offs preserved). Code examples tested on Python 3.11 and 3.12.
Stop fighting your code. Start writing Python that scales.
"About this title" may belong to another edition of this title.
Orders can be returned within 30 days of receipt.
If you are a consumer you can withdraw from the contract in accordance with the following. Consumer means any natural person who is acting for purposes which are outside his trade, business, craft or profession.
Information regarding the right of withdrawal
Statutory right to withdraw
You have the right to withdraw from this contract within 14 days without giving any reason.
The withdrawal period will expire after 14 days from the day on which you acquire, or a third party other than the carrier and indicated by you acquires, physical possession of the last good or the last lot or piece.
To exercise the right of withdrawal, electronically fill in and submit a clear statement on our website, under "My Purchases" in "My Account". We will communicate to you an acknowledgement of receipt of such a withdrawal on a durable medium (e.g. by e-mail) without delay.
To meet the withdrawal deadline, it is sufficient for you to send your communication concerning your exercise of the right of withdrawal before the withdrawal period has expired.
Effects of withdrawal
If you withdraw from this contract, we will reimburse to you all payments received from you, including the costs of delivery (except for the supplementary costs arising if you chose a type of delivery other than the least expensive type of standard delivery offered by us).
We may make a deduction from the reimbursement for loss in value of any goods supplied, if the loss is the result of unnecessary handling by you.
We will make the reimbursement without undue delay, and not later than 14 days after the day on which we are informed about your decision to withdraw from this contract.
We will make the reimbursement using the same means of payment as you used for the initial transaction, unless you have expressly agreed otherwise; in any event, you will not incur any fees as a result of such reimbursement.
We may withhold reimbursement until we have received the goods back, or you have supplied evidence of having sent back the goods, whichever is the earliest.
You shall send back the goods or hand them over to CitiRetail, Stevenage, United Kingdom, without undue delay and in any event not later than 14 days from the day on which you communicate your withdrawal from this contract to us. The deadline is met if you send back the goods before the period of 14 days has expired. You will have to bear the direct cost of returning the goods. You are only liable for any diminished value of the goods resulting from the handling other than what is necessary to establish the nature, characteristics and functioning of the goods.
Exceptions to the right of withdrawal
The right of withdrawal does not apply to:
Please note that titles are dispatched from our US, Canadian or Australian warehouses. Delivery times specified in shipping terms. Orders ship within 2 business days. Delivery to your door then takes 7-14 days.
| Order quantity | 7 to 60 business days | 7 to 14 business days |
|---|---|---|
| First item | £ 37.00 | £ 37.00 |
Delivery times are set by sellers and vary by carrier and location. Orders passing through Customs may face delays and buyers are responsible for any associated duties or fees. Sellers may contact you regarding additional charges to cover any increased costs to ship your items.