Before choosing cloud services, define your business boundaries: customer, tenant, user, subscription, data ownership and service commitments. Then check six areas: tenant isolation in every query and background job, identity across organisations and roles, authoritative data with tested backups, idempotent integrations with retries, automated deployment with rollback, and monitoring that detects incidents before customers do. Answering these early is far cheaper than retrofitting them after growth.

01

Architecture begins with business boundaries

Define the customer, tenant, user, subscription, data ownership and service commitments before choosing cloud services.

Questions to answer first

Answer these before drawing any diagram, because they decide the data model, the permission model and much of the cost of running the platform.

  • Is a tenant a company, a team or an individual?
  • Can one user belong to several tenants?
  • Who owns the data, and what happens to it when a customer leaves?
  • Which features depend on the subscription plan?
  • What availability and support have you promised?

Start simple, leave room to grow

Most new SaaS products do not need a large microservices estate on day one. A well-structured application with clear module boundaries, a managed database and automated deployment is easier to run, and can be split later along the boundaries that real usage reveals.

Write down the non-functional requirements

Expected users and tenants in one and three years, peak traffic, data volume, acceptable downtime, recovery targets and the regions where data may be stored all shape the architecture. They do not need to be precise, but they need to exist, because a design that suits a hundred tenants can fail at ten thousand.

02

Identity and tenancy

Document how users join organisations, hold multiple roles, move between tenants and recover access. Every data query and background job must preserve tenant boundaries.

Choose an isolation model

Tenants can share a database with a tenant identifier on every row, have a schema each or have their own database. The AWS Well-Architected SaaS Lens describes tenant isolation as foundational, and notes that crossing a tenant boundary would be a significant and potentially unrecoverable event for a SaaS business. Choose the model by customer size, compliance needs and operating cost.

Enterprise identity

Larger customers often ask for single sign-on and their own user provisioning. Design the identity layer so an organisation can bring its own sign-in later without rewriting permissions.

Roles and permissions

Define permissions as actions on resources, group them into roles and let tenants assign those roles. Check permissions on the server for every request, never only in the interface, and test that a user in one tenant cannot reach another tenant's records by changing an identifier.

Plans and entitlements

Keep subscription plans, feature limits and usage quotas in data, not scattered through the code. A single entitlement check makes it possible to launch a new plan, run a trial or give one customer an exception without a release.

Tenant-aware background work

Scheduled jobs, queues, exports and reports are where tenant boundaries are most often forgotten. Carry the tenant identifier with every job, and design jobs so one large tenant cannot slow everyone else down.

03

Data and integrations

Choose authoritative systems, idempotent integration patterns and recovery procedures. Include migration, retention and deletion from the start.

  • Tenant isolation and encryption
  • Audit history
  • Backups and tested recovery
  • API versioning and rate controls
  • Webhook retries and dead-letter handling

Choose authoritative systems

For every important record, such as customers, invoices or subscriptions, decide which system is the source of truth. Other systems receive copies and never overwrite the original. Without that rule, integrations drift apart and nobody can say which value is right.

Idempotency in practice

Networks fail, so integrations retry. An idempotent operation can be repeated without doing the work twice. Stripe's API documentation shows the pattern: the client sends an idempotency key, so a request repeated after a connection error does not create a second object or perform the update twice. Apply the same idea to your own APIs and webhook handlers.

Test the recovery, not only the backup

A backup that has never been restored is an assumption. Restore into a separate environment on a schedule, time it and write down the steps. For API design and third-party connections, see API development and integration.

Plan the data lifecycle

Decide how long each kind of data is kept, how a customer exports their data, and how it is deleted when they leave, including from backups and search indexes. These rules are much easier to build in at the start than to retrofit once data has spread across services.

Encryption and secrets

Encrypt data in transit and at rest, keep credentials in a managed secrets store and rotate them. Where customers ask for it, consider per-tenant encryption keys, but weigh the operating cost before making it the default.

Reporting without slowing the product

Customers will ask for reports and exports. Running heavy reports against the main database slows the product for everyone, so plan a separate read store or reporting pipeline once usage grows.

04

Delivery and operations

A growing SaaS needs automated deployment, observability, security updates and capacity signals. The team should know how to detect an incident, roll back and communicate before the first major customer arrives.

Know your recovery targets

Agree how much data you could afford to lose and how long the platform may be unavailable after a failure. Those targets decide backup frequency, whether you need a standby region and how often you rehearse recovery. Write them down and test against them.

Measure stability as well as speed

DORA's metrics include failed deployment recovery time and change fail rate alongside deployment frequency. Tracking them shows whether the platform can absorb growth in releases as well as in users.

Environments and releases

Keep separate development, test and production environments defined in code, deploy through an automated pipeline and make every release reversible. Feature flags let you release code without exposing unfinished features, and roll out changes to some tenants before others.

Observability basics

Before the first major customer arrives, make sure the team can answer what is broken, for whom and since when.

  • Structured logs that carry the tenant and request identifiers
  • Metrics for errors, latency and saturation
  • Alerts that reach a person, with a written runbook
  • A status page or agreed way to tell customers about incidents

Capacity signals

Track the measures that predict trouble: database size and slow queries, queue length, error rates and cost per tenant. Review them monthly, so you add capacity or optimise before customers notice.

Security updates

Dependencies, operating systems and cloud services all receive security fixes. Automate dependency checks, patch on a schedule and treat an overdue critical update as a production issue.

Platforms with many moving parts

The ManagedPMO case study describes a property platform that joins tenant service requests, payments, utilities and IoT-linked access, and the Biologit case study lists microservices and Google Cloud among its technologies. For new builds, see cloud application development; for an existing product that has outgrown its first design, see SaaS platform modernization.

Sources

  1. Tenant isolation, SaaS Lens, AWS Well-Architected Framework, Amazon Web Services
  2. Idempotent requests, Stripe API reference
  3. DORA's software delivery performance metrics, DORA, dora.dev