Back to journalNotes from the craft

System Design

What Is Software Architecture, and Why Does It Matter?

A practical introduction to software structure, common backend and frontend approaches, and choosing a design your team can maintain.

Nyi Nyi Zin

Software developer

What Is Software Architecture, and Why Does It Matter?
On this page

Adding features may feel easy when you start an application. As the project grows, changing one part can break another, and understanding existing code can take longer than writing new code.

Software architecture is one of the things we consider to reduce these difficulties.

Building a house involves planning the rooms, plumbing, and electrical connections. Building software also involves deciding how to divide the system, how its parts communicate, and what each part is responsible for.

The system’s fundamental structure and these important design decisions form its software architecture. They need attention at the beginning and adjustment as requirements change.

Why architecture matters

An architecture suited to the project can help a team:

  • Understand which parts a new feature may affect
  • Locate, test, and fix bugs more easily
  • Divide responsibilities and work together
  • Extend and maintain the system over time

Common approaches on the backend

1. Monolithic

Parts such as users, products, and orders are built as one application and deployed together. This can make a new project simpler to build and manage.

A monolith can still have clean internal boundaries and code separated by responsibility.

2. Microservices

Business responsibilities such as orders, payments, and inventory are separated into services that can be deployed independently.

You can scale an individual service as needed, but communication, data consistency, and diagnosing failures become more complicated. A growing system alone is not enough reason to choose microservices.

3. Layered architecture

Code is divided into layers by responsibility. For example, one layer accepts requests, another handles business rules, and another communicates with the database.

Rules about how layers call each other help prevent responsibilities from becoming mixed together.

4. Event-driven architecture

A part of the system publishes an event when something happens. Other relevant parts receive it and respond.

For example, an OrderPlaced event can lead the inventory component to check stock and the notification component to send a message.

5. Clean architecture

Core business logic is structured so it does not depend directly on framework or database details.

For example, separating discount rules from database access code lets you test those rules without connecting to the database.

Frontend structure and rendering approaches

Component-based development

The interface is divided into components such as a navigation bar, product card, and search box. This allows UI reuse and makes individual parts easier to maintain.

SPA — Single-Page Application

The browser updates the necessary content without reloading the entire page for every navigation. When implemented well, this can make moving between views feel smooth.

SSR and SSG

These are rendering approaches that differ in when the page’s HTML is generated.

  • SSR generates HTML on the server when a request arrives.
  • SSG generates HTML ahead of time during the build.

Both can help make content available early and readable by search engines. Good SEO also depends on other factors.

Micro frontends

The frontend is divided by business area so teams can build and release their own parts independently. This can help when many teams work together, but they must coordinate to keep the interface and experience consistent.

Do you have to choose only one?

These approaches can be combined. A backend can be deployed as a monolith while using layers internally. A component-based frontend can also use SSR or SSG.

Choose architecture based on project requirements, team skills, and the ability to maintain the system. Start with a simple structure that meets the current need, then extend it for clear reasons as real requirements emerge.

System Design

Written by

Nyi Nyi Zin

I build for the web, mobile, and everything behind the scenes. This is where I share what I learn along the way.

More about me