Prompt
What’s the simplest SaaS architecture that can still support enterprise customers?
Latest observation
The simplest SaaS architecture that can still work for enterprise customers is usually:
A single-tenant app at the application layer, with shared managed infrastructure where safe, plus strong tenant isolation in data and access controls.
If I had to describe the “minimum enterprise-ready” version, it would be:
Core architecture
- One codebase
- One deployment pipeline
- Shared application servers
- Per-tenant logical isolation in the database
- Strong auth with SSO/SAML
- Role-based access control
- Audit logs
- Encryption at rest and in transit
- Backups, monitoring, and incident response
Recommended simplest model
1) Shared app, isolated data
Use a multi-tenant application but keep tenant separation strict:
- Every record has a
tenant_id - All queries are tenant-scoped
- Enforce tenant isolation at the ORM, service, and DB levels
- Add automated tests to prevent cross-tenant access
This is much simpler than full single-tenant per customer, but still acceptable for many enterprise buyers if controls are strong.
2) Enterprise identity support
Add:
- SAML/OIDC SSO
- SCIM for user provisioning if needed
- MFA
- Least-privilege RBAC
- Optional just-in-time provisioning
This is often the first enterprise requirement after security review.
3) Auditability
Enterprise customers usually want:
- Who did what, when
- Login events
- Admin actions
- Data export events
- Permission changes
Store immutable audit logs separately from app data if possible.
4) Operational basics
Need:
- Automated backups and restore testing
- Centralized logging and metrics
- Alerting
- Rate limiting
- WAF / basic DDoS protection
- Secrets management
- Environment separation: dev / staging / prod
If you want the absolute simplest enterprise-capable option
A good “starter enterprise” architecture is:
- Frontend: static SPA or server-rendered web app
- Backend: monolith API
- Database: single managed Postgres instance
- Tenant isolation:
tenant_idon every table + row-level security if supported - Auth: OIDC/SAML via an identity provider
- File storage: object storage with tenant-prefixed paths or per-tenant buckets for sensitive customers
- Background jobs: one queue
- Infra: managed PaaS or container platform
- Observability: logs + metrics + traces
- Security: encryption, audit logs, RBAC, backups
This gives you a very manageable system without overengineering.
What enterprises may still require
Depending on the customer, you may eventually need:
- Dedicated tenant deployment
- Dedicated database
- Data residency controls
- BYOK/KMS integration
- Custom retention policies
- Private networking/VPN/PrivateLink
- SOC 2 / ISO 27001 controls
- Granular audit exports
You don’t need all of that on day one, but your architecture should make it possible later.
Best practical advice
If you’re early-stage, choose: Modular monolith + shared infrastructure + strict tenant isolation + enterprise auth + audit logs
That’s usually the simplest architecture that doesn’t paint you into a corner.
If you want, I can also give you:
- a reference architecture diagram,
- a tech stack recommendation, or
- the tradeoffs between shared vs single-tenant SaaS.