Microservices is an architectural style where an application is built as a set of small, independently deployable services, each owning one business capability and communicating over the network (HTTP, gRPC, or messaging).
How it works
Each service runs in its own process, has its own data store, and can be developed, deployed, and scaled on its own. Teams own services end to end.
┌──────────────┐
Client ─▶ │ API Gateway │
└──────┬───────┘
┌───────────┼───────────┐
▼ ▼ ▼
┌────────┐ ┌─────────┐ ┌──────────┐
│ Orders │ │ Payments│ │ Shipping │ ← each: own code + DB
└───┬────┘ └────┬────┘ └────┬─────┘
▼ ▼ ▼
ordersDB paymentsDB shippingDB
