Some best practices: build services around the areas of the business, with loose coupling and high cohesion (each service groups things that belong together). Isolate failures so they don't spread. Communicate only through well-designed APIs, without exposing internal details. Keep each service's data private. And make API changes backward compatible. It's like a neighborhood: each house has its door (the API) and nobody climbs through the neighbor's window.
Common mistakes with microservices: service boundaries that don't follow the business, underestimating how hard a distributed system is, sharing a database or dependencies, unclear ownership of each service, lacking idempotency (repeating an operation shouldn't change the result), wanting everything ACID instead of BASE, and not designing for failure, which causes cascading failures. It's like opening 10 branches without a manager in each: everything works until something fails.
The advice is to start with a monolith when building a new system. Microservices aren't a silver bullet: they solve an organizational problem, a team problem. Before migrating, ask: is the team too large for 1 single codebase? Are teams blocked by others? Does it bring real business value? Netflix uses microservices, but has thousands of engineers: you're not Netflix. It's like buying a bus to commute alone: it helps if you carry 40 people.
What couples microservices the most are shared database schemas and rigid communication protocols. That's why the advice is to decentralize everything: each team designs and builds its service, without sharing code or schemas. And fail fast with a circuit breaker, an automatic cutoff that stops calling a service that's failing. It's like 2 families sharing 1 fridge: any change by one ruins the other's dinner.
A distributed monolith is a system that looks like microservices but is as tightly coupled as a monolith. It has the worst of both: the complexity and latency of the network, without the independence of services. If deploying 1 service means deploying 4 others, you have a distributed monolith. It's like 5 train cars tied with short chains: they look separate, but if 1 brakes, all 5 brake.
Your microservices are really a distributed monolith if: they need very low-latency communication between them, they don't scale easily, they depend on each other, they share resources like databases or they're tightly coupled. One of the main reasons to use microservices is scaling, and that needs independent services. It's like a group of 6 friends who can't go out if 1 is missing: they're not 6 independent people, they're 1 block.
Service-oriented architecture (SOA) is sometimes confused with microservices, but the main difference is scope. SOA aims to make components reusable across the whole company, through service interfaces with common standards. Microservices are smaller, independent units, meant for each team to be autonomous. It's like a public library (SOA: everyone shares the same books) versus each family having its own library (microservices).