Skip to content
BEMS
Architecture4 min read

Start small, build right: why a small system still needs architecture

A small first version does not need to be a throwaway. Five foundations that let a small system grow without starting again.

By BEMS Technologies team ·

“Let’s just build something quick, and do it properly later.” It is one of the most common sentences in software, and one of the most expensive.

Later rarely comes. The quick version gets users, the users want features, and the features get added on top of foundations that were never meant to hold them. Every change takes longer than the last, until someone suggests starting again.

Starting small is right. Starting carelessly is not. This article is about the difference.

Small is not the same as careless

A small system does fewer things. A careless system does its few things in a way that makes the next thing hard.

The good news is that the foundations that keep a system healthy are not expensive. Most cost a little thought at the start, and save a great deal later.

Five foundations worth having from day one

1. Clear boundaries inside the code

Divide the system into modules that match the business: orders, customers, billing. Each module owns its own data and exposes a small, clear interface to the others.

This does not mean many separate services. One well-structured application, a modular monolith, is usually the right start. Clear boundaries mean that when one part needs to change, or one day to become its own service, it can, without untangling everything else.

2. A data model you can explain

Most long-term pain in software comes from data. Take an hour to name things properly, decide what is required, and write down what each field means. If you cannot explain the data model to someone in the business, it is probably wrong.

3. Security that is part of the design

Who can see what, and who can change what, should be decided at the start, not patched in after the first scare. Store the minimum personal data you need. Keep secrets out of the code. These cost almost nothing early and a great deal late.

4. Automatic checks on every change

Tests, type checks and linting that run on every change are the cheapest insurance there is. They let a small team move quickly without breaking what already works, and they let a new developer join without fear.

5. The ability to see what is happening

Logs, error reports and a few simple measures of how the system is used. When something goes wrong, and something will, you want to know before your customers tell you, and you want to know why.

What you can safely leave for later

Building right does not mean building everything. You can usually leave:

  • scaling for traffic you do not have yet;
  • features nobody has asked for;
  • splitting the system into many services;
  • elaborate configuration for cases that may never happen.

The aim is a system that is ready to grow, not one that pretends it already has.

Questions to ask whoever builds it

You do not need to be technical to check these. Ask, and listen for plain answers:

  1. How is the system divided into parts, and could one part change without breaking the others?
  2. Can you show me the data model and explain it in business terms?
  3. Who can see and change what, and where is that decided?
  4. What checks run every time the code changes?
  5. How will we know if something goes wrong in use?

Growing without starting again

When the foundations are in place, growth becomes a series of small, safe steps: a new module, a better screen, a part that moves to its own service when the load calls for it. The system you started with is the system you grow. That is what we mean by start small, build right, grow.

It is also how we are building our own product, KalviOS, which is in development, and how we approach engineering for everyone we work with. If you are planning a first version of your own, Product Engineering explains how we would go about it, or you can start a conversation.

Have a business problem, a product idea or a technology challenge?

Let's work out what technology can do for you.