Henry Hoang

Backend Engineer

From a FastAPI monolith to microservices in production

Two modules, taken in order.

Basic — Building a Monolith API with FastAPI starts at the operating system (file descriptors, sockets) and builds up through routing, data modelling, databases, dependency injection, JWT/OAuth2 and testing.

Advanced — Microservices Architecture breaks that monolith apart: API gateway with Kong, asynchronous messaging with RabbitMQ, distributed transactions with the SAGA pattern, Redis caching, and observability.