One VPS per product versus one multi-tenant app

A shared multi-tenant app is efficient until a customer needs isolation. Separate machines cost more and keep failures, deploys, and data on a shorter leash.

There are two honest ways to host software for more than one customer. You can build one application that keeps everyone in the same system, carefully separated by a tenant id. Or you can give each product, or each customer, its own machine and its own database.

I have a bias, and I will say it first: when I can afford the operational cost, I like a VPS (or a small container host) per product. I do not think that is the right answer for every SaaS. I think it is the right answer more often than a lot of architecture diagrams suggest.

What isolation actually buys

On a shared app, a bad migration, a runaway query, or a leaked row is a problem for everyone. You can mitigate that with good tenancy, row-level security, rate limits, and a lot of tests. You should. You are still one deploy away from a bug that only shows up when two tenants share a table.

On a separate VPS, a bad release is still bad, but it is bad for that product. You can freeze one site, roll it back, or take a backup without rehearsing a platform-wide incident. Data is in a database that does not have to prove, every query, that the `WHERE tenant_id =` was not forgotten.

The other quiet win is versioning. One customer can stay on last week's release while you fix something. In a single multi-tenant deploy, everyone moves together, or you build a feature-flag platform that is its own product.

What you pay for that bias

You pay in money and in repetition. Five machines means five updates, five certificates, five places to watch disk. If you do not have a script and a backup habit, this model turns into five slightly different snowflakes, and the isolation you wanted becomes five ways to be surprised.

A multi-tenant app is more efficient at a small team and a large user count. One deploy, one set of metrics, one on-call. If your product is a single service and your customers expect to share improvements on the same day, that is a good fit.

How I decide

I ask:

  • Is a data mix-up a tolerable bug, or a career-ending one?
  • Do products actually share a domain model, or am I forcing them into one schema because hosting is easier?
  • Can I operate N small machines with a script, or would I be doing it by hand?

If the products are different, or the data is sensitive, or I already have a deploy script I trust, I lean toward separate hosts. If I am building one product for many similar customers and I am ready to treat tenancy as a first-class feature, I would build it that way and be strict about it.

There is no pure choice. Even a "single tenant" VPS still shares a provider, a DNS account, and your own attention. The question is where you want the walls, and whether you will actually maintain them.

Back to Journal