29,99 €
FastAPI is an Asynchronous Server Gateway Interface (ASGI)-based framework that can help build modern, manageable, and fast microservices. Because of its asynchronous core platform, this ASGI-based framework provides the best option when it comes to performance, reliability, and scalability over the WSGI-based Django and Flask. When working with Python, Flask, and Django microservices, you’ll be able to put your knowledge to work with this practical guide to building seamlessly manageable and fast microservices.
You’ll begin by understanding the background of FastAPI and learning how to install, configure, and use FastAPI to decompose business units. You’ll explore a unique and asynchronous REST API framework that can provide a better option when it comes to building microservices. After that, this book will guide you on how to apply and translate microservices design patterns in building various microservices applications and RESTful APIs using the FastAPI framework.
By the end of this microservices book, you’ll be able to understand, build, deploy, test, and experiment with microservices and their components using the FastAPI framework.
Das E-Book können Sie in Legimi-Apps oder einer beliebigen App lesen, die das folgende Format unterstützen:
Seitenzahl: 445
Veröffentlichungsjahr: 2022
Build secure, scalable, and structured Python microservices from design concepts to infrastructure
Sherwin John C. Tragura
BIRMINGHAM—MUMBAI
Copyright © 2022 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing or its dealers and distributors, will be held liable for any damages caused or alleged to have been caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
Associate Group Product Manager: Pavan Ramchandani
Publishing Product Manager: Bhavya Rao
Senior Editor: Mark Dsouza
Content Development Editor: Divya Vijayan
Technical Editor: Shubham Sharma
Copy Editor: Safis Editing
Project Coordinator: Sonam Pandey
Proofreader: Safis Editing
Indexer: Tejal Daruwale Soni
Production Designer: Joshua Misquitta
Marketing Coordinators: Anamika Singh and Marylou De Mello
First published: August 2022
Production reference: 1260822
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham
B3 2PB, UK.
ISBN 978-1-80324-596-6
www.packt.com
This book is for everyone who became my support system during those months in 2021 when I got sick and for everyone who fought and stayed strong during this pandemic.
– Sherwin John C. Tragura
Sherwin John Calleja Tragura is a subject matter expert on Java, ASP .NET MVC, and Python applications with some background in frontend frameworks. He has managed a team of developers to build various applications related to manufacturing and fixed assets, document management, records management, POS, and inventory systems. He has a background in building laboratory information management systems (LIMS) and hybrid mobile applications as a consultant. He has also provided corporate Bootcamp training services since 2010 for courses on Python, Django, Flask, Jakarta EE, C#, ASP .NET MVC, JSF, Java, and some frontend frameworks. He has authored books such as Spring MVC Blueprints and Spring 5 Cookbook and a Packt video, Modern Java Web Applications with Spring Boot 2.x.
I want to thank my friends, Icar, Mathieu, and Abby, and my cousins, Rhonalyn, Mica, and Mila, for their time and effort when I was not well in 2021. Also, I want to express my gratitude and appreciation to the Packt team for their understanding and consideration given to me. Lastly, this book would have been impossible without the support and time of Owen, who was always there pushing me to finish the book despite the scary situation during the pandemic.
Glenn Base De Paula is a product of the University of the Philippines Integrated School and is a computer science graduate of the country’s most prestigious institutions, the University of the Philippines. He has 14 years of industry experience, which was mostly with the government’s ICT institute and recently in the banking industry.
He uses Spring, Grails, and JavaScript for his day-to-day activities. He has developed numerous Java web applications for various projects and was also the technical team lead for several others. He currently manages a team of Java developers assigned to different projects in one of the country’s most reputable banks.
He is often involved in systems analysis and design, source code review, testing, implementation, training, and mentoring. He learns about better software architecture and design in his free time.
Sathyajith Bhat is an experienced Site Reliability Engineer (SRE) with over 15 years of experience in DevOps, Site Reliability Engineering, System Architecture, Performance Tuning, Cloud Computing, and Observability. He believes in getting the most out of the tools that he works with. Sathyajith is the author of Practical Docker with Python and a co-author of The CDK Book. He loves working with various communities and has been recognized as an AWS Community Hero for his contributions to the AWS community.
I would like to thank my wife, Jyothsna, for being patient and supporting me both in my career and while working on this book.
In this part, we will look at the whole FastAPI framework and explore the systematic and ideal way of decomposing a monolithic application into several business units. During the process, you will see how to get started with development and what components there are in FastAPI that can be utilized to pursue microservices implementation.
This part comprises the following chapters:
Chapter 1, Setting Up FastAPI for Starters Chapter 2, Exploring the Core Components Chapter 3, Investigating Dependency Injection Chapter 4, Building the Microservice ApplicationIn the previous chapter, we found out how easy it is to install and start developing REST APIs using the FastAPI framework. Handling requests, cookies, and form data was fast, easy, and straightforward with FastAPI, as was building the different HTTP path operations.