Microservices
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.