Home / Insights / Web and SaaS Development
Web and SaaS Development
Planning a SaaS Product around Tenancy, Billing and Operations
SaaS products succeed or struggle on decisions that are not features: how tenants are isolated, how billing states control access, how customers are onboarded and offboarded and how the service is run. This guide covers those decisions with a tenant isolation checklist and a billing state matrix.
TopicsWeb and SaaS DevelopmentArchitecture and ModernizationSoftware Costs and Budgets
Key takeaways
- A SaaS product is a service you operate for many customers, not just an application you ship. Tenancy, billing, identity and operations need design from the start.
- Choose a tenancy model (shared, separate or mixed) by isolation needs, customer size, compliance and cost.
- Enforce tenant isolation in one place and test it continuously; a single missing filter can expose another customer’s data.
- Model subscription states explicitly and connect them to what users can do, including trials, failed payments, cancellations and data retention.
- Budget for operations: monitoring, support, security, backups and the cost per tenant as you grow.
On this page
- SaaS is a service, not only software
- Choosing a tenancy model
- Tenant isolation checklist
- Identity and roles
- Subscription and billing states
- Onboarding and offboarding
- Configuration without custom code
- Architecture: start simple, keep options
- Operations from day one
- Costs that grow with customers
- Frequently asked questions
- Sources and methodology
Building a SaaS product is often planned like building any web application: list the features, design the screens, estimate the build. The features matter, but SaaS products tend to succeed or struggle on decisions that are less visible: how customers’ data is separated, what happens when a payment fails, how a new customer is set up and how an unhappy one leaves, and how the service is monitored and supported at three in the morning.
This guide covers those decisions for founders and product leaders planning a B2B SaaS product, using an illustrative service-management SaaS for maintenance companies as the running example.
SaaS is a service, not only software
| Concern | Single-customer application | SaaS product |
|---|---|---|
| — | — | — |
| Customers | One organisation | Many tenants with different sizes and needs |
| Data | One dataset | Many datasets that must never mix |
| Configuration | Customised in code | Configured per tenant without code changes |
| Releases | Planned with the customer | Continuous, affecting all tenants |
| Revenue | Project fee | Subscriptions, usage, upgrades, churn |
| Operations | Often handed over | Your responsibility, continuously |
Each SaaS difference adds design decisions to the first release.
Choosing a tenancy model
AWS’s SaaS guidance describes three broad patterns: silo, where tenants have dedicated resources; pool, where tenants share infrastructure; and bridge, a mix of the two across components. The same ideas apply on any cloud.
| Model | Description | Suits | Trade-offs |
|---|---|---|---|
| — | — | — | — |
| Pool (shared) | All tenants share application and database; rows tagged with tenant ID | Many small and mid-size customers | Most efficient; isolation depends on application discipline; noisy neighbours |
| Schema or database per tenant | Shared application; separate schema or database per tenant | Customers wanting stronger separation or per-tenant backups | More operational work per tenant; migrations across many databases |
| Silo (dedicated stack) | Separate deployment per tenant | Large, regulated or high-load customers | Strongest isolation; highest cost and slowest to operate |
| Bridge (mixed) | Shared for most components, dedicated for sensitive or heavy ones; or tiers by customer size | Products serving both small and enterprise customers | Flexibility at the cost of complexity |
Many products start pooled and add dedicated options for enterprise tiers.
For the illustrative service-management SaaS, a pooled model suits small maintenance firms, with a dedicated database option for large customers that require it contractually.
Tenant isolation checklist
Whatever the model, isolation must be designed and tested:
- Tenant context from authentication: derive the tenant from the signed-in identity or token, never from a parameter the client can change.
- Enforce at the data layer: use database row-level security, scoped repositories or separate schemas so queries cannot omit the tenant filter.
- Isolate files and search indexes: object storage paths, search indexes and caches must be tenant-scoped too.
- Isolate background jobs: jobs carry tenant context and cannot process another tenant’s data.
- Scope encryption keys where customers or regulations require it.
- Limit resource use per tenant: rate limits and quotas to contain noisy neighbours.
- Tenant-aware logging: include tenant IDs in logs and traces, without logging sensitive data.
- Support access controls: staff access to customer data is approved, time-limited and logged.
- Automated isolation tests: tests that try to read and modify another tenant’s data through every API.
- Per-tenant export and deletion: proven procedures to export or delete one tenant’s data completely.
Identity and roles
B2B customers expect to manage their own users. Plan for:
- Roles within a tenant such as owner, admin, manager, technician and read-only.
- Single sign-on with customers’ identity providers for larger customers, usually through standard protocols such as SAML or OpenID Connect.
- User provisioning and deprovisioning, including automatic removal when someone leaves the customer’s organisation.
- Users in several tenants, for example a contractor who works for two customers.
- Audit logs customers can view: who did what and when.
Subscription and billing states
Billing is not just taking payments. Each subscription state should determine what users can do, what you communicate and what happens to data.
| State | How it starts | User access | Communication | Data |
|---|---|---|---|---|
| — | — | — | — | — |
| Trial | Sign-up | Full or limited features | Onboarding emails; trial ending reminders | Kept |
| Active | Payment method added or invoice paid | Plan features | Receipts, usage notices | Kept |
| Past due | Payment fails | Full access during grace period | Payment failure notices; retry schedule | Kept |
| Restricted | Grace period ends unpaid | Read-only or limited | Final notices; how to restore | Kept |
| Cancelled | Customer cancels or non-payment final | No access after period end; export available | Confirmation; export instructions | Kept for a stated retention period |
| Deleted | Retention period ends or deletion requested | None | Deletion confirmation | Deleted, including backups per policy |
| Reactivated | Payment or renewal | Plan features restored | Welcome back | Restored if within retention |
Illustrative billing state matrix. Grace and retention periods are business decisions; state them in your terms.
Also decide how upgrades, downgrades and seat changes take effect (immediately or at renewal, with or without proration), how plan limits are enforced (hard block or warning) and how usage is metered if you charge by use. Payment providers handle card processing, invoices and tax calculation for many countries, but you still own the state model and how it controls access.
Onboarding and offboarding
- Self-service sign-up for small customers; assisted onboarding for larger ones.
- Guided setup: company details, users, a first useful task. For the example SaaS, importing customers and technicians and scheduling a first job.
- Data import tools with validation and clear error messages.
- Offboarding: data export in a usable format, confirmation of deletion and a clean revocation of integrations and API keys.
Configuration without custom code
Different customers will want different workflows. Decide early what is configurable per tenant (fields, statuses, templates, notifications, integrations) and resist one-off code changes for individual customers. Each customer-specific branch makes every future release more expensive.
Architecture: start simple, keep options
A well-structured modular monolith with clear module boundaries is usually the right start for a new SaaS product: faster to build and simpler to run. Split services out when there is a clear reason, such as different scaling needs or team ownership. Our comparison of MACH architecture and the modular monolith explains the trade-offs. If customers or partners will integrate with your product, plan its public API and access rules early; see API management.
Operations from day one
| Area | Minimum for launch |
|---|---|
| — | — |
| Monitoring | Uptime checks, error rates, latency, background job failures, per-tenant views |
| Incident response | On-call rota, runbooks, status page, customer communication templates |
| Backups and recovery | Automated backups, tested restores, recovery time and point objectives |
| Security | Vulnerability management, access reviews, dependency updates, penetration testing before major releases |
| Releases | Automated pipeline, feature flags, safe database migrations, rollback plan |
| Support | Ticketing, tenant lookup tools with audited access, knowledge base |
| Cost tracking | Cloud cost by environment and, as you grow, by tenant or plan |
These are part of the product, not extras to add after launch.
Costs that grow with customers
SaaS costs do not stop at the build. Plan for cloud infrastructure that scales with usage, third-party services charged per user or transaction, payment processing fees, support staff, security and compliance work and ongoing development. Track gross margin per plan so pricing covers the cost to serve. Our guide to software maintenance costs helps with the ongoing budget.
Frequently asked questions
Should a new SaaS start multi-tenant?
Usually yes, with a pooled model and strong isolation, unless your first customers require dedicated environments. Retrofitting multi-tenancy later is expensive.
Do we need to build our own billing?
Rarely. Use a payment and subscription provider, but design your own state model and connect it to access control.
When should we offer single sign-on?
When you sell to mid-size and larger organisations; many expect it, and it often belongs in higher-priced plans.
How do we handle customer-specific requests?
Prefer configuration and integration points over custom code. Agree a clear policy for paid custom work so it does not fragment the product.
Sources and methodology
Facts in this article were checked against the sources below. Directory data (ratings, review counts, rate bands and team sizes) changes over time and is shown as published on the date accessed. Illustrative examples are labelled as such and are not quotes.
- AWS Well-Architected SaaS Lens: Silo, pool, and bridge models — Description of the three tenancy patterns
- Netguru: SaaS Development Challenges — Reviewed as a baseline; covers general challenges without tenancy models or billing state design
Related reading
Continue your research
Building or rebuilding a SaaS product?
Share your product and target customers. We will help you choose a tenancy model, design billing and access states and plan operations from the first release.
