Microservice APIs: Using Python, Flask, Fastapi, Openapi and More
暫譯: 微服務 API:使用 Python、Flask、FastAPI、OpenAPI 等技術
Peralta, Jose Haro
- 出版商: Manning
- 出版日期: 2023-01-12
- 售價: $2,150
- 貴賓價: 9.5 折 $2,043
- 語言: 英文
- 頁數: 440
- 裝訂: Quality Paper - also called trade paper
- ISBN: 1617298417
- ISBN-13: 9781617298417
-
相關分類:
Microservices 微服務、Flask、Python
立即出貨 (庫存 < 3)
相關主題
商品描述
Strategies, best practices, and patterns that will help you design resilient microservices architecture and streamline your API integrations.
In Microservice APIs, you'll discover:
- Service decomposition strategies for microservices
- Documentation-driven development for APIs
- Best practices for designing REST and GraphQL APIs
- Documenting REST APIs with the OpenAPI specification (formerly Swagger)
- Documenting GraphQL APIs using the Schema Definition Language
- Building microservices APIs with Flask, FastAPI, Ariadne, and other frameworks
- Service implementation patterns for loosely coupled services
- Property-based testing to validate your APIs, and using automated API testing frameworks like schemathesis and Dredd
- Adding authentication and authorization to your microservice APIs using OAuth and OpenID Connect (OIDC)
- Deploying and operating microservices in AWS with Docker and Kubernetes
Microservice APIs teaches you practical techniques for designing robust microservices with APIs that are easy to understand, consume, and maintain. You'll benefit from author José Haro Peralta's years of experience experimenting with microservices architecture, dodging pitfalls and learning from mistakes he's made. Inside you'll find strategies for delivering successful API integrations, implementing services with clear boundaries, managing cloud deployments, and handling microservices security. Written in a framework-agnostic manner, its universal principles can easily be applied to your favorite stack and toolset.
Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications.
About the technology
Clean, clear APIs are essential to the success of microservice applications. Well-designed APIs enable reliable integrations between services and help simplify maintenance, scaling, and redesigns. This book teaches you the patterns, protocols, and strategies you need to design, build, and deploy effective REST and GraphQL microservices APIs.
About the book
Microservice APIs gathers proven techniques for creating and building easy-to-consume APIs for microservices applications. Rich with proven advice and Python-based examples, this practical book focuses on implementation over philosophy. You'll learn how to build robust microservice APIs, test and protect them, and deploy them to the cloud following principles and patterns that work in any language.
What's inside
- Service decomposition strategies for microservices
- Best practices for designing and building REST and GraphQL APIs
- Service implementation patterns for loosely coupled components
- API authorization with OAuth and OIDC
- Deployments with AWS and Kubernetes
商品描述(中文翻譯)
策略、最佳實踐和模式,將幫助您設計彈性的微服務架構並簡化您的 API 整合。
在《Microservice APIs》中,您將發現:
- 微服務的服務分解策略
- 以文檔為驅動的 API 開發
- 設計 REST 和 GraphQL API 的最佳實踐
- 使用 OpenAPI 規範(前身為 Swagger)來記錄 REST API
- 使用 Schema Definition Language 記錄 GraphQL API
- 使用 Flask、FastAPI、Ariadne 和其他框架構建微服務 API
- 鬆耦合服務的服務實現模式
- 基於屬性的測試來驗證您的 API,並使用自動化 API 測試框架如 schemathesis 和 Dredd
- 使用 OAuth 和 OpenID Connect (OIDC) 為您的微服務 API 添加身份驗證和授權
- 在 AWS 中使用 Docker 和 Kubernetes 部署和運行微服務
《Microservice APIs》教您設計穩健的微服務的實用技術,這些 API 易於理解、使用和維護。您將受益於作者 José Haro Peralta 多年來在微服務架構方面的實驗經驗,避開陷阱並從他所犯的錯誤中學習。在書中,您將找到成功交付 API 整合的策略、實現具有明確邊界的服務、管理雲端部署以及處理微服務安全的技巧。這本書以框架無關的方式撰寫,其普遍原則可以輕鬆應用於您喜愛的技術棧和工具集。
購買印刷版書籍可獲得 Manning Publications 提供的免費 PDF、Kindle 和 ePub 格式電子書。
關於技術
乾淨、清晰的 API 對微服務應用的成功至關重要。設計良好的 API 能夠實現服務之間的可靠整合,並幫助簡化維護、擴展和重新設計。本書教您設計、構建和部署有效的 REST 和 GraphQL 微服務 API 所需的模式、協議和策略。
關於本書
《Microservice APIs》匯集了創建和構建易於使用的微服務應用 API 的經驗技術。這本實用的書籍充滿了經過驗證的建議和基於 Python 的範例,重點在於實施而非哲學。您將學會如何構建穩健的微服務 API,測試和保護它們,並根據在任何語言中有效的原則和模式將其部署到雲端。
內容包括:
- 微服務的服務分解策略
- 設計和構建 REST 和 GraphQL API 的最佳實踐
- 鬆耦合組件的服務實現模式
- 使用 OAuth 和 OIDC 進行 API 授權
- 使用 AWS 和 Kubernetes 進行部署
目錄大綱
Table of Contents
PART 1 INTRODUCING MICROSERVICE APIS
1 What are microservice APIs?
2 A basic API implementation
3 Designing microservices
PART 2 DESIGNING AND BUILDING REST APIS
4 Principles of REST API design
5 Documenting REST APIs with OpenAPI
6 Building REST APIs with Python
7 Service implementation patterns for microservices
PART 3 DESIGNING AND BUILDING GRAPHQL APIS
8 Designing GraphQL APIs
9 Consuming GraphQL APIs
10 Building GraphQL APIs with Python
PART 4 SECURING, TESTING, AND DEPLOYING MICROSERVICE APIS
11 API authorization and authentication
12 Testing and validating APIs
13 Dockerizing microservice APIs
14 Deploying microservice APIs with Kubernetes
目錄大綱(中文翻譯)
Table of Contents
PART 1 INTRODUCING MICROSERVICE APIS
1 What are microservice APIs?
2 A basic API implementation
3 Designing microservices
PART 2 DESIGNING AND BUILDING REST APIS
4 Principles of REST API design
5 Documenting REST APIs with OpenAPI
6 Building REST APIs with Python
7 Service implementation patterns for microservices
PART 3 DESIGNING AND BUILDING GRAPHQL APIS
8 Designing GraphQL APIs
9 Consuming GraphQL APIs
10 Building GraphQL APIs with Python
PART 4 SECURING, TESTING, AND DEPLOYING MICROSERVICE APIS
11 API authorization and authentication
12 Testing and validating APIs
13 Dockerizing microservice APIs
14 Deploying microservice APIs with Kubernetes