Quick revision
The short answer
The main lesson is that architecture should follow the organisation's size, domain complexity and operational maturity rather than industry fashion, because distribution carries real costs in latency, consistency, testing and operations that many teams underestimated. Modularity turned out to be the lasting property: if module boundaries, contracts and data ownership are clear, deployment units can be merged or split later. So we prefer reversible decisions, review them as the organisation changes, and judge styles by measured outcomes such as delivery speed, reliability and cost.
What to remember
In this answer, we took lessons from a decade of microservices adoption and consolidation. Architecture should follow organisation size, domain complexity and operational maturity rather than fashion, because distribution adds real costs in latency, consistency, testing and operations. Modularity is the property that lasts, so deployment units can change when boundaries, contracts and data ownership are clear. We prefer reversible decisions that we review as the organisation changes, and we judge styles by measured delivery speed, reliability and cost.
Your turn
Answer it aloud as you would in the interview, or type your answer below. Then show one part at a time and compare.
The main lesson is that architecture should follow the organisation's size, domain complexity and operational maturity rather than industry fashion, because distribution carries real costs in latency, consistency, testing and operations that many teams underestimated. Modularity turned out to be the lasting property: if module boundaries, contracts and data ownership are clear, deployment units can be merged or split later. So we prefer reversible decisions, review them as the organisation changes, and judge styles by measured outcomes such as delivery speed, reliability and cost.
Why this question is asked
Microservices spread quickly in the mid-2010s after influential write-ups described them in 2014 and large internet companies shared how they worked. A decade later, many organisations have merged services back into larger units, and some well-known teams published accounts of moving from many services to a monolith and cutting costs. Interviewers ask very senior candidates to reflect on this not to hear that microservices were a mistake, but to hear what durable principles we take from a full cycle of adoption and correction. In this answer, we will look at why the wave happened, what the consolidations taught us, why modularity outlasts deployment style, how to keep decisions reversible, what to invest in regardless of style, and how to judge styles with data.
1Why the Wave Happened
Microservices solved real problems for the companies that pioneered them. Organisations with hundreds of engineers on one codebase suffered from release trains, merge conflicts and teams blocked by each other. Splitting the system into independently deployable services, each owned by a small team, let those organisations move faster. Cloud infrastructure, containers and later Kubernetes made running many services practical.
The trouble began when the style spread to organisations that did not share those problems. A team of 15 engineers building a product with modest traffic adopted the same architecture as a company with 2,000 engineers, and inherited its costs without its benefits.
2What the Consolidations Taught Us
The first lesson is that architecture should follow the organisation, the domain and the operational maturity, not fashion. Conway's law, the observation that systems mirror the communication structure of the organisations that build them, works in both directions: 40 services for five teams means each team runs eight services and the boundaries no longer match how people work. Microservices fit when many teams need to work and release independently and the platform to run them exists.
The second lesson is that distribution has real costs that were often underestimated. A method call that took microseconds becomes a network call that takes milliseconds and can fail. A single database transaction becomes a saga with compensations and eventual consistency. Testing a feature needs several services running, or contract tests to replace that. Operations needs tracing, service discovery, per-service pipelines, dashboards and on-call. For small teams, these costs can consume a large share of engineering time, which is why many consolidated.
| Area | In a monolith | Across services |
|---|---|---|
| Latency | in-process call, microseconds | network call, milliseconds, with timeouts |
| Consistency | one ACID transaction | events, sagas, eventual consistency |
| Testing | one application started in tests | contract tests, environments with many services |
| Operations | one pipeline, one dashboard | per-service pipelines, tracing, on-call |
| Refactoring a boundary | move classes between packages | change APIs, migrate data, coordinate releases |
3Modularity Is the Property That Lasts
Looking back, the organisations that came through best were not the ones that chose a particular deployment style; they were the ones whose code had clear modules. If orders, billing and inventory have well-defined boundaries, their own data and explicit contracts, they can run in one process, in three services or in one service per module, and moving between those is a manageable engineering task.
Organisations without that modularity struggled in both directions. A tangled monolith could not be split without a rewrite, and a set of tangled services could not be merged without untangling them first. So the lasting lesson is to invest in modularity and treat deployment units as a separate, changeable decision. The modular monolith became popular in the 2020s precisely as an expression of this.
4Prefer Reversible Decisions and Review Them
Some architecture decisions are cheap to reverse and some are not. Splitting a database between services is expensive to undo; putting a module boundary in code is cheap to move. Over a decade, the organisation will change size, products will change and the platform will mature, so the right answer in year one may be wrong in year five.
So we prefer the decision that keeps options open: modules first, services when there is evidence; asynchronous contracts that could work either in process or over a broker; data separated by ownership even within one database. And we record important decisions with their context in architecture decision records and schedule reviews, perhaps yearly, asking whether the reasons still hold. Several of the consolidations were simply reviews that came late.
- Record the decision and its contextteam size, load, domain, platform maturity
- Review on schedule or on changeyearly, or after a reorganisation
- Do the original reasons still hold?YesKeep itNoLook at the measured outcomes
- Outcomes worse than the alternative?YesPlan a staged change: split or mergeNoKeep it, note why
4 steps in order. Play them, or step through them one at a time.
A decision recorded with its reasons can be revisited calmly instead of replaced by the next fashion.
5Invest in Contracts and Data Ownership in Every Style
Two investments paid off whatever style teams chose. The first is contracts: explicit, versioned interfaces between parts of the system, whether those are Java interfaces between modules, OpenAPI specifications between services or schemas for events. Contracts let parts change independently and make it possible to move a boundary without breaking callers.
The second is data ownership: every table or dataset has one owning module or service, and others read through its contract. Shared tables were the most common reason services had to be deployed together, and they are equally harmful between modules of a monolith, because they hide coupling where tests and reviews do not see it.
6Judge Styles by Outcomes
Finally, the debate is settled best with data. The four delivery measures popularised by the DORA research (deployment frequency, lead time for changes, change failure rate and time to restore service), together with infrastructure and operating cost, tell us whether an architecture is helping. If after moving to services lead time went up and cloud cost doubled, the style is not serving us, whatever the industry says. If merging services cut cost and incidents without slowing teams, that is a success, not a retreat.
7Follow-up questions
Were microservices a mistake?
No. They were the right answer for organisations with many teams that needed independent deployment and had the platform to support it, and they still are. The mistake was adopting them as a default, without the problem they solve and without budgeting for their costs.
How do you know when to split again after consolidating?
When the original reasons appear: teams blocked by each other's releases, very different scaling needs, or reliability isolation for a critical path. If the modules inside the consolidated unit are clean, splitting one out is an incremental, measurable change.
What would you tell a startup choosing an architecture today?
Start with a well-modularised monolith, invest in clear module boundaries, contracts and data ownership, and set up good CI and observability from the start. Split out services only when a concrete need appears, and measure whether it helped.
8Conclusion
In this answer, we took lessons from a decade of microservices adoption and consolidation. Architecture should follow organisation size, domain complexity and operational maturity rather than fashion, because distribution adds real costs in latency, consistency, testing and operations. Modularity is the property that lasts, so deployment units can change when boundaries, contracts and data ownership are clear. We prefer reversible decisions that we review as the organisation changes, and we judge styles by measured delivery speed, reliability and cost.
Open with
Looking back, my main lesson is that architecture has to follow the organisation, the domain and the operational maturity, not the industry fashion of the moment. Microservices solved real problems for companies with hundreds of engineers who needed to deploy independently and had the platform to run many services.
Then, if they want more
Many smaller organisations adopted the same style without those problems and paid the costs: network latency and partial failures, eventual consistency instead of one transaction, harder testing, and a lot of operational work, which is why many later consolidated. The property that turned out to last is modularity.
Organisations with clear module boundaries, explicit contracts and single ownership of data could move between one deployable and many in either direction; those without could not do either without a rewrite. So I invest in modularity and contracts in every style and treat the deployment unit as a separate decision.
I also prefer decisions that are cheap to reverse, like modules before services, and I record decisions with their context and review them when the organisation changes, because the right answer at 20 engineers is often wrong at 200. And I judge styles by outcomes: deployment frequency, lead time, change failure rate, time to restore, and cost. If a style makes those worse, it is not working for us.
About this answer
- Last updated
- 12 November 2026
- Checked
- Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the official documentation for the version you use. What the checks cover
- Where the question comes from
- Written by Scrivio for practice. It is not taken from an interview.
Report an issue with this answer
Copy the line below and send it to the author with what you found. It carries the address of this page.
Issue with "Microservices became popular around 2014, and many organisations later consolidated...": https://scrivio-interview-library.netlify.app/java/application-architecture/fdeb5b6d63/