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.

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

ConcernSingle-customer applicationSaaS product
———
CustomersOne organisationMany tenants with different sizes and needs
DataOne datasetMany datasets that must never mix
ConfigurationCustomised in codeConfigured per tenant without code changes
ReleasesPlanned with the customerContinuous, affecting all tenants
RevenueProject feeSubscriptions, usage, upgrades, churn
OperationsOften handed overYour 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.

ModelDescriptionSuitsTrade-offs
————
Pool (shared)All tenants share application and database; rows tagged with tenant IDMany small and mid-size customersMost efficient; isolation depends on application discipline; noisy neighbours
Schema or database per tenantShared application; separate schema or database per tenantCustomers wanting stronger separation or per-tenant backupsMore operational work per tenant; migrations across many databases
Silo (dedicated stack)Separate deployment per tenantLarge, regulated or high-load customersStrongest isolation; highest cost and slowest to operate
Bridge (mixed)Shared for most components, dedicated for sensitive or heavy ones; or tiers by customer sizeProducts serving both small and enterprise customersFlexibility 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:

  1. Tenant context from authentication: derive the tenant from the signed-in identity or token, never from a parameter the client can change.
  2. Enforce at the data layer: use database row-level security, scoped repositories or separate schemas so queries cannot omit the tenant filter.
  3. Isolate files and search indexes: object storage paths, search indexes and caches must be tenant-scoped too.
  4. Isolate background jobs: jobs carry tenant context and cannot process another tenant’s data.
  5. Scope encryption keys where customers or regulations require it.
  6. Limit resource use per tenant: rate limits and quotas to contain noisy neighbours.
  7. Tenant-aware logging: include tenant IDs in logs and traces, without logging sensitive data.
  8. Support access controls: staff access to customer data is approved, time-limited and logged.
  9. Automated isolation tests: tests that try to read and modify another tenant’s data through every API.
  10. 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.

StateHow it startsUser accessCommunicationData
—————
TrialSign-upFull or limited featuresOnboarding emails; trial ending remindersKept
ActivePayment method added or invoice paidPlan featuresReceipts, usage noticesKept
Past duePayment failsFull access during grace periodPayment failure notices; retry scheduleKept
RestrictedGrace period ends unpaidRead-only or limitedFinal notices; how to restoreKept
CancelledCustomer cancels or non-payment finalNo access after period end; export availableConfirmation; export instructionsKept for a stated retention period
DeletedRetention period ends or deletion requestedNoneDeletion confirmationDeleted, including backups per policy
ReactivatedPayment or renewalPlan features restoredWelcome backRestored 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

AreaMinimum for launch
——
MonitoringUptime checks, error rates, latency, background job failures, per-tenant views
Incident responseOn-call rota, runbooks, status page, customer communication templates
Backups and recoveryAutomated backups, tested restores, recovery time and point objectives
SecurityVulnerability management, access reviews, dependency updates, penetration testing before major releases
ReleasesAutomated pipeline, feature flags, safe database migrations, rollback plan
SupportTicketing, tenant lookup tools with audited access, knowledge base
Cost trackingCloud 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.

  1. AWS Well-Architected SaaS Lens: Silo, pool, and bridge models — Description of the three tenancy patterns
  2. Netguru: SaaS Development Challenges — Reviewed as a baseline; covers general challenges without tenancy models or billing state design

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.