
Start Simple, Scale Smart: How Applications Grow
Explore how applications grow from simple monoliths to scalable systems. Learn about microservices, decoupling, vertical and horizontal scaling, load balancing, and high availability through a practical payment app example.
Series: The Anatomy of Modern Systems: From Architecture to Scalability (5 articles)
- 2Start Simple, Scale Smart: How Applications Grow This article
Imagine you're building a payment app. At first, a single application handles everything just fine. Then more users arrive, requests pile up, and one server struggles to keep up. Should you split the app into microservices, upgrade the server, or add more servers?
These are the architectural decisions that shape how a system grows. In this post, we'll explore monoliths, microservices, decoupling, vertical and horizontal scaling, and load balancing to understand how to build systems that scale without adding unnecessary complexity.
Before deciding how to scale, we need to understand how an application is structured in the first place. Let's start with two common architectural approaches: monoliths and microservices.
Monolith vs microservices
The monolith
In a monolithic architecture, most application functions live inside one deployable application. Login, payments, reports and notifications are all part of the same program, usually sharing one database.

A monolith is simple to build, test and deploy at the start. The cost shows up later: as the application grows, a small change means redeploying everything, and you cannot scale just the busy part.
Microservices
Microservices divide the application into smaller services that can be developed, deployed and scaled independently.

The main advantage is independent scaling and deployment. If payments are busy and notifications are not, you scale only the payment service. The main challenge is that calls which were simple function calls are now network calls. They can be slow, fail halfway, or time out, so distributed communication and failure management get much harder.
Which one should you choose?
| Monolith | Microservices |
|---|---|---|
Development at the start | Simple | More setup |
Deployment | One unit | Per service |
Scaling | Whole app | Per service |
Failure handling | Mostly in-process | Network failures everywhere |
Operational cost | Low | High |
Best when | Small team, early product | Large team, clear service boundaries, uneven load |
A monolith is simpler to develop and operate at first, while microservices allow independent deployment and scaling. A large payment platform may benefit from microservices, but adopting them too early adds operational complexity without necessarily solving a real problem.
Microservices are one way to achieve decoupling, but they aren't the only way. Even within a monolithic application, well-defined boundaries can reduce dependencies between components. To understand why this matters, let's look at what decoupling means and how it helps our payment system.
Decoupling
Decoupling means reducing direct dependency between components, so that one can change or fail without directly breaking another.
Take the payment service and the notification service. If the payment service calls notifications directly and waits, a slow notification system slows down payments. If a queue sits between them, the payment service drops a message and moves on. Notifications can be slow, or even down, and payments keep working.

Decoupling and microservices are not the same thing. Microservices are one architectural approach that can help you achieve decoupling. A well-organised monolith with clear internal boundaries can be well decoupled, and a badly designed set of microservices that all call each other directly can be tightly coupled. We will build the queue idea fully in Post 5.
Scaling: vertical vs horizontal
When traffic grows, you have two ways to add capacity.
Vertical scaling means giving an existing server more CPU, memory or other resources.
It is simple, because the application does not change. But there is a hardware limit, and one bigger server is still one server.

Horizontal scaling means adding more servers or instances to share the load.

It gives more capacity and built-in redundancy, because losing one instance does not stop the system. The price is complexity: you now need a way to spread requests, and your application must cope with running as several copies. The next section covers exactly that.
| Vertical | Horizontal |
|---|---|---|
How | Bigger machine | More machines |
Simplicity | High | Lower |
Upper limit | Hardware | Much higher |
Redundancy | None by itself | Yes |
Scale out, scale in, and scaling policies
- Scale out: adding instances to handle increased traffic.
- Scale in: removing instances when traffic drops, so you stop paying for idle capacity.
- Scaling policy: the rule that decides when to do either. Common triggers are CPU utilization, request rate, queue length, or a schedule such as "add capacity before the evening rush".
State, sessions and load balancing
Once several copies of the app are running, two questions appear: which copy handles each request, and where does a user's login live?
Stateless vs stateful
A stateless application keeps no session information on one particular server, so any healthy server can handle any request. That makes scaling out and failover easy. A stateful application remembers a user's earlier interactions, so a request may depend on one server or on a shared session store.
Session state (login details, an active shopping session) can live in a database, a distributed cache, a session store, or a client-side token. Sticky sessions pin a user to one server. They help stateful apps, but tie traffic to that server and reduce flexibility. A JWT is a token issued after login that the client sends with every request; any server can validate it, which keeps the servers stateless.

Load balancer
A load balancer spreads incoming requests across healthy servers. Health checks tell it which servers are healthy; a server that fails one stops receiving traffic.
Users ↓Load Balancer ├── Server A ├── Server B └── Server CSingle points of failure and high availability
A single point of failure is a component whose failure takes the whole system down. The load balancer can be one, so we add redundancy: extra components that take over when the primary fails. High availability means the system keeps operating even when some components fail.
The payment-system thread

Our payment app starts as a monolith: login, payments, reports and notifications in one application, one database. That is the right call for a small team shipping fast.
As traffic grows we do not rewrite it. We first scale out, running several identical copies. Then we decouple the one part that should not slow payments down, notifications, by putting a queue between them. Only if a clear boundary emerges, such as payments needing very different scaling from reporting, do we split that part into its own service.
Common mistakes
- Microservices on day one. You pay the operational cost before you have the problem they solve.
- Treating "decoupled" and "microservices" as synonyms. Services that call each other directly and wait are still tightly coupled.
- Scaling the wrong way. Buying a bigger server for a problem that needs redundancy, or adding servers when a single slow query is the real bottleneck.
- No scaling policy. Scaling out by hand during an incident is too late.
Key takeaways
- A monolith is simpler to start with. Microservices buy independent scaling and deployment at the cost of distributed-system complexity.
- Choose the structure from your requirements, not from fashion.
- Decoupling means one component can change or fail without directly breaking another. Microservices can help, but they are not the only way.
- Vertical scaling is simple but capped. Horizontal scaling adds capacity and redundancy but needs more design.
- A scaling policy turns "add servers when busy" into a rule.
Next up
Your request now has to reach the system. In Post 4 we follow it across the network, through DNS, TCP and TLS, and into the API that fronts our payment service.
Series: The Anatomy of Modern Systems: From Architecture to Scalability (5 articles)
- 2Start Simple, Scale Smart: How Applications Grow This article
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article