Strategies, best practices, and patterns that will help you design resilient microservices architecture and streamline your API integrations.
In Microservice APIs , you'll
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
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
I wished I had this book when I started my career. I've been working with microservices and APIs for 3 years and I've found a lot of valuable content in this book. It helped me understand how to read and write an OpenAPI specification, how to design a microservices platform, and how to add proper authorization to my APIs. Gosh it even helped me spot API security flaws at my company! I also learned a bunch of cool libraries to build APIs in Python. It's really well written with an easy-to-follow style. The book is also packed with two full chapters that explain how to deploy microservices using Kubernetes - that's among the best and most valuable Kubernetes content I've read. The code examples in GitHub are amazing and really useful. I only wished the author also covered API monitoring and visibility issues, and how to design microservice APIs for scale and reliability, but I guess you can only pack so much into a single book.
Solid book. Lots of practical discussions around architecture, testing, and deployment. I really liked that property-based testing was also included, which I thought was only possible in a functional language.
Two things I would have liked is some sort of discussion around auto dependency injection/resolution because manually doing dependency injection is tedious at times. The other is the deployment in EKS should have included multi-service deployment so that we could see services talking to each other.
But overall it covered a lot of ground, and resources pointed out to read on specific topics like architectural patterns, container networking etc. and if you are willing to spend some time you will find this book worth your time.
I'm not sure who this book is for. The book title is about an advanced topic, microservices, which is not something a beginner needs to undertake. But the book's content is for someone developing their first web app. It also doesn't touch on any of the real challenges of using microservices like data consistency, or asynchronous communication.
I was also disappointed by the amount of material on FastAPI as well. The author doesn't go into much detail on implementing anything beyond the simplest API endpoint, (e.g, no async requests, caching, background tasks) and even uses Flask for one of the services.
В целом, вполне достойное пособие по основам микросервисов. Вначале дается общая теория. А затем автор показывает разные подходы к построению api. Не всё пригодится на практике, но прочитать и ознакомиться было вполне познавательно. Глава про кубернетис оказалась весьма скомканной, так как невозможно в столь узкий объем впихнуть массу новой информации, не потеряв при этом четкость и понятность изложения.