توضیحات
Discover the secrets of building Python microservices using the FastAPI framework
Key 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, youll be able to put your knowledge to work with this practical guide to building seamlessly manageable and fast microservices.
Youll begin by understanding the background of FastAPI and learning how to install, configure, and use FastAPI to decompose business units. Youll 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, youll 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
————————————————————–
ترجمه ماشینی :
کشف اسرار ساخت میکروسرویس های پایتون با استفاده از چارچوب FastAPI
ویژگی های کلیدی
- مرجعی ارائه می دهد که شامل تعاریف، تصاویر، تجزیه و تحلیل مقایسه ای و اجرای برنامه های دنیای واقعی است
- مفاهیم، جزئیات اصلی، و ادغام پیشرفته و موضوعات مرتبط با طراحی
- زمینه، قالبهای برنامه، پیشنهادات، و بینشهایی را ارائه میدهد که برای پروژههای واقعی مفید هستند<. /span>
شرح کتاب
FastAPI یک چارچوب مبتنی بر ASGI (رابط دروازه سرور ناهمزمان) است که میتواند به ساخت کمک کند. میکروسرویس های مدرن، قابل مدیریت و سریع. این چارچوب مبتنی بر ASGI به دلیل پلتفرم هسته ناهمزمان خود، بهترین گزینه را در مورد عملکرد، قابلیت اطمینان و مقیاس پذیری نسبت به Django و Flask مبتنی بر WSGI ارائه می دهد. هنگام کار با میکروسرویسهای Python، Flask، و Django، میتوانید دانش خود را با این راهنمای عملی برای ساختن میکروسرویسهای قابل مدیریت و سریع به کار ببرید.
با درک این موضوع شروع میکنید. پس زمینه FastAPI و یادگیری نحوه نصب، پیکربندی و استفاده از FastAPI برای تجزیه واحدهای تجاری. شما یک چارچوب منحصر به فرد و ناهمزمان REST API را بررسی خواهید کرد که می تواند گزینه بهتری را در مورد ساخت میکروسرویس ها ارائه دهد. در مرحله بعد، این کتاب شما را در مورد نحوه اعمال و ترجمه الگوهای طراحی میکروسرویس در ساخت برنامه های کاربردی میکروسرویس های مختلف و API های RESTful با استفاده از چارچوب FastAPI راهنمایی می کند.
تا پایان این کتاب میکروسرویس ها ، می توانید با استفاده از چارچوب FastAPI میکروسرویس ها و اجزای آنها را یاد بگیرید، بسازید، استقرار دهید، آزمایش کنید و آزمایش کنید.
آنچه خواهید آموخت
- درک، جهتدهی و پیادهسازی REST API با استفاده از مؤلفههای اساسی چارچوب FastAPI
- ساخت سرویسهای REST ناهمزمان و همزمان با استفاده از ماژول pydantic داخلی و پشتیبانی asyncio
- ایجاد برنامههای میکروسرویس در مقیاس کوچک و بزرگ با استفاده از ویژگی های پشتیبانی شده توسط FastAPI
- با استفاده از چارچوب برنامه های رویداد محور و پیام محور بسازید
- انجام محاسبات عددی و نمادین با FastAPI< /span>
< li>ایجاد یک لایه داده ناهمزمان و همزمان با هر دو پایگاه داده رابطه ای و NoSQL

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