Microservice APIs: Using Python, Flask, Fastapi, Openapi and More

Peralta, Jose Haro

  • 出版商: Manning
  • 出版日期: 2023-01-12
  • 定價: $2,160
  • 售價: 9.5$2,052
  • 語言: 英文
  • 頁數: 440
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1617298417
  • ISBN-13: 9781617298417
  • 相關分類: Microservices 微服務FlaskPython
  • 立即出貨 (庫存 < 4)

相關主題

商品描述

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整合。

在《微服務API》一書中,您將學到以下內容:
- 微服務的服務分解策略
- 基於文檔的API開發
- 設計REST和GraphQL API的最佳實踐
- 使用OpenAPI規範(前身為Swagger)記錄REST API
- 使用Schema Definition Language記錄GraphQL API
- 使用Flask、FastAPI、Ariadne等框架構建微服務API
- 面向鬆散耦合服務的服務實現模式
- 使用基於屬性的測試驗證API,以及使用schemathesis和Dredd等自動化API測試框架
- 使用OAuth和OpenID Connect(OIDC)為微服務API添加身份驗證和授權
- 使用Docker和Kubernetes在AWS上部署和運營微服務

《微服務API》將教授您設計強大的微服務和易於理解、使用和維護的API的實用技巧。作者José Haro Peralta多年來在微服務架構方面的實踐經驗將使您受益,他避免了一些陷阱並從自己的錯誤中學習。本書提供了交付成功的API整合、實現具有清晰邊界的服務、管理雲端部署和處理微服務安全性的策略。本書以框架無關的方式撰寫,其通用原則可以輕鬆應用於您喜歡的堆棧和工具組。

購買印刷版書籍將包含Manning Publications提供的PDF、Kindle和ePub格式的免費電子書。

關於技術:
乾淨、清晰的API對於微服務應用的成功至關重要。設計良好的API可以實現服務之間可靠的整合,並有助於簡化維護、擴展和重新設計。本書將教授您設計、構建和部署有效的REST和GraphQL微服務API所需的模式、協議和策略。

關於本書:
《微服務API》匯集了創建和構建易於使用的微服務應用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

目錄大綱(中文翻譯)

目錄
第一部分 介紹微服務API
1 什麼是微服務API?
2 基本的API實作
3 設計微服務

第二部分 設計和建構REST API
4 REST API設計原則
5 使用OpenAPI文件化REST API
6 使用Python建構REST API
7 微服務的服務實作模式

第三部分 設計和建構GraphQL API
8 設計GraphQL API
9 使用GraphQL API
10 使用Python建構GraphQL API

第四部分 保護、測試和部署微服務API
11 API授權和驗證
12 測試和驗證API
13 使用Docker容器化微服務API
14 使用Kubernetes部署微服務API