Engineering
Multi-tenant SaaS: what to get right before your second customer
Six decisions that cost almost nothing on day one and a great deal in year two.
Most SaaS products begin as software for one customer. The trouble starts when the second customer signs and the product was never designed to tell them apart.
These are the six decisions we make on every platform before the first line of feature code.
1. Your first customer is a tenant, not the owner
When we built Harbour, the first import business became tenant one. Nothing in the code assumes it is the only one, so the next sale needs no rewrite.
2. Isolate data in the database, not just the screens
Hiding another tenant's data in the interface is not isolation. Row-level security in PostgreSQL makes the database itself refuse cross-tenant reads. On Kleidi, a test fails if a new table forgets it.
3. Treat branding as data
Logos, colours and names belong in tenant settings, not in the code. Portals then carry each customer's brand without a deploy.
4. Model roles early
Decide who can see internal notes, who can invite users and who can delete things. Retro-fitting permissions touches every screen.
5. Write an audit trail from day one
An append-only log of who changed what answers support questions, satisfies auditors and costs very little if it is there from the start.
6. Keep billing out of the core
Model plans and limits in your own data and let a payment provider take the money. You can then change prices without changing the product.
If you are planning a platform, our SaaS development service starts with exactly this checklist.
Let's make an impact.
Tell us what you are building. We reply within one working day with next steps and a time for a call.