AWS Builder Center

The Microservices Trap: Why You Should Build a Modular Monolith on AWS First

Microservices have become the default architecture for many teams, but the hidden costs of distributed systems often outweigh the benefits. Let's discuss why a Modular Monolith on Amazon ECS is a better starting point for 90% of projects.

Software Engineer and Solutions Architect
For the past few years, the tech industry has been obsessed with microservices. If you are starting a new project on AWS, the standard advice is usually to split everything into dozens of Lambda functions or deploy a massive EKS cluster.
But after years of maintaining complex distributed systems, many senior engineers are realizing a harsh truth: we are over-engineering our backends.
Here is why starting with a Modular Monolith is making a massive comeback.



1. The Distributed Data Nightmare

When you split a simple application into microservices, you instantly lose ACID database transactions.
Suddenly, a simple user checkout process requires you to implement the Saga pattern, manage Amazon SQS dead-letter queues, and use AWS Step Functions just to handle rollbacks. What used to be a single database commit in PostgreSQL is now a distributed nightmare of eventual consistency.

2. The Hidden Costs of Network Latency

In a monolith, calling another domain service is just a fast, in-memory method invocation.
In a microservices architecture, that same call involves:
  • Serializing a JSON payload
  • Opening an HTTP connection
  • Passing through API Gateways and VPC Link
  • Deserializing the payload
  • Dealing with IAM authentication at every step
This network overhead adds latency and significantly increases your AWS data transfer costs.

3. The Kubernetes (EKS) Overhead

Managing a Kubernetes cluster requires a dedicated DevOps team. You need to configure Helm charts, ingress controllers, service meshes, and pod autoscalers.
For 90% of startups and mid-sized enterprise projects, deploying a well-structured Spring Boot or Node.js Modular Monolith on Amazon ECS with AWS Fargate provides all the scalability you need, with zero infrastructure management.



When are Microservices actually useful?

Microservices are an organizational scaling tool, not a technical silver bullet.
You should only break a Modular Monolith into microservices when:
  1. Independent scaling is critical: One specific module requires 100x more compute power than the rest of the app.
  1. Team size: You have over 50 developers and merge conflicts are slowing down deployments.
Have we gone too far with the microservices hype? Do you prefer starting with Serverless, EKS, or a simple ECS Fargate monolith? Let's debate in the comments!
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article