.NET Architecture & System Design Interview Question #103

What is microservices architecture?

Microservices, API Gateway, Service Communication & Event-Driven Architecture Mid-Level Intermediate

Quick Interview Answer

Microservices architecture divides a system into independently deployable services aligned with business capabilities. Each service owns its behavior and typically controls its own data boundary.

Detailed Explanation

Microservices architecture divides a system into independently deployable services aligned with business capabilities. Each service owns its behavior and typically controls its own data boundary.

Microservices can enable independent deployment, scaling, and team ownership, but introduce network failures, distributed data consistency, observability, deployment automation, and operational complexity. They should be chosen for concrete needs rather than as a default.

Code Example

Client
  |
API Gateway
  |---- Orders Service
  |---- Billing Service
  |---- Inventory Service
  |---- Identity Service