teacher
Sign in

Microservices and API Gateway

When splitting a system into services pays off, how services find each other, what a gateway does, and how sagas replace distributed transactions.

30 min4 interactive

Monolith first

A monolith is one deployable application containing all features. A microservice architecture splits the system into small services, each owning one business capability (orders, payments, search), deployed and scaled independently and talking over the network (HTTP/REST, gRPC, or messages).

MonolithMicroservices
DeployOne unit; any change redeploys everythingEach service on its own schedule
ScalingScale the whole appScale only the hot service
Team fitSmall team, one codebaseMany teams, clear ownership
DebuggingOne stack traceRequests cross many services; needs tracing
DataOne database, real transactionsDatabase per service; no cross-service transactions
Failure modesIn-process calls rarely failEvery call can time out or fail
CostLow operational overheadNeeds CI/CD, containers, monitoring, platform team
Quick check
Which situation most justifies moving from a monolith to microservices?
1 of 7