# Microservices

> The Microservices is an architectural style where an application is built as a collection of loosely coupled, independently deployable services.

## What are microservices and when should I use them?

The architecture approach to software development where a large application is broken down into smaller, independent services that communicate with each other. Each service can be developed, deployed and scaled independently, allowing for more flexibility and scalability.

- Topic: Architecture
- Type: architecture

## Common mistakes

- Building a distributed monolith where every change needs several services deployed together.
- Splitting by technical layer instead of business capability, so every feature touches every service.

## Key points

- Each service owns its data; other services don't read its database directly.
- Calls between services have timeouts and retries with backoff.
- Each service can be deployed on its own, without a coordinated release.

## Interview questions

### How do microservices communicate?

Through synchronous calls like HTTP or RPC, or asynchronously through message queues and events.

### When are microservices a good idea?

When several teams need to deploy independently or parts of the system have very different scaling needs. For small teams they often add more cost than value.

## Related cards

- [Monolith](https://wonderium.dev/engineering/monolith.md)
- [Containerization](https://wonderium.dev/engineering/containerization.md)
- [API](https://wonderium.dev/engineering/api.md)
- [Micro Frontends](https://wonderium.dev/engineering/micro-frontends.md)
- [REST](https://wonderium.dev/web/rest.md)

---

- Level: [Engineering](https://wonderium.dev/engineering.md)
- HTML version: https://wonderium.dev/engineering/microservices
- Last updated: 2026-11-25
