A firm asked me to turn their internal tool into a product other companies could run under their own brand. The obvious answer was one deployment per customer. I put every customer in one deployment instead, and I'd make the same call again.
The tool was an investor-matching platform for a venture-capital firm: Django and Vue, where a fundraising startup builds a profile and gets matched against a large curated database of investors. It started as the firm's internal MVP in 2022. In mid-2024 they decided it was good enough to sell, because other companies wanted to run it as their own branded matching platform.
Per-client deployments are the safe-looking move. Each customer gets its own stack, so isolation comes free from the infrastructure. The cost arrives later: N copies to deploy, N places to apply a fix, N versions drifting apart.
I went multi-tenant inside one deployment. A middleware resolves the tenant from the incoming request. Tenant-owned models inherit from a SiteModel base class that scopes every query to that tenant, so one customer can never read another's data. Each tenant is its own Django Site, with its own logo, its own trial and free-tier limits, and its own AI configuration.
That last part turned out to be the most product-shaped decision in the whole system. A whitelabel customer doesn't want their deal analysis running through my AI account. They want their own vendor, their own billing and their own compliance posture. So each tenant carries an llm_vendor (Claude by default, or GPT, Gemini or Perplexity) plus the API keys the tenant supplies, and the AI layer resolves the vendor and keys from the tenant when it builds a client. Switching vendors is a config change, not a code change. Building that abstraction cost more than hardcoding one provider, and it turned "which LLM do you use?" from a blocker in a sales call into a config field.
The tradeoff is real. With separate deployments, isolation is a boundary you get for free. In one deployment it becomes a correctness property you defend on every query, for as long as the product lives. The savings from one codebase, one CI pipeline and one place to fix a bug for everyone were much larger than the cost of being disciplined about scoping.
If you're about to make the same move, these are the places I'd check first, because they're where "every query is scoped" quietly stops being true.
Anything that runs without a request. If middleware resolves the tenant, a Celery task, a cron command or a shell session has no tenant unless you pass one in. Decide what an unscoped query does there, and make the answer "fail", not "return everything".
Anything that skips the base class. Raw SQL, reporting queries, the admin, a new model someone forgot to inherit from the scoped base. One unscoped path is enough.
Per-tenant credentials. Once customers hand you their own LLM keys, you are holding secrets for someone else. They need the same care as your own: who can read them, whether they ever reach a log, and how a tenant rotates one.
The way I'd put it to a founder: pick the deployment model by where you'd rather pay. Many deployments cost you operations work every week. One deployment costs you discipline on every query. The second is cheaper only if scoping is hard to bypass, not something everyone has to remember.
The full case study: https://kdpisda.in/case-studies/investor-matching-platform/