Concurrent Python with asyncio
eBook - ePub

Concurrent Python with asyncio

Build Real-World Async Apps with Coroutines and FastAPI

  1. English
  2. ePUB (mobile friendly)
  3. Available on iOS & Android
eBook - ePub

Concurrent Python with asyncio

Build Real-World Async Apps with Coroutines and FastAPI

About this book

Are you ready to write fast, scalable Python that handles thousands of connections without breaking a sweat? Concurrent Python with asyncio is your hands-on guide to mastering asynchronous programming through clear, worked examples. Whether you're a beginner or a pro, you'll build real I/O-bound apps that truly scale. Start with coroutines and tasks, then dive into event loops, futures, and synchronisation primitives. Learn to design non-blocking network clients and servers, handle timeouts and cancellation, and integrate asyncio with databases and web frameworks. Every concept is reinforced with practical code you can run and adapt. By the end, you'll confidently build high-performance web scrapers, chat servers, and API gateways. You'll understand the asyncio ecosystem, including aiohttp, asyncpg, and uvloop, and know when to use threads vs. coroutines. This book doesn't just teach syntax—it teaches you how to think in async. Packed with diagrams, debugging tips, and performance benchmarks, Concurrent Python with asyncio is the definitive resource for any Python developer who wants to level up. Compare with [placeholder] and [placeholder] to see why this book stands out. This hands-on Python guide is written to be used at the keyboard: every concept is paired with something you can run, adapt, and keep. You move from first principles to real, working results, with the common errors and fixes called out along the way so you are never stuck for long.

Trusted by 375,005 students

Access to over 1.5 million titles for a fair monthly price.

Study more efficiently using our study tools.

Information

Publisher
Chiify
Year
2026
eBook ISBN
9798259604841

Table of contents

  1. Concurrent Python with asyncio
  2. Concurrent Python with asyncio
  3. Preface
  4. Chapter 1 — The Blocking Problem and Your First Async Crawl
  5. Chapter 3 — Coroutines: The Heart of Cooperative Multitasking
  6. Chapter 4 — The Event Loop: Managing the Concurrency Orchestra
  7. Chapter 5 — Async/Await in Practice: Writing Readable Concurrent Code
  8. Chapter 6 — Tasks and Futures: Orchestrating Concurrent Fetches
  9. Chapter 7 — Asyncio Streams and Network I/O
  10. Chapter 8 — Synchronization Primitives: Lock, Queue, Semaphore
  11. Chapter 9 — Producer-Consumer Architecture with Async Queues
  12. Chapter 10 — Asyncio vs. Threading vs. Multiprocessing
  13. Chapter 11 — Error Handling, Logging, and Resilience
  14. Chapter 12 — Testing Async Code
  15. Chapter 13 — Scaling with Async Web Frameworks (FastAPI)
  16. Chapter 14 — Structured Concurrency with TaskGroup (Python 3.11+)
  17. Chapter 15 — Advanced Patterns: Async Generators and Context Managers
  18. Chapter 16 — Real-Time Monitoring with WebSockets
  19. Chapter 17 — Production Deployment: Packaging and Performance Tuning
  20. Chapter 18 — Future Directions: Asyncio in Data Science and AI
  21. About the Author

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn how to download books offline
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.5M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1.5 million books across 990+ topics, we’ve got you covered! Learn about our mission
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more about Read Aloud
Yes! You can use the Perlego app on both iOS and Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Yes, you can access Concurrent Python with asyncio by Lena Iqbal in PDF and/or ePUB format, as well as other popular books in Computer Science & Parallel Programming. We have over 1.5 million books available in our catalogue for you to explore.