✅ 1.What is a Microservice?

A microservice is a small, independent, deployable unit of an application that performs one specific business function.

It has its own codebase

It runs as a separate process

It has its own database or data storage

It communicates with other services using REST APIs / gRPC / messaging

Example:
In an e-commerce...