Asynchronous Programming in Python

  • ناشرPackt
  • سال انتشار2025
  • ویرایش1
  • زبانEnglish
  • تعداد صفحات203
  • شابک9781836646617

شناسه محصول: SKY-PYT-CODE-A6518 دسته: , ,
برند: Packt

محدوده قیمت: 542,000 تومان تا 1,327,000 تومان

20 نفر در حال مشاهده این محصول هستند!

تحویل اکسپرس

حمل رایگان سفارشات بالای 1 میلیون تومان

پرداخت امن

امکان پرداخت انلاین یا پرداخت حضروی درب منزل

ضمانت اصالت کالا

امکان پرداخت انلاین یا پرداخت حضروی درب منزل

7 روز گارانتی بازگشت وجه

امکان پرداخت انلاین یا پرداخت حضروی درب منزل

📘 یه سفر عملی از اصول تا کاربردهای برنامه‌نویسی ناهمگام (Async) در پایتون، وسط دنیای واقعی و فناوری‌های امروزی

✨ ویژگی‌های کلیدی

• درک اصول و تئوری‌های اصلی برنامه‌نویسی async در پایتون

• سنجش تأثیر تکنیک‌های async در سناریوهای واقعی و عملی

• استفاده از الگوهای async در طراحی نرم‌افزار و معماری‌های داده‌محور

📙 توضیحات کتاب

🚀 برنامه‌نویسی ناهمگام یکی از مؤثرترین—و البته یکی از بدفهمیده‌شده‌ترین—روش‌ها برای ساخت سیستم‌های سریع، مقیاس‌پذیر و واکنش‌گرا در پایتونه. Async می‌تونه عملکرد و بهره‌وری رو چند برابر کنه، اما اگر بدون شناخت درست سراغش بری، ممکنه نتیجه بشه طراحی شکننده و دیباگ‌های اعصاب‌خردکن.

📚 این کتاب یه مسیر ساختارمند بهت می‌ده تا async رو اصولی وارد پروژه‌هات کنی. اول مدل ذهنی لازم برای تفاوت بین اجرای همگام (sync) و ناهمگام (async) رو می‌سازه و بعد async رو کنار استراتژی‌های دیگهٔ هم‌روندی مثل multithreading و multiprocessing قرار می‌ده تا ببینی کِی باید سراغ کدوم بری.

🔧 بعدش، میری سراغ ابزارها و تکنیک‌های اصلی async در پایتون.

📏 در ادامه یاد میگیری چطور اثر async رو در سناریوهای واقعی اندازه بگیری، چطور پروفایل و دیباگ async انجام بدی، و چطور با متریک‌های واقعی عملکرد رو ارزیابی کنی.

فصل‌های آخر هم کاربرد async رو در سیستم‌های ابری مثل فریم‌ورک‌های وب، دیتابیس‌ها و ابزارهای دیتا پایپلاین پوشش میده.

این کتاب مخصوص توسعه‌دهنده‌هایی طراحی شده که می‌خوان async رو با اعتمادبه‌نفس و بدون سردرگمی وارد کارشون کنن—ترکیبی از مثال‌های واقعی و توضیحات بنیادی برای نوشتن کد پایتونی سریع، تمیز و قابل نگهداری.

✨ چه چیزهایی یاد می‌گیری

• استفاده از generatorها، coroutineها و async/await برای ساخت فانکشن‌های مقیاس‌پذیر

• کار با event loop برای مدیریت concurrency و هماهنگ‌سازی اجرای async

• مقایسهٔ مدل‌های مختلف concurrency و انتخاب استراتژی مناسب

• بهینه‌سازی برنامه‌های I/O-محور برای افزایش توان عملیاتی و بهره‌وری

• ساخت سرویس‌های async با APIهای واقعی و کتابخانه‌های پرکاربرد پایتون

• استفاده از structured concurrency و الگوهای طراحی برای معماری async تمیزتر

• تست و دیباگ کدهای async برای اطمینان از پایداری و قابلیت اعتماد

👤 این کتاب برای چه کسانی است؟

این کتاب برای توسعه‌دهنده‌های پایتون طراحی شده که می‌خوان مدل برنامه‌نویسی async رو در توسعهٔ اپلیکیشن‌ها، تحلیل داده و سیستم‌های ارکستریشن به‌کار ببرن.

توسعه‌دهنده‌های جونیور، دیتا انجینیرها و تک‌لیـدها هم با مثال‌های طراحی معماری async حسابی ازش بهره می‌برن.

📑 فهرست مطالب

۱. پارادایم‌های برنامه‌نویسی همگام و ناهمگام

۲. هم‌روندی و موازی‌سازی در پایتون

۳. جنریتورها و کوروتین‌ها

۴. پیاده‌سازی کوروتین‌ها با Greenletها، Asyncio و Trio

۵. بنچمارک: پیاده‌سازی‌های Sync در برابر Async

۶. الگوهای طراحی ناهمگام

۷. برنامه‌نویسی ناهمگام در Django، FastAPI و Litestar

۸. دسترسی دادهٔ ناهمگام

۹. تسک‌های async با Airflow

۱۰. Jupyter Notebookهای ناهمگام

🧑‍💻 دربارهٔ نویسنده

نیکولاس بوهورکِس یک معمار نرم‌افزار و کارآفرینه با مدرک کارشناسی ارشد در «علم داده برای سیستم‌های اقتصادی پیچیده». از ۹ سالگی برنامه‌نویسی رو شروع کرده و در طول مسیر کاریش تیم‌های متعددی رو در زبان‌ها و پلتفرم‌های مختلف رهبری کرده.

به‌عنوان یک بنیان‌گذار، سه شرکت موفق در قارهٔ آمریکا راه‌اندازی کرده. علاقهٔ همیشگی‌اش به نوشتن باعث شده کارهای اخیرش روی سیستم‌های توزیع‌شدهٔ پیچیده متمرکز بشه—و این‌که چطور برنامه‌نویسی async در پایتون می‌تونه هزینهٔ کل مالکیت سیستم‌های ابری رو کاهش بده.

Take a practical journey through the core principles, concepts, and applications of asynchronous programming in Python across real-world environments and technologies.

Key Features

  • Understand core principles and theory behind async programming in Python
  • Measure the impact of async techniques in practical, real-world use cases
  • Apply async patterns in software design and data-oriented architectures

Book Description

Asynchronous programming is one of the most effective but often misunderstood techniques for building fast, scalable, and responsive systems in Python. While it can significantly improve performance, efficiency, and sustainability, using async without a clear understanding of its trade-offs can lead to fragile designs and hard-to-debug issues.

This book offers a structured approach to applying asynchronous programming in Python. It begins with a conceptual framework to help you distinguish between synchronous and asynchronous execution models, and shows how async relates to other concurrency strategies such as multithreading and multiprocessing. From there, you will explore the core tools available for building async applications in Python.

You will also learn how to measure the impact of async programming in practical scenarios, profile and debug asynchronous code, and evaluate performance improvements using real-world metrics. The final chapters focus on applying async techniques to common cloud-based systems, such as web frameworks, database interactions, and data-pipelines tools.

Designed for developers looking to apply async programming with confidence, this book blends real-world examples with core concepts to help you write efficient, maintainable Python code.

What you will learn

  • Use generators, coroutines and async/await to build scalable Python functions
  • Explore event loops to manage concurrency and orchestrate async flow
  • Compare concurrency models to choose the right async strategy
  • Optimize I/O-intensive programs to improve system throughput and efficiency
  • Build async services using real-world APIs and popular Python libraries
  • Apply structured concurrency and design patterns for cleaner async design
  • Test and debug async Python code to ensure reliability and stability

Who this book is for

This book will help Python developers who want to understand and apply the asynchronous programming model in application development, data analysis, and orchestration scenarios. Junior developers, data engineers,, and tech leads will also benefit from the application design examples.

Table of Contents

  1. Synchronous and Asynchronous programming paradigms
  2. Concurrency and Parallelism in Python
  3. Generators and Coroutines
  4. Implementing Coroutines with Greenlets, Asyncio and Trio
  5. Benchmarking: Sync vs Async implementations
  6. Asynchronous Design Patterns
  7. Asynchronous programming in Django, FastAPI and Litestar
  8. Asynchronous data access
  9. Asynchronous tasks with Airflow
  10. Asynchronous Jupyter Notebooks

About the Author

Nicolas Bohorquez is a software architect and entrepreneur with a master’s degree in Data Science for Complex Economic Systems. He began programming at the age of nine, and has since led teams across multiple languages and platforms. As a founder, he has launched three successful tech companies across the Americas. Passionate about writing for many years, Nicolas has focused his recent work on complex distributed systems, exploring how asynchronous programming in Python can be effectively applied in real-world scenarios to lower total cost of cloud solutions.

ناشرPackt
ویرایش1
زبانEnglish
سال انتشار2025
شابک9781836646617
تعداد صفحات203
قطعB5
کیفیتاورجینال انتشارات
نوع چاپرنگی, سیاه و سفید
نوع جلدجلد سخت, شومیز, طلقی

نقد و بررسی‌ها

هنوز بررسی‌ای ثبت نشده است.

اولین کسی باشید که دیدگاهی می نویسد “Asynchronous Programming in Python”

نشانی ایمیل شما منتشر نخواهد شد. بخش‌های موردنیاز علامت‌گذاری شده‌اند *

محدوده قیمت: 542,000 تومان تا 1,327,000 تومان

محصولات مشابه