Building Python Microservices with FastAPI: Build secure, scalable, and structured Python microservices from design concepts to infrastructure
暫譯: 使用 FastAPI 建立 Python 微服務:從設計概念到基礎設施,構建安全、可擴展且結構化的 Python 微服務

Tragura, Sherwin John C.

相關主題

商品描述

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 Asynchronous Server Gateway Interface (ASGI)-based 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 the 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. After that, this 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 understand, 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 developers, 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.

商品描述(中文翻譯)

探索使用 FastAPI 框架構建 Python 微服務的秘密

主要特點:


  • 提供包含定義、插圖、比較分析和實際應用實現的參考資料

  • 涵蓋概念、核心細節以及進階整合和設計相關主題

  • 提供有助於實際專案的背景、應用範本、建議和見解

書籍描述:
FastAPI 是一個基於非同步伺服器網關介面(ASGI)的框架,可以幫助構建現代、可管理且快速的微服務。由於其非同步核心平台,這個基於 ASGI 的框架在性能、可靠性和可擴展性方面提供了比基於 WSGI 的 Django 和 Flask 更佳的選擇。在使用 Python、Flask 和 Django 微服務時,您將能夠利用這本實用指南,將您的知識應用於構建無縫可管理且快速的微服務。

您將首先了解 FastAPI 的背景,學習如何安裝、配置和使用 FastAPI 來拆解業務單元。您將探索一個獨特的非同步 REST API 框架,這在構建微服務時能提供更好的選擇。之後,本書將指導您如何應用和轉換微服務設計模式,以使用 FastAPI 框架構建各種微服務應用和 RESTful API。

在這本微服務書籍的結尾,您將能夠理解、構建、部署、測試和實驗使用 FastAPI 框架的微服務及其組件。

您將學到的內容:


  • 使用 FastAPI 框架的基本組件理解、定位和實現 REST API

  • 使用內建的 pydantic 模組和 asyncio 支援構建非同步和同步的 REST 服務

  • 使用 FastAPI 支援的功能創建小型和大型微服務應用

  • 使用該框架構建事件驅動和消息驅動的應用

  • 使用關聯式和 NoSQL 數據庫創建非同步和同步數據層

  • 使用 FastAPI 執行數值和符號計算

本書適合誰:
本書適合 Python 網頁開發者、高級 Python 開發者以及使用 Flask 或 Django 的後端開發者,想要學習如何使用 FastAPI 框架實現微服務的讀者。對 REST API 和微服務熟悉的讀者也將從本書中受益。本書的某些部分包含一般概念、過程和指導,對於中級開發者和 Python 愛好者也能有所關聯。