The hidden costs of distributed systems.
A monolith becomes difficult to maintain.
Deployments take longer. Teams start stepping on each other's code. A small change requires running thousands of tests.
Someone suggests microservices.
Break the application into smaller services. Give each team ownership. Deploy independently. Scale only what needs scaling.
It sounds like the natural next step.
Six months later, the company has 20 services, multiple databases, several message queues, and a deployment pipeline nobody wants to touch on Friday.
The original problems haven't disappeared. Some have simply moved across the network.
Microservices don't automatically reduce complexity. They change where that complexity lives.
And that's something engineering teams need to understand before choosing a distributed architecture.
1. The Problem Was Never Just the Monolith
When developers complain about monoliths, they're often complaining about something else:
- Unclear module boundaries
- Poorly organized business logic
- Too many dependencies between features
- Slow testing and deployment pipelines
- Teams that can't make changes without coordinating with everyone else
These are legitimate engineering problems. But moving code into separate services doesn't automatically solve them.
Imagine an e-commerce application with three modules: Orders, Payments, and Inventory.
Inside a monolith, creating an order might involve calling three internal functions.
OrderService | +--> PaymentService | +--> InventoryService Now split those modules into independently deployed services.
The business workflow hasn't changed. But internal function calls have become network requests.
You now need to think about timeouts, authentication between services, partial failures, retries, deployment compatibility, and distributed tracing.
A failed function call is usually straightforward to investigate. A failed distributed workflow might involve three services, different logs, and a message that was delivered twice.
The architecture has gained deployment flexibility. It has also gained new failure modes. That's the trade-off.
Start with boundaries, not deployments
A modular monolith can often provide many of the organizational benefits teams want without introducing network boundaries.
You can establish separate modules, ownership rules, internal contracts, and dependency restrictions while keeping a single deployable application.
That doesn't make a modular monolith universally better. It means independent deployment should solve an actual problem, rather than become an architectural goal on its own.
2. Independent Deployment Is the Real Test
Microservices are often described as small, independently deployable services.
But the important word isn't small. It's independently.
Suppose a team wants to release a change to the Orders service. Before deploying, they must coordinate with Payments, Inventory, and Notifications because all four services depend on the same database schema.
Can Orders really be deployed independently? Not in any meaningful sense.
The application has been physically separated, but it remains tightly coupled. This is how teams end up with a distributed monolith: the operational overhead of microservices without the flexibility that justified adopting them.
A useful architecture review question
Ask your team:
Can we deploy this service without requiring another team to deploy theirs at the same time?
If the answer is consistently no, investigate the boundaries. Look for shared database tables, incompatible API changes, synchronized releases, and business logic spread across multiple services.
- Sometimes the solution is improving the contracts.
- Sometimes it's moving responsibilities.
- And sometimes two services should simply become one.
Microsoft's Azure Architecture Center makes a similar recommendation: when services communicate excessively and depend heavily on one another, reconsider their boundaries or merge them.
The number of services isn't a useful measure of architectural maturity. The ability to change them safely is.
3. Shared Databases Quietly Destroy Service Ownership
One of the easiest mistakes during a microservices migration is keeping a shared database.
It feels practical. The data already exists. Splitting it would take significant effort. Services can simply query the tables they need.
Consider two services:
Orders Service ------+ | v Shared Database ^ | Payments Service ----+ Both services access the same tables. Initially, this reduces migration effort.
But imagine the Payments team needs to change the schema. That change might break Orders. Now both teams must coordinate database migrations, deployment order, and rollback procedures.
The service boundaries provide little protection.
Ownership should include data
A stronger design gives each service authority over its own data.
Orders Service Payments Service | | v v Orders Database Payments Database Orders can access payment information through a defined API or consume published events.
This introduces new challenges, particularly around synchronization and consistency. But it also establishes clearer ownership.
The principle isn't that every service must run a separate physical database server. Multiple services can use the same database infrastructure while owning separate schemas and tables.
The important rule is avoiding direct access to another service's private data.
Microsoft's official microservices data guidance emphasizes this distinction. A service that can't control its own data model isn't fully independent.
4. Distributed Transactions Change Everything
A monolith often relies on database transactions to maintain consistency. Imagine creating an order and reducing inventory inside a single database transaction.
BEGIN; INSERT INTO orders ( id, customer_id, status ) VALUES ( 101, 25, 'CREATED' ); UPDATE inventory SET available = available - 1 WHERE product_id = 50 AND available > 0; -- Commit only if the inventory update -- affected the expected row. COMMIT; The example is simplified, but the principle is clear. Both changes can succeed together or be rolled back together.
Now imagine Orders and Inventory use separate databases. A local transaction in Orders cannot automatically guarantee a successful update in Inventory.
- What happens when the order is created but the inventory request fails?
- What happens when the inventory update succeeds but its response never arrives?
These questions introduce a fundamental distributed systems concern: consistency across independently failing components.
Consider the Saga pattern
A Saga coordinates a business operation through multiple local transactions. For example:
- Create an order in a pending state.
- Reserve inventory.
- Authorize payment.
- Confirm the order.
If payment fails, the workflow can release the inventory reservation and cancel the order. These are compensating actions.
But compensation is not always equivalent to rolling back a database transaction:
- An email cannot be unsent.
- An external payment operation may require a separate refund.
- Other systems may observe intermediate states before the workflow completes.
That's why distributed workflows need explicit state management, failure handling, and clear business rules.
Not every workflow requires strong consistency. But engineers should know which operations can tolerate eventual consistency and which cannot. This is especially important in payments, inventory management, financial systems, and other domains where partial completion has real consequences.
5. Asynchronous Messaging Isn't Free Decoupling
When synchronous communication becomes difficult, teams often introduce a message broker. Instead of directly calling another service, one service publishes an event.
{ "event_id": "evt_1024", "event_type": "order.created", "order_id": "ord_782", "occurred_at": "2026-11-11T08:00:00Z" } Another service consumes the event and performs its own work.
This can reduce direct dependencies. The Orders service doesn't need to wait for every downstream operation before responding.
But messaging introduces another set of problems:
- What if the consumer processes the same event twice?
- What if messages arrive out of order?
- What if the producer updates its database but crashes before publishing the event?
- What happens when a consumer repeatedly fails to process a message?
Design for at-least-once delivery
Many practical messaging setups can deliver a message more than once. Consumers therefore need idempotent processing.
One simple approach is recording processed event IDs in a database table with a unique constraint.
BEGIN; INSERT INTO processed_events (event_id) VALUES ('evt_1024') ON CONFLICT DO NOTHING; -- Continue with business changes only -- if the event ID was newly inserted. COMMIT; The insertion and corresponding business changes should participate in the same database transaction when they must succeed together. The exact SQL and implementation will depend on the database and processing framework.
For reliable publishing, the transactional outbox pattern is also worth considering. It stores the business change and an outgoing event in the same local transaction. A separate publisher then delivers the event to the broker.
This avoids relying on two unrelated operations (updating a database and publishing a message) to succeed at exactly the same moment.
Messaging can make a distributed system more resilient. But it doesn't eliminate complexity. It exchanges immediate coordination for eventual coordination.
6. More Services Mean More Ways to Fail
Consider a request that passes through five services.
API Gateway | v Orders | v Customers | v Pricing | v Inventory | v Payments Each service is healthy most of the time.
Suppose each of the five downstream operations independently succeeds 99.9% of the time. The probability that all five succeed is approximately:
0.999⁵ ≈ 0.995, or about 99.5%
That's a simplified mathematical example, not a measured production availability figure. Real systems have correlated failures, retries, fallback behavior, and different dependency characteristics.
But it illustrates an important point: adding dependencies can reduce the reliability of the complete request path.
Timeouts and retries need deliberate design
- Every network call should have an appropriate timeout.
- Retries should be bounded and should target failures that are genuinely recoverable.
- Exponential backoff with jitter can reduce the chance that many clients retry simultaneously.
- High-impact write operations need idempotency safeguards.
Otherwise, retry logic can make an outage worse. Imagine five services independently retrying a failing dependency three times. The resulting request amplification may place even more pressure on a system that's already struggling.
Circuit breakers, concurrency limits, load shedding, and graceful degradation can help contain failures. But they must match the business operation.
- If recommendations fail, perhaps the application can continue without recommendations.
- If payment authorization fails, silently continuing is probably unacceptable.
Resilience isn't about making every request succeed. It's about making failure predictable and limiting its impact.
7. Observability Becomes Part of the Architecture
In a monolith, investigating an error might involve examining logs from one application. In microservices, a single user request can travel through multiple services, queues, and databases.
Without correlation, debugging becomes guesswork.
Suppose a customer reports that an order took eight seconds to complete. Which service was responsible? Was it a slow database query? A network timeout? A retry? Or a queue backlog?
Service-level CPU and memory metrics won't necessarily answer those questions.
Use distributed tracing
A distributed trace can show the path of a request across services.
Trace: abc-123 POST /orders 8200 ms | +-- Customer lookup 120 ms | +-- Inventory reservation 240 ms | +-- Payment authorization 7600 ms Now the bottleneck is much easier to investigate.
OpenTelemetry provides standardized conventions for collecting and correlating traces, metrics, and logs across different technologies.
In practice, I would want at least three things before operating a growing microservices platform:
- Consistent request and trace identifiers across service boundaries.
- Metrics for latency, error rates, throughput, and dependency health.
- Structured logs with enough context to investigate failures without exposing sensitive data.
Telemetry also needs careful control of cardinality, retention, and collection costs. Collecting everything indefinitely isn't a sustainable observability strategy. The goal is to answer operational questions quickly.
If your team can't trace a request across services, it doesn't fully understand how the system behaves in production.
8. Kubernetes Doesn't Solve Architectural Complexity
A common assumption is that adopting Kubernetes makes an application cloud-native or production-ready.
Kubernetes can manage workloads, scheduling, deployments, service discovery, and many other infrastructure concerns. Those capabilities are valuable.
But Kubernetes cannot decide whether your service boundaries are correct:
- It can't repair a distributed transaction that leaves an order in an invalid state.
- It can't make a tightly coupled deployment independent.
- It doesn't automatically make business operations resilient.
The orchestration platform manages infrastructure behavior. The application still needs good engineering decisions.
For smaller teams, fully managed container services or serverless platforms may offer a more suitable operational model. For larger organizations with mature platform engineering capabilities, Kubernetes may be appropriate. The choice should depend on workload requirements, team expertise, operational ownership, and costs.
Google Cloud's Well-Architected guidance continues to emphasize simplicity, managed services where practical, and avoiding unnecessary complexity when building new systems.
The lesson is straightforward: don't introduce infrastructure your team isn't prepared to operate just to follow an architectural trend.
9. AI Doesn't Remove Distributed Systems Problems
In 2026, AI-powered development tools can help engineers generate service scaffolding, infrastructure definitions, API clients, and integration code. That can reduce implementation effort.
But writing a service is only one part of owning it. The harder questions remain:
- Who owns its data?
- What happens when a dependency is unavailable?
- How do events recover after failure?
- Can the service be deployed independently?
- How will engineers investigate production incidents?
AI-assisted development can also make it easier to create more services than a team genuinely needs. Generating five deployable applications may be straightforward. Maintaining five applications, their infrastructure, dependencies, security policies, and operational lifecycle is a different responsibility.
The same caution applies to AI-driven agents that call multiple backend services. They still operate over networks with latency, permissions, rate limits, retries, and partial failures.
Automation changes how software is built and used. It doesn't remove the fundamental constraints of distributed computing.
10. When Microservices Actually Make Sense
After discussing the drawbacks, it's important to recognize where microservices provide real value. They can be an excellent choice when the organization has problems that independent services genuinely solve.
Consider a large product with several engineering teams:
- Payments has strict reliability requirements.
- Search has different scaling patterns.
- Media processing involves expensive background workloads.
- Customer-facing features need to ship frequently without waiting for unrelated deployments.
In that environment, separating certain capabilities can provide meaningful benefits. Teams gain ownership. Services can scale independently. Failures can sometimes be isolated. And deployments can become more flexible.
But those benefits depend on how the system and organization are structured. Before extracting a service, I would ask:
- Does this component have a clear business responsibility?
- Does it need an independent release lifecycle?
- Can it own its data and contracts?
- Will separating it reduce coordination between teams?
- Do we have the operational capability to support it?
If the answers are unclear, keeping the component inside a well-structured monolith may be the more responsible decision.
AWS's guidance on decomposing monoliths recommends evaluating existing reliability, performance, coupling, business requirements, and dependencies before deciding what to extract. Its documented approaches include decomposition by business capability, decomposition by subdomain, and the Strangler Fig pattern for gradual migration.
The important point is that migration should be driven by a specific outcome, not by the assumption that smaller deployable units are automatically better.
11. The Engineering Decision That Matters Most
Software architecture isn't about choosing the most advanced technology available. It's about accepting the right trade-offs for the problem you're solving.
- A monolith centralizes deployment and runtime dependencies.
- Microservices distribute ownership, deployment, and failure boundaries.
Neither architecture guarantees maintainability. A poorly designed monolith can be painful. A poorly designed microservices system can be even more painful, because its problems now involve networks, infrastructure, and multiple data stores.
| Role | Priority |
|---|---|
| Backend engineers | Clean boundaries, reliable operations, and understandable dependencies |
| Senior engineers & architects | Recognizing when distribution creates genuine value |
| Tech leads | Aligning technical boundaries with the teams responsible for them |
| Engineering managers | Accounting for the ongoing cost of operating the architecture, not just building it |
A good architectural decision doesn't have to look impressive on a diagram. It has to help the organization deliver and maintain software reliably.
Final Thoughts
Microservices are powerful. But they're not a shortcut to good system design.
- If your modules are tightly coupled, splitting them across services won't automatically make them independent.
- If your data ownership is unclear, separate databases won't resolve the underlying domain confusion.
- If your team struggles to understand production behavior today, adding more network boundaries can make that problem significantly harder.
So:
- Start with clear responsibilities.
- Make dependencies visible.
- Design failure handling before production forces you to.
- Build observability into the system.
- Introduce independent services when the benefits justify their operational cost.
There is nothing outdated about a well-designed monolith. There is nothing inherently modern about having 30 microservices.
The best architecture isn't the one with the most services. It's the one that lets your team change software safely without making the whole system harder to understand.
Over to You
Has your team ever merged services back together, or found a distributed monolith hiding in your architecture? Tell me in the comments 👇
References and Further Reading
The architectural recommendations in this article are informed by official engineering documentation and established distributed systems patterns, reviewed in November 2026.
- Microsoft Azure Architecture Center: Microservices Architecture. Service boundaries, domain-driven design, independent deployment, and coupling.
- Microsoft: Data Considerations for Microservices. Data ownership, eventual consistency, distributed transactions, and event-driven communication.
- AWS Prescriptive Guidance: Decomposing Monoliths into Microservices. Migration strategies, business capability decomposition, and gradual modernization.
- OpenTelemetry: Semantic Conventions. Standardized observability across distributed applications.
- Google Cloud Well-Architected Framework. Architectural simplicity, operational excellence, and appropriate use of managed services.
For backend engineers, senior software engineers, software architects, technical leads, and platform engineering teams.
If this was useful, follow me here for more stories from the backend trenches, and subscribe to The Backend Tech Lead on Substack for weekly blueprints.

