
۴۴٬۰۰۰تومان
نوع فایل دانلود: EPUB
پس از خرید، یک فایل EPUB دریافت میکنید.
این فایل با Calibre، Apple Books و سایر کتابخوانهای دیجیتال مناسب است.
این کتاب رازهای ساخت میکروسرویسهای پایتون با فریمورک FastAPI را کشف میکند.
ویژگیهای کلیدی
این منبع، شامل تعاریف، تصویرها، تحلیل تطبیقی و پیادهسازی برنامههای واقعی در دنیای کاربردی است.
مفاهیم، جزئیات اصلی و مباحث پیشرفته مربوط به یکپارچهسازی و موضوعات مرتبط با طراحی را آموزش میدهد.
همچنین ایدهها، قالبهای آمادهی برنامهها، پیشنهادها و بینشهایی ارائه میکند که برای پروژههای واقعی مفید هستند.
توضیح کتاب
FastAPI یک فریمورک مبتنی بر ASGI (Asynchronous Server Gateway Interface) است که میتواند به ساخت میکروسرویسهای مدرن، قابلمدیریت و سریع کمک کند. چون هستهی این فریمورک بر پایهی ناهمزمان است، در مقایسه با فریمورکهای WSGI-based مثل Django و Flask، بهترین گزینه را از نظر عملکرد، قابلیت اطمینان و مقیاسپذیری فراهم میکند.
وقتی با میکروسرویسهای پایتون و فریمورکهای Flask و Django کار میکنید، میتوانید دانش خود را با راهنمایی عملی برای ساخت میکروسرویسهایی که هم مدیریتشان آسان است و هم سریع اجرا میشوند، به کار بگیرید.
کتاب با بررسی پیشینهی FastAPI شروع میکند و سپس یاد میگیرید چطور FastAPI را نصب، پیکربندی و از آن برای تجزیهی واحدهای کسبوکار استفاده کنید. بعد سراغ یک چارچوب منحصربهفرد و ناهمزمان برای REST API میروید که میتواند گزینهای بهتر برای ساخت میکروسرویسها فراهم کند.
در ادامه، کتاب شما را راهنمایی میکند تا الگوهای طراحی میکروسرویسها را در ساخت انواع میکروسرویسهای کاربردی و APIهای RESTful با استفاده از FastAPI به کار بگیرید و آنها را پیادهسازی کنید.
در پایانِ این کتابِ میکروسرویسها، خواهید توانست میکروسرویسها و اجزای آنها را با FastAPI یاد بگیرید، بسازید، مستقر کنید، تست کنید و روی آنها آزمایش انجام دهید.
آنچه خواهید آموخت
- درک، جهتدهی و پیادهسازی REST APIها با کمک اجزای پایهی فریمورک FastAPI
- ساخت سرویسهای ناهمزمان و همچنین همزمانِ REST با استفاده از ماژول داخلی pydantic و پشتیبانی asyncio
- ساخت اپلیکیشنهای میکروسرویس در مقیاس کوچک و بزرگ با قابلیتهایی که FastAPI پشتیبانی میکند
- ساخت برنامههای رویدادمحور (event-driven) و پیاممحور (message-driven) با استفاده از چارچوب
- ایجاد یک لایهی دادهی ناهمزمان و همزمان با پایگاههای دادهی رابطهای و NoSQL
- انجام محاسبات عددی و نمادین با FastAPI
این کتاب برای چه کسانی است
این کتاب برای توسعهدهندگان وبِ پایتون، کاربران پیشرفتهی پایتون و توسعهدهندگان بکاند که با Flask یا Django کار کردهاند نوشته شده است و میخواهند یاد بگیرند چگونه از فریمورک FastAPI برای پیادهسازی میکروسرویسها استفاده کنند.
کسانی که با REST API و میکروسرویسها آشنایی دارند نیز از این کتاب بهرهمند میشوند.
بخشی از کتاب مفاهیم، فرایندها و دستورالعملهای کلی را پوشش میدهد که توسعهدهندگان سطح متوسط و علاقهمندان به پایتون میتوانند با آن ارتباط برقرار کنند.
فهرست مطالب
- راهاندازی FastAPI برای شروع
- بررسی اجزای اصلی
- استفاده از Dependency Injection برای مدیریت اشیا
- ساخت اپلیکیشن میکروسرویس
- اتصال به یک پایگاه دادهی رابطهای
- استفاده از MongoDB برای ساخت لایهی دادهی NoSQL
- ایمنسازی اپلیکیشن میکروسرویس
- برنامهنویسی ناهمزمان، رویدادمحور و پیاممحور
- مدیریت، پایش و تست میکروسرویسها
- حل مسائل عددی و نمادین
- استفاده از Docker، Kubernetes، AWS، NGINX و دیگر راهکارهای زیرساختی
Discover the secrets of building Python microservices using the FastAPI frameworkKey Features Provides a reference that contains definitions, illustrations, comparative analysis, and the implementation of real-world apps Covers concepts, core details, and advanced integration and design-related topics Imparts context, app templates, suggestions, and insights that are helpful to actual projects Book Description FastAPI is an ASGI-based (Asynchronous Server Gateway Interface) framework that can help build modern, manageable, and fast microservices. Because of its asynchronous core platform, this ASGI-based framework provides the best option when it comes to performance, reliability, and scalability over WSGI-based Django and Flask. When working with Python, Flask, and Django microservices, you’ll be able to put your knowledge to work with this practical guide to building seamlessly manageable and fast microservices.You’ll begin by understanding the background of FastAPI and learning how to install, configure, and use FastAPI to decompose business units. You’ll explore a unique and asynchronous REST API framework that can provide a better option when it comes to building microservices. Next, the book will guide you on how to apply and translate microservices design patterns in building various microservices applications and RESTful APIs using the FastAPI framework.By the end of this microservices book, you’ll be able to learn, build, deploy, test, and experiment with microservices and their components using the FastAPI framework.What you will learn Understand, orient, and implement REST APIs using the basic components of the FastAPI framework Build asynchronous as well as synchronous REST services using the built-in pydantic module and asyncio support Create small-scale and large-scale microservices applications using features supported by FastAPI Build event-driven and message-driven applications using the framework Create an asynchronous and synchronous data layer with both relational and NoSQL databases Perform numerical and symbolic computations with FastAPI Who This Book Is For This book is for Python web developers, advanced Python users, and backend developers using Flask or Django who want to learn how to use the FastAPI framework to implement microservices. Readers familiar with the REST API and microservices will also benefit from this book. Some parts of the book contain general concepts, processes, and instructions that intermediate-level developers and Python enthusiasts can relate to as well.Table of Contents Setting up FastAPI for Starters Exploring the Core Components Using Dependency Injection to Manage Objects Building the Microservices Application Connecting to a Relational Database Using MongoDB to Build NoSQL Data Layer Securing the Microservice Application Asynchronous, Event-Driven, and Message-Driven Programming Managing, Monitoring and Testing the Microservices Solving Numerical and Symbolic Problems Using Docker, Kubernetes, AWS, NGINX and Other Infrastructure Solutions