Services Case Studies Architecture Review About Contact
Request a review →

Home / Guides / Build a SaaS that scales

How to build a SaaS that scales without a rebuild.

A plain-English guide for founders and product teams: the five early decisions that decide whether your SaaS grows smoothly or ends in a rewrite.

Rajesh Ayyavu, TenlyrUpdated 2026-11-03
What is already in place?Tick to build the stack
Data kept apartAccess rulesDatabase shapeBackground workMeasuring

0 of 5 ticked

Tick what you already have.

The short answer

You avoid a rebuild by getting five decisions right early. Keep each customer's data separated by design, put access rules in one place, shape the database for the questions you will ask at ten times today's size, move slow work out of the main path, and measure everything from the start. None of these needs a rewrite if you catch it early. All of them are expensive to change after hundreds of customers depend on the product.

Five early decisions

Data separation, access rules, database shape, background work, measuring.

Cheap early, costly late

None of them needs a rewrite if caught early.

Skip the heavy tools

Microservices and sharding are for a bigger product.

Five decisions that decide whether you rebuild

Each one is cheap to get right early and expensive to fix late.

ABAEvery row carries a customer IDOne shared filterenforced for allNot remembered by each developer,but enforced in one layer

1. Keep every customer’s data apart, by design

One shared layer enforces the customer ID on every table that holds customer data.

ScreensAdminAPIAccess layer: roles and permissionsData

2. Put access rules in one place

Roles and permissions live in a single layer every screen and API goes through.

PageDBone query per rowPageDBindexed, 20 per pageN+1 vs paged and indexed

3. Shape the database for tomorrow’s questions

Indexes, paging and no query-per-row.

The requestanswerA big export, in the backgroundexport running for minutesEveryone else keeps getting fast answers

4. Keep slow work off the main path

Emails, exports and AI calls run in background jobs with retries and limits.

alert linealert fires hereGrowth shows as a line before it is an outage

5. Measure from the start

Response time, errors, failed jobs, database load and cost per customer, with alerts.

What you do not need yet

Most early SaaS teams over-build in the wrong places.

Usually too early

  • Microservices
  • A container platform with many moving parts
  • Splitting the database across servers (sharding)

Spend the effort here instead

  • The five decisions above
  • They cost little early
  • They are what you will be glad of later

Those tools solve real problems, but they are the problems of a bigger product.

Signs you are drifting toward a rebuild

If you see two or more of these, get an independent look before the cost grows.

0 of 5 ticked

Tick what sounds familiar.

A sensible order of work

  1. This weekFind your ten slowest requests and check that one customer can never reach another’s data.
  2. This monthMove slow work to background jobs, add the missing indexes, and put access rules in one layer.
  3. Before a large customer or a big featureGet an independent architecture review so the foundation is checked by someone outside the team.

Keep reading

Rajesh Ayyavu

Written by Rajesh Ayyavu, founder and software architect at Tenlyr. He reviews SaaS products and fixes backend, database and AI problems. Last updated 2026-11-03. LinkedIn

Common questions

Do I need microservices to scale a SaaS product?

Usually not at the start. A well-organised single application on one database carries many SaaS products a long way. Microservices add cost and moving parts, so they make sense when separate teams or very different loads need to scale independently, not as a first step.

When should I think about multi-tenancy?

Before your second customer. Keeping each customer's data apart is much cheaper to build in from the start than to add after the product has hundreds of customers and thousands of queries.

Is a full rebuild ever the right answer?

Sometimes, when the core design cannot be changed safely and fixing it costs more than starting again. That is rare. Most products can be improved in stages, keeping what works and changing what does not.

How do I know if my database is the bottleneck?

Check your slowest queries and your database's CPU and connection usage during busy hours. If a few queries account for most of the waiting time, or the database is near its limits while the application servers are idle, the database is the bottleneck.

What should I measure first?

Response time for your slowest pages, errors, failed background jobs, database load and cloud cost per customer. These show growth problems as trends rather than as customer complaints.

Worried you will need a rebuild?

Take the free 30-question SaaS health checklist to see where the risk is, or request an Architecture Review. Rajesh replies personally within 2 business days.