Ebook850 pages7 hours
Microservice APIs: Using Python, Flask, FastAPI, OpenAPI and more
Rating: 0 out of 5 stars
()
About this ebook
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
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
Author
Jose Haro Peralta
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.
Related to Microservice APIs
Related ebooks
AI as a Service: Serverless machine learning with AWS Rating: 1 out of 5 stars1/5Azure Infrastructure as Code: With ARM templates and Bicep Rating: 0 out of 5 stars0 ratingsDesigning APIs with Swagger and OpenAPI Rating: 0 out of 5 stars0 ratingsGetting MEAN with Mongo, Express, Angular, and Node Rating: 5 out of 5 stars5/5Irresistible APIs: Designing web APIs that developers will love Rating: 0 out of 5 stars0 ratingsServerless Architectures on AWS: With examples using AWS Lambda Rating: 0 out of 5 stars0 ratingsFlask By Example Rating: 0 out of 5 stars0 ratingsAmazon Web Services in Action Rating: 0 out of 5 stars0 ratingsParallel and High Performance Computing Rating: 0 out of 5 stars0 ratingsBootstrapping Microservices with Docker, Kubernetes, and Terraform: A project-based guide Rating: 3 out of 5 stars3/5Spark in Action: Covers Apache Spark 3 with Examples in Java, Python, and Scala Rating: 0 out of 5 stars0 ratingsThe Design of Web APIs Rating: 0 out of 5 stars0 ratingsNode.js in Practice Rating: 0 out of 5 stars0 ratingsAzure Storage, Streaming, and Batch Analytics: A guide for data engineers Rating: 0 out of 5 stars0 ratingsAWS Lambda in Action: Event-driven serverless applications Rating: 0 out of 5 stars0 ratingsFull Stack GraphQL Applications: With React, Node.js, and Neo4j Rating: 0 out of 5 stars0 ratingsLearn Amazon Web Services in a Month of Lunches Rating: 0 out of 5 stars0 ratingsSoftware Mistakes and Tradeoffs: How to make good programming decisions Rating: 0 out of 5 stars0 ratingsGraphQL in Action Rating: 2 out of 5 stars2/5Building Web Services with Microsoft Azure Rating: 0 out of 5 stars0 ratingsMastering DynamoDB Rating: 0 out of 5 stars0 ratingsLearning Azure DocumentDB Rating: 0 out of 5 stars0 ratingsMaking Sense of NoSQL: A guide for managers and the rest of us Rating: 0 out of 5 stars0 ratingsMastering Large Datasets with Python: Parallelize and Distribute Your Python Code Rating: 0 out of 5 stars0 ratingsMastering Flask Rating: 0 out of 5 stars0 ratingsNeo4j High Performance Rating: 0 out of 5 stars0 ratingsMastering Elasticsearch - Second Edition Rating: 0 out of 5 stars0 ratingsTerraform for Developers Rating: 0 out of 5 stars0 ratings
Internet & Web For You
The Mega Box: The Ultimate Guide to the Best Free Resources on the Internet Rating: 4 out of 5 stars4/5Beginner's Guide To Starting An Etsy Print-On-Demand Shop Rating: 0 out of 5 stars0 ratingsMore Porn - Faster!: 50 Tips & Tools for Faster and More Efficient Porn Browsing Rating: 3 out of 5 stars3/5Coding For Dummies Rating: 5 out of 5 stars5/5Cybersecurity For Dummies Rating: 4 out of 5 stars4/5How To Start A Podcast Rating: 4 out of 5 stars4/5The Digital Marketing Handbook: A Step-By-Step Guide to Creating Websites That Sell Rating: 5 out of 5 stars5/5Remote/WebCam Notarization : Basic Understanding Rating: 3 out of 5 stars3/5Grokking Algorithms: An illustrated guide for programmers and other curious people Rating: 4 out of 5 stars4/5The $1,000,000 Web Designer Guide: A Practical Guide for Wealth and Freedom as an Online Freelancer Rating: 5 out of 5 stars5/5Hacking : The Ultimate Comprehensive Step-By-Step Guide to the Basics of Ethical Hacking Rating: 5 out of 5 stars5/5Coding All-in-One For Dummies Rating: 4 out of 5 stars4/5Social Engineering: The Science of Human Hacking Rating: 3 out of 5 stars3/5Six Figure Blogging Blueprint Rating: 5 out of 5 stars5/5The Internet Is Not What You Think It Is: A History, a Philosophy, a Warning Rating: 4 out of 5 stars4/5The Logo Brainstorm Book: A Comprehensive Guide for Exploring Design Directions Rating: 4 out of 5 stars4/5Wireless Hacking 101 Rating: 4 out of 5 stars4/5Stop Asking Questions: How to Lead High-Impact Interviews and Learn Anything from Anyone Rating: 5 out of 5 stars5/5The Beginner's Affiliate Marketing Blueprint Rating: 4 out of 5 stars4/5Get Rich or Lie Trying: Ambition and Deceit in the New Influencer Economy Rating: 0 out of 5 stars0 ratingsHow To Make Money Blogging: How I Replaced My Day-Job With My Blog and How You Can Start A Blog Today Rating: 4 out of 5 stars4/5How to Be Invisible: Protect Your Home, Your Children, Your Assets, and Your Life Rating: 4 out of 5 stars4/5Learn JavaScript in 24 Hours Rating: 3 out of 5 stars3/5Podcasting For Dummies Rating: 4 out of 5 stars4/5
Reviews for Microservice APIs
Rating: 0 out of 5 stars
0 ratings
0 ratings0 reviews
Book preview
Microservice APIs - Jose Haro Peralta
Pd book_preview_excerpt.html }9I_6*
7{P(xfxf*2";J$]%RYF
V%V0_2{﹇{Y5MRFeDݗ>bvCVYj%$Von㋭yh7hLQZeWHR{erߓNL}8?ZfUD6Yin-ɾly
&MR;i#$ %*U}dQ]~pt Yؘ>}PqlYf9{XT+[mEnh#tmM%$GI&Чm`mU >|~;weYa{xoxKylQ@lad{Þ @cnKl2L!«tuޘvqyU )%<65QDCTu^X^ n nAkf4iRȫdMNg+ә?v㍼rL[rպ]BYY/'b^ZGmU1YCNvTd!жD\u\
DM-;ydk}K\KciRk(:Yb|O "?9r;p
/O,]`rbndcc"xnZvݔ
zC7UfIb$nfF'4)M4x{
b7'V-fM˦\b~x4Ʃ]V