Microservices

Term side of the Card.
Topic: Architecture
Unit title: Microservices
Categories: Architecture
Explanation side of the Card

Explanation: 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.

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.

Analytics cookiesWe'd like to use analytics cookies to see which pages are useful. They're set only if you accept. Privacy Policy