MF Marcus Feld

Architecture · 9 min read

Your microservices are a distributed monolith

If deploying service A requires a meeting with the team that owns service B, you did not split the system. You split the repository, and kept every reason it was hard to change.

In the autumn of 2024 I sat in a review with a payments platform: eleven services, nine teams, and a release train that left every second Thursday. They had moved off a monolith two years earlier for one reason, which they stated plainly in the first slide — to ship faster. Their median time from merged pull request to production was nineteen days. On the monolith it had been eleven hours.

Nobody on that team was incompetent. They had done everything the conference talks described. Separate repositories, separate pipelines, one service per bounded context, an API gateway with a nice dashboard. What they had not done was separate the parts that change together from the parts that change apart. So they held all the operational cost of a distributed system and none of the independence.

This is the most common architecture failure I see, and it is almost invisible from the inside, because the diagram looks correct. The services are there. The event bus is there. Nothing in the architecture review template asks whether the boundaries are in the right place.

Three symptoms worth taking seriously

1. The synchronous chain

A checkout request calls pricing, which calls catalogue, which calls inventory, which calls a warehouse adapter written in 2019 by a contractor nobody can reach. Four network hops, one user waiting. The p99 of the last service in the chain becomes the p99 of the first, and the availability multiplies downward:

0.999 × 0.999 × 0.999 × 0.999 × 0.999 ≈ 0.995

Five services at three nines each, composed in a chain, give you two and a half nines at the edge. The organisation will still put "99.9% SLA" on the marketing page, because every team measured its own service and every team was right.

2. The shared database

Three services read the orders table. One of them writes to it. All of them have their own copy of the schema definition, and two of those copies are out of date. The table has no owner, which means it has no migration policy, which means every schema change is a negotiation conducted through production incidents.

A shared table is a shared interface with no version number. You have not decoupled anything; you have moved the coupling into a place where the compiler cannot see it.

3. Lockstep releases

The tell is vocabulary. When a team says "release train," "deployment window," or "we need to coordinate with platform before this goes out," they are describing a monolith with network latency. Independent deployability is not a nice property of microservices. It is the definition.

A test you can run this week

Pick a change that touches no business logic: rename a field in a log line, add a metric, bump a dependency. Then measure three numbers.

  • How many repositories must change?
  • How many other teams must be told?
  • How many hours until it is in production, behind a flag if you like?

If the answer to the first is more than one, or the second is more than zero, you have coupling. The number of services you own does not enter into it. A useful second pass is to look at what actually moves together over time:

# files that change in the same commits, last 6 months
git log --since="6 months ago" --name-only --pretty=format: \
  | grep -v '^$' | sort | uniq -c | sort -rn | head -30

Clusters in that output are your real modules. If those clusters cut across service boundaries, your architecture diagram is fiction and your deployment pipeline knows it.

Why teams end up here

Three causes, roughly in order of how often I find them.

Boundaries drawn from the org chart. Four teams, so four services. This is Conway's Law used as a design method rather than observed as a consequence. It optimises for who reports to whom, not for what must be consistent in a single transaction.

The shared library. Every service imports company-common, which contains the domain models, the auth middleware, the retry helper, and a date parser with a bug from 2021. Every change to the library ships to eleven services at once. The library has become the monolith, with a version number and worse tooling.

Asynchronous on paper, synchronous in practice. The design document says events. The code publishes an event, then immediately calls the consumer's HTTP endpoint to ask whether it worked, because the event had no schema and no delivery guarantee anyone trusted.

You cannot fix a boundary problem with a message broker. You can only make it asynchronous and harder to debug.

What actually separates two things

I use two criteria, and I have not found a third that survives contact with production.

The transactional boundary. What must be consistent inside one commit? If two pieces of data can be written in separate transactions without anyone noticing for a week, they can live in separate services. If not, splitting them buys you a distributed transaction and a new class of bug.

The change cadence. What gets edited by the same pull request? If the same three files appear in 80% of your commits, they belong together, whatever the diagram says.

Everything else — team size, language preference, the desire to try Kafka — is a reason to organise work, not a reason to cut a system in half.

The uncomfortable option

Sometimes the correct recommendation is fewer services. I have made it four times and it has never been popular, because merging reads as retreat. It is usually the cheapest performance work available.

One client had six services in a checkout flow, all owned by the same team, all deployed together, all sharing one database. We merged four of them into one process and kept two as real boundaries at the points where the data genuinely had different consistency requirements. Median latency went from 1.4 seconds to 210 milliseconds. Deployment frequency went from weekly to daily, not because we improved the pipeline, but because there was no longer anything to coordinate. The team spent the next quarter deleting code that only existed to translate between services that should never have been apart.

None of this is an argument against distributed systems. It is an argument against distributing a system for reasons that are not in the system.

Microservices are a technique for scaling organisations, not for scaling code. If your constraint is not the number of engineers who need to touch the same file, the technique will charge you in latency, in incidents, and in the cognitive tax of every engineer who now has to hold nine failure modes in their head — and give very little back.

The question is not "how many services should we have." It is "what must change together, and what must never break together." Answer that honestly and the service count falls out on its own. Skip it, and you will spend two years building a distributed monolith, then a year writing the slide deck that explains why you are going back.


MF

Marcus FeldIndependent software architect in Berlin. I review systems, embed with engineering teams, and write down what breaks. If your architecture diagram and your deployment pipeline disagree, that is usually where we start. More about my work.