About this item
Highlights
- Strategies, best practices, and patterns that will help you design resilient microservices architecture and streamline your API integrations.
- About the Author: José Antonio Haro Peralta is a full-stack software consultant specializing in Python and DevOps.
- 440 Pages
- Computers + Internet, Web
Description
About the Book
Tips, best practices, and handy Python features for designing better microservices architecture and streamlining API integrations. Microservice APIs in Python teaches you practical techniques for designing successful microservices with APIs that are easy to understand, consume, and maintain. Inside you'll learn strategies for successful API integrations, how to avoid tight coupling, implement services with clear boundaries, manage cloud deployments, and handle microservices security.
In Microservice APIs in Python, you'll learn:
- Service decomposition strategies for microservices
- Documentation-driven development for APIs
- Swagger/OpenAPI specification for REST APIs and Schema Definition Language for GraphQL APIs
- Service implementation patterns for loosely coupled components
- Security and authentication strategies
- Deploying and operating microservices in the cloud
- Building microservices with Flask and other frameworks
Book Synopsis
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 microservicesDocumentation-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. Th is 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 About the reader
For developers familiar with the basics of web development. Examples are in Python. About the author
José Haro Peralta is a consultant, author, and instructor. He's also the founder of microapis.io. 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
From the Back Cover
Microservice APIs in Python shares successful strategies and techniques for designing Microservices systems, with a particular emphasis on creating easy-to-consume APIs. You'll benefit from author Jose Haro Peralta's years of experience experimenting with microservices architecture, dodging pitfalls and learning from mistakes he's made.
This practical guide focuses on implementation over philosophizing and has just enough theory to get you started. You'll quickly go hands on designing the architecture for a microservices platform, produce standard specifications for REST and GraphQL APIs, and bake in authentication features to keep your APIs secure. Written in a framework-agnostic manner, its universal principles of API and microservices design can easily be applied to your favorite stack and toolset.
Review Quotes
"Read this book now. It will change your mind about how to architect your software and services!" Stuart Woodward
"A thorough introduction to the concept of developing microservice APIs with Python." Rodney Weis
"The Author has done an excellent job in explaining key concepts." Manish Jain
"There are many pitfalls with microservices, and this book will provide you with all the knowledge you need to be properly prepared to create your first one!" Pierre-Michel Ansel
"Before you start coding for your microservice please read this book once, irrespective of your programming language." Debmalya Jash
"A roundhouse kick for all aspects regarding APIs and python." Björn Neuhaus
"A very thorough discussion of the considerations that are involved in developing microservice APIs with Python." Rodney Weis
"I really like both the breadth and depth of the content. It is exciting to see an entire book which focuses upon Python as a back-end component--for which I see a natural fit." Bryan Miller
"A great book for Python developers to understand how to implement APIs using web frameworks." Sambasiva Andaluri
"I genuinely feel smarter for having read this book and knowing that I can refer to it when I make my next design." Stuart Woodward
About the Author
José Antonio Haro Peralta is a full-stack software consultant specializing in Python and DevOps. He has worked in different industries, including IoT, financial services and retail, helping clients tackle varied problems including migrating legacy code to Python, migrating on-premise software to the Cloud, and migrating monoliths to microservices architectures.