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.
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

- 440 pages
- English
- ePUB (mobile friendly)
- Available on iOS & Android
eBook - ePub
About this book
Trusted by 375,005 students
Access to over 1 million titles for a fair monthly price.
Study more efficiently using our study tools.
Information
Table of contents
- inside front cover
- Microservice APIs
- Copyright
- dedication
- contents
- front matter
- 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
- Appendix A. Types of web APIs and protocols
- Appendix B. Managing an API’s life cycle
- Appendix C. API authorization using an identity provider
- index
- inside back cover
Frequently asked questions
Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn how to download books offline
Perlego offers two plans: Essential and Complete
- Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
- Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 990+ topics, we’ve got you covered! Learn about our mission
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more about Read Aloud
Yes! You can use the Perlego app on both iOS and Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Yes, you can access Microservice APIs by Jose Haro Peralta in PDF and/or ePUB format, as well as other popular books in Computer Science & Programming in Python. We have over one million books available in our catalogue for you to explore.