Microservices or Monolith? An Honest Assessment for Mid-Sized Projects

Last fall we took over an e-commerce platform: a five-person development team and fifteen separate microservices. Tracking down a simple-looking bug that surfaced when adding a product to the cart took us three days, because the bug wasn't hiding in a single piece of code but in a corner of the message traffic between four services that nobody was logging. On the evening of the third day, we sat down across from the client and spoke plainly: the problem isn't your team, it's your architecture.

This post is the long version of that evening's conversation. As a team that has worked on more than five hundred projects of all sizes since 2010, we have seen microservices make projects shine and we have seen them sink projects. Over the years our verdict has become clear: for the vast majority of mid-sized projects, an early decision to go with microservices is the most expensive architectural mistake you can make.

The distance between the conference stage and the engine room

Most microservices stories come from the experience of giants like Netflix, Amazon and Uber. Those companies have hundreds of teams, thousands of developers and dedicated operations staff that can be assigned to every service. There, the architecture is a mirror of the organization: teams already work independently, and the services follow that independence. The talk on stage rarely explains this context; the sentence that sticks with the audience is "split into services and scale."

When a five-person team applies that sentence, it doesn't copy Netflix's organization, only the complexity of a distributed system. We have seen it countless times: everyone touches every service anyway, so the team independence microservices promise is nowhere to be found; meanwhile, network latency, version incompatibilities and distributed debugging are there in abundance. And if those services call each other synchronously, what you have isn't even microservices; we call it a "distributed monolith," which delivers the worst of both worlds in a single package.

These decisions also have a psychological side that is rarely admitted. Microservices experience looks good on a résumé, it's fun to talk about at conferences, and trying out new technology is exciting. I get it; I'm an engineer too. But padding a résumé on the client's budget isn't an acceptable justification in our profession. The only legitimate basis for an architectural decision is the project's current and foreseeable needs, not the answers you'll give in job interviews.

Also factor in how contracts between services drift over time: service A changed the format of a field, service B wasn't informed, and the bug only blew up in production. This class of bugs, which the compiler catches for free in a monolith, requires contract tests, schema registries and version coordination in a distributed world; in other words, more manpower and more expense.

The price tag in microservices for what's free in a monolith

This is the least discussed part of the whole thing. The "create order, decrement stock, record payment" flow you handle with a single transaction in a monolith turns into the saga pattern in the microservices world: you write compensation logic for every step, set up a separate scenario for each "partially successful" state, and don't forget the admin tool for manually fixing an order left half-finished at 3 a.m. An ordinary function call gives way to timeout settings, retry policies and circuit breakers. Unlike a function call, the network is neither fast nor reliable; accepting that fact means adding uncertainty management to every layer of your code.

Operations go on the bill too. Every service means a separate deploy pipeline, a separate log stream, a separate monitoring dashboard and a separate set of alerts. Running Kubernetes properly is a specialty in its own right; on a small team, that load either lands on one person's shoulders (and everything is rosy until that person goes on vacation) or never gets carried at all, and the system runs in the dark. Integration tests are a headache of their own: spinning up fifteen services locally and running end-to-end scenarios falls into the "thing nobody does" category on most teams, and bugs get discovered in production.

In short: whatever comes free in a monolith (transactions, type safety, a single log file, a single deploy) has to be bought piece by piece in microservices.

In a monolith, transactions, type safety, a single log and a single deploy come free; their microservices equivalents each require separate effort.
Everything that's free in a monolith has to be bought in microservices.

Our default answer: the modular monolith

So is the alternative the spaghetti monolith everyone fears? No. The structure we set up by default on our projects is a modular monolith: a single deployable application, with sharply bounded modules inside (membership, orders, payments, notifications) and communication between modules flowing only through defined interfaces. The orders module can't query the membership module's table directly; it requests the data it needs through the interface. (Setting this rule is easy; keeping it takes discipline. It's the violation we chase most often in code reviews.)

The beauty of this structure cuts both ways. Today you enjoy all the simplicity of a monolith: one pipeline, one log, transactions right where they belong, a single stack trace for debugging. Tomorrow, if a module truly deserves to be split off, turning it into an independent service is a matter of days rather than weeks, because the boundaries were drawn clearly from the start. Splitting up a tangled monolith, on the other hand, is like open-heart surgery that lasts for months; what makes the difference is the module discipline you show today.

Let's address the scaling concern too, because most microservices decisions are made out of this fear. With vertical scaling, read replicas and smartly designed caching, the load a single application can carry is well above the traffic most businesses dream of. Most of our projects run on this pattern, and none have hit a scaling wall. Trying to solve a scaling problem you haven't had yet is like having surgery for a disease you don't have.

Let me also describe in a paragraph how we build a modular monolith in practice. Each module gets its own schema area in the database; JOINing another module's table is forbidden. Calls between modules pass through a single interface layer, so which module depends on which can be mapped at any moment. The shared core (auth, logging, configuration) is deliberately kept small; if the core bloats, modularity stays a matter of words. We tie these rules to the CI pipeline with a few architecture tests, so violations get caught by the pipeline rather than by human eyes.

Modular monolith: a single application, clearly bounded modules, a defined interface layer, a small shared core and a database schema area per module.
The rules are enforced in the CI pipeline with architecture tests.

Legitimate signals for moving to microservices

Don't get us wrong: we're not saying microservices are bad, we're saying they're expensive at the wrong time. In the field, we look for three signals. The first is teams slowing down because they are waiting on each other's deploys; if two or three autonomous teams keep colliding in the same codebase, it may be time to separate the boundaries physically. The second is radically different scaling needs; if the reporting engine is a CPU monster while the rest of the application is light as a feather, splitting that engine off and scaling it independently is perfectly legitimate. The third is the organization itself splitting up; if the company has truly divided into separate product teams, the architecture will sooner or later follow that line.

If none of these three is on the table, microservices will load far more onto your back than they solve.

Three legitimate signals for moving to microservices: teams waiting on each other, radically different scaling needs and the organization splitting up.
Without these three, microservices add more burden than they solve.

For those curious how that e-commerce project we took over turned out: over six months, we consolidated the fifteen services into a monolith with four modules. Deploy time dropped from forty-five minutes to six, night-time alerts decreased visibly, and the team found time to build features again. Revenue didn't drop; on the contrary, they got through the campaign season without alerts for the first time.

An architecture debate isn't a debate about fashion; it's a debate about needs. If you're facing this dilemma in your own project, let's talk over a coffee. Sometimes a pair of outside eyes can stop a wrong investment that would drag on for months before it even starts.