Stop 14 · Spring Boot & Backend DevelopmentTopics · 13/13

Microservices vs Monolith

Part of the Java Roadmap

In short

"Netflix uses microservices, so we should too" has hurt many small teams. Both styles work in the cloud. The real question is which problems you want to have.

A monolith ships the whole app as one deployable unit, while microservices split it into small services that deploy independently. Microservices add network calls, data consistency and operations work, so most teams start with a well-structured monolith.

The blob character holds a full steel thali beside several separate small food stalls.

Think of it like this

Thali or food court

One kitchen serving a full thali is simple: one cook, one bill, one plate. A food court has separate counters for dosa, chaat and juice, each with its own staff. More choice and scale, but more coordination.

Watch it happen

One deployable or many

Monolith

  • One codebase, one deploy, one database
  • Easy local setup and debugging
  • Grows tangled; scales as one unit

Microservices

  • Teams deploy services independently
  • Scale only the busy service
  • Network calls, tracing, more ops work

Start with a well-organised monolith. Split out services when team size or scaling needs clearly demand it.

The big ideas

What you need to know

Modular monolith

One deploy, but clean internal modules with clear boundaries. Easy to split later if needed.

Team-shaped

Microservices pay off most when separate teams own separate services and release on their own schedule.

Own your data

Each microservice should own its database. Shared tables quietly couple services back together.

Ops tax

Every service needs CI, monitoring, alerts and on-call. Ten services means ten of each.

Save yourself the pain

Common mistakes

Oops

Splitting a two-person app into eight services on day one.

Do this instead

You'll spend more time on networking and deploys than features. Keep it one app until it hurts.

Oops

Microservices that all read the same database tables.

Do this instead

That's a distributed monolith. Give each service its own data and talk through APIs or events.

Your mission

Draw the seams

~30 min

Quick check

What's a sign you're ready to split out a microservice?

Go deeper

  1. 1List the trade-offs of each style in a two-column table.
  2. 2Sketch how your e-commerce backend could be split into services, and what would get harder.
  3. 3Read about Spring Cloud tools for service discovery and API gateways at a high level.

Also part of these roadmaps

More topics at this stop

Stuck on this topic? Ask an Insider

Get 1:1 guidance from people who've walked this exact path — on the InsideEdge app.

Download
InsideEdge