Scrivio Interview library
ConceptFoundations5 min read · updated 12 November 2026

What are the defining characteristics of a microservice, and what benefits are microservices supposed to bring? Give a cost that comes with each benefit.

A microservice is a small service built around one business capability, deployable on its own, owned by one team, owning its own data, talking to others only through APIs or events, and designed to cope with failure. The promised benefits each come with a cost: independent deployment needs versioned, backward-compatible APIs; independent scaling and technology choice need more infrastructure and broader skills; fault isolation only works with timeouts, circuit breakers and bulkheads; and team autonomy brings distributed data, eventual consistency and harder debugging that needs tracing.

Why this question is asked

Microservices are often described with a list of benefits and very little about the price. Interviewers ask this question to check that we know what actually makes something a microservice, rather than just a small application, and that we can pair every benefit with the work it requires. That balanced view is what separates a team that gets value from microservices from one that builds a distributed monolith. In this answer, we will go through the defining characteristics, then each major benefit with its cost, and finish with what happens when the characteristics are missing.

1The Defining Characteristics

A microservice is built around a business capability, such as payments or catalogue, rather than a technical layer. It is independently deployable: the team can release it without releasing anything else. It is owned by one team, which builds it, runs it and responds when it breaks. It owns its data: no other service reads or writes its database directly. It communicates only through well-defined interfaces, HTTP or gRPC APIs and published events. And it is designed for failure, because every network call can be slow or fail, so it uses timeouts, retries and fallbacks as normal practice.

Small in the name refers to scope, one capability that one team can understand fully, not to a number of lines of code. A service that meets all these characteristics can be fairly large; a tiny service that shares a database with five others is not a microservice in any useful sense.

2Each Benefit and Its Cost

Every benefit is real, but none is free. The table pairs them, and the sections below explain the two that teams most often underestimate.

Benefits and what they cost
BenefitWhat it givesWhat it costs
Independent deploymentTeams release when readyVersioned APIs, backward compatibility, contract tests
Independent scalingScale only the hot serviceMore infrastructure, more to operate
Technology choiceRight tool per serviceWider set of skills to hire and support
Fault isolationOne failure stays localTimeouts, circuit breakers, bulkheads in every call
Team autonomyFewer meetings, own decisionsDistributed data, eventual consistency, tracing needed

3Independent Deployment Needs Compatible APIs

Being able to deploy the orders service on Tuesday without touching anyone else is the core benefit, and it speeds up delivery a lot. But it only works if the new version of orders does not break its consumers. That means changes to its API must be backward compatible: we add optional fields rather than renaming them, we keep old endpoints until all consumers have moved, and we version the API when a breaking change is unavoidable.

Teams pay for this with contract tests that check each consumer's expectations, with deprecation periods, and with the discipline to think about consumers on every change. Without that work, deployments quietly become coordinated again.

Java
// v1 response, consumers rely on "total"
{ "id": "o-1", "total": 42.50 }
// compatible change: add a field, keep the old one
{ "id": "o-1", "total": 42.50, "totalWithTax": 51.00 } // old consumers still work
// breaking change: rename -> needs /v2 or a migration period
{ "id": "o-1", "amount": 42.50 } // old consumers fail

4Fault Isolation Is Not Automatic

In theory, if the recommendations service crashes, only recommendations disappear. In practice, if the product page calls recommendations synchronously with no timeout, every product page request waits until the connection gives up, threads pile up, and the product page fails too. That is a cascading failure, and it is the opposite of isolation.

Isolation comes from the design: timeouts on every call, circuit breakers (for example with Resilience4j) that stop calling a failing service for a while and return a fallback, and bulkheads that limit how many threads or connections one dependency can use. These are cheap to add with libraries, but they must be added deliberately, tested, and tuned.

Step throughA call designed for failure
  1. Circuit open for recommendations?
    YesReturn fallback at onceNoMake the call
  2. Bulkhead has a free slot?
    YesCall with 300 ms timeoutNoReturn fallback
  3. Answer in time?
    YesUse the answerNoCount failure, return fallback

3 steps in order. Play them, or step through them one at a time.

5Team Autonomy and Scaling Have Operational Costs

Team autonomy means each team decides inside its service without asking others, which removes a lot of coordination. The cost is that data is now spread across services: no joins across them, no single transaction, and other services see changes eventually rather than instantly. Debugging a request that crosses six services needs distributed tracing, correlation ids and good observability, which is a platform investment.

Independent scaling and technology choice have similar costs. Scaling only the search service saves compute, but there are now many deployments, clusters and pipelines to run. Choosing Go for one service and Kotlin for another can fit each problem better, but the organisation must hire for, secure and upgrade both.

6Follow-up questions

What is a distributed monolith?

A distributed monolith is a system split into services that still have to be built, tested and deployed together because they are tightly coupled, for example through a shared database, shared domain libraries or long chains of synchronous calls. It has all the costs of microservices, such as network failures and operational overhead, and none of the main benefits, because nothing can change or deploy independently. It usually appears when services are split by technical layer or by entity rather than by business capability.

Is technology freedom per service a good idea?

Within limits. Allowing any language per service sounds empowering, but each extra stack needs build tooling, security patching, libraries for observability and people who can support it at night. Many organisations offer a small set of supported stacks, such as Java with Spring Boot plus one other, and require a reason for anything else.

Which characteristic is most often missing in practice?

Data ownership. Many systems split code into services but keep one shared database, which keeps them coupled through the schema and is the most common path to a distributed monolith.

7Conclusion

In this answer, we saw that a microservice is built around a business capability, independently deployable, owned by one team, owning its data, communicating through APIs or events and designed for failure. Each benefit has a price: independent deployment needs compatible, versioned APIs; independent scaling and technology choice need more infrastructure and skills; fault isolation needs timeouts, circuit breakers and bulkheads; and team autonomy brings distributed data, eventual consistency and the need for tracing. Without these, the result is a distributed monolith.

What to say in the interviewAbout 80 seconds aloud

Open with

A microservice is a service built around one business capability, like payments, that one team owns end to end. It can be deployed independently, it owns its own data so nobody else touches its database, it communicates only through APIs or events, and it is designed for failure because every remote call can fail.

Then, if they want more

The benefits all come with a price. Independent deployment speeds up delivery, but only if APIs stay backward compatible, so we need versioning, deprecation periods and contract tests.

Independent scaling lets us scale just the hot service, and teams can pick technology per service, but that means more infrastructure to run and a wider set of skills to hire and support. Fault isolation is promised, but it only happens if we add timeouts, circuit breakers and bulkheads; without them one slow service cascades into the callers.

Team autonomy reduces coordination, but data becomes distributed, so we lose joins and cross-service transactions, accept eventual consistency, and need distributed tracing and correlation ids to debug a request across services.

If those costs are not paid, for example with a shared database or services that must deploy together, we end up with a distributed monolith: all the costs of distribution and none of the benefits.

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 documentation below. 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 "What are the defining characteristics of a microservice, and what benefits are...": https://scrivio-interview-library.netlify.app/spring-boot/microservice-design/8f767b70b4/