Design and ship production-ready FastAPI microservices from first service to secure authentication, bookings, reviews, smart search, AI-assisted support, reliable testing, and a confident path to scalable production systems Key Features
Design clear, evolvable services, and explain decisions your team trusts
Ship reliable backends with the right data stores, async jobs, auth, testing, and observability
Add practical AI features (RAG, agents) that reduces support and drives measurable value
Book Description This book shows you how to turn an idea into a reliable product. This is a playbook for practical progress. Choose what to ship now, what to delay, and how to avoid risky changes. Keep services tidy, naming clear, and tests small but useful. You will build a realistic end-to-end system step by step, following a babysitting marketplace with sign-up, search, booking, messaging, and payments, while learning to navigate complex architectural systems with ease. When it is time to add intelligence, you learn practical ways to use AI for customer support, recommendations, and operational insights. The focus stays on measurable value, not hype, while keeping performance, costs, and reliability predictable in production. Your guides are Giunio De Luca, PhD, author of Packt’s FastAPI Cookbook and an architect who has shipped systems across research, sports, and energy, and Gianmarco Aversano, an AI and machine learning specialist with a PhD and expertise in generative AI and data science. Together, they share patterns they rely on when deadlines are real and reliability matters. By the end, you will not just know FastAPI. You will think like a senior engineer, plan delivery with confidence, avoid common traps, measure what matters, and run a backend platform that users trust and teams enjoy maintaining. What you will learn
Set up a microservice from scratch with modern Python tooling
Build RESTful APIs with clean boundaries, DI, and type-safe models
Design multiple services and compose them through a gateway
Model data with PostgreSQL, MongoDB, and vector stores
Scale with async I/O, background tasks, queues, and WebSockets
Secure services with OAuth2/JWT and role-based access
Test, profile, observe, and deploy with confidence
Add AI features including RAG chatbots, agents, and analytics
Who this book is for For Python developers who want to move beyond monoliths and ship scalable backends. Ideal for engineers aiming for lead/architect roles who need practical patterns for clean code, async workflows, and multi-database design. You’ll learn how to add secure authentication, real-time features, and AI capabilities RAG chat, agents, and analytics without losing testability or performance. Basic Python and web API knowledge is recommended.