Video in progress

For a new startup, is it better to start with a monolith or go straight to microservices?

Starting with a monolith is usually right: the team is small, the domain isn't clear yet, and you need to change things fast. Microservices pay off when large teams need to deploy independently and parts of the system need to scale separately.

📖 Answer

Microservices look "modern", but they aren't free. Every service brings its own deploy, monitoring, logs, network failures, version compatibility and distributed transactions. For a 3-person team that is a very heavy load.

What a monolith gets you:

  • everything in one transaction — data consistency is easy;
  • refactoring is one IDE command;
  • debugging is easy — it's all in one process.

The problem isn't the monolith itself, it's a messy one. If you separate modules clearly inside (packages, module boundaries, no direct access to each other's tables), pulling a part out into its own service later is much easier. That's called a "modular monolith".

When it's time to split: deploys keep waiting on each other, one part (for example, video processing) needs 10 times more resources than the rest, or teams keep breaking each other's code.