SaaS Domain Fundamentals

Learn SaaS domain fundamentals, including tenants, organizations, users, subscriptions, plans, features, entitlements, usage metering, and the core architecture of multi-tenant SaaS applications.

Software as a Service (SaaS) is a software delivery model in which applications are hosted and operated by a provider and made available to customers over the internet. Instead of installing and managing separate software instances, customers access the application through a web browser, mobile application, or API.

SaaS platforms must support multiple customers, secure data isolation, subscription management, configurable features, usage tracking, availability, and scalable operations. Understanding these business concepts is essential before designing the technical architecture.

This article introduces the core SaaS domain concepts, business workflows, data models, architecture components, and practical design considerations used in modern enterprise SaaS platforms.

Domain Navigation

Previous: Capital Markets | Parent: Domain Knowledge

Next: Multi-Tenant Architecture

Learning Flow

flowchart TD
    A[SaaS Business Model]
    B[Organizations and Tenants]
    C[Users and Memberships]
    D[Products and Plans]
    E[Subscriptions and Entitlements]
    F[Usage Metering and Billing]
    G[SaaS Application Architecture]

    A --> B
    B --> C
    C --> D
    D --> E
    E --> F
    F --> G

1. What Is SaaS?

SaaS is a software model in which a provider delivers an application as a managed service. The provider operates the infrastructure and application, while customers use the service according to their subscription or contractual agreement.

Examples include customer relationship management systems, collaboration tools, financial applications, developer platforms, and AI-powered business applications.

Traditional software versus SaaS

Area Traditional software SaaS
Installation Often installed by the customer Usually accessed online
Infrastructure Customer-managed or separately hosted Primarily provider-managed
Updates Customer or administrator may coordinate upgrades Provider deploys managed updates
Pricing Often perpetual licenses or maintenance Commonly subscription or usage-based
Customer isolation May use separate installations May use shared or dedicated environments
Scaling Often requires customer-side planning Provider manages service scaling
Operations Split between customer and vendor Primarily managed by the provider

SaaS is not defined solely by hosting an application in the cloud. It also involves a service delivery model, operational responsibilities, customer lifecycle management, and commercial rules.

2. Core SaaS Domain Concepts

A SaaS platform needs a clear domain model to represent who uses the system, which customer owns the data, what the customer has purchased, and which capabilities are available.

2.1 Organization

An organization represents a business customer or group that uses the SaaS platform.

Examples include a bank, insurance company, healthcare provider, software company, or consulting firm.

An organization may contain multiple teams, departments, and users.

2.2 Tenant

A tenant is the logical customer boundary within a SaaS platform. It is commonly associated with an organization, but the concepts are not always identical.

The organization represents the business entity, while the tenant represents the application's customer context and isolation boundary.

A tenant may have its own configuration, data, users, security policies, usage limits, and subscriptions.

2.3 User

A user represents an individual identity that can authenticate and interact with the application.

A user may belong to multiple organizations or tenants, with different roles in each.

For example, a consultant might be an administrator in one tenant and a read-only user in another.

2.4 Membership

A membership connects a user to an organization or tenant.

It defines the user's relationship with that customer and may include roles, status, invitation details, and membership-specific permissions.

2.5 Product and Plan

A product represents the service offered by the provider. A plan defines a commercial package for that product.

For example, a document intelligence SaaS product might offer Free, Professional, and Enterprise plans.

Plans can define pricing, quotas, feature access, support levels, and service limits.

2.6 Subscription

A subscription represents a customer's enrollment in a plan for a defined period or billing arrangement.

It may include a lifecycle such as trialing, active, past due, canceled, or expired.

The exact lifecycle depends on the business model and billing rules.

2.7 Entitlement

An entitlement determines which features, resources, or operations a customer is allowed to use.

For example, a plan might permit 10 users, 100 document uploads per month, and 50,000 AI tokens per day.

Entitlements are application access rules. They should not be confused with authentication or basic user roles.

2.8 Usage Meter

A usage meter records consumption of a measurable resource, such as API requests, storage, document processing, or AI tokens.

Usage records may drive quotas, billing calculations, analytics, and abuse prevention.

3. How SaaS Domain Concepts Work Together

Consider a fictional SaaS platform named VenuAI Workspace that provides document search and AI-assisted knowledge management to business customers.

Two companies subscribe to the same application:

  • Tenant A: A financial services company.
  • Tenant B: A healthcare organization.

Both tenants use the same product, but their users, documents, settings, usage, and access policies must remain appropriately isolated.

Each tenant has its own subscription and entitlements. Users authenticate and receive permissions according to their membership and assigned roles. When a user uploads a document or invokes an AI feature, the platform checks the tenant context, authorization, subscription status, and applicable usage limits.

flowchart TD
    P[SaaS Provider]
    P --> APP[SaaS Product]
    APP --> A[Tenant A]
    APP --> B[Tenant B]

    A --> AU[Users and Roles]
    A --> AS[Subscription A]
    A --> AD[Tenant A Data]

    B --> BU[Users and Roles]
    B --> BS[Subscription B]
    B --> BD[Tenant B Data]

    AS --> AE[Entitlements A]
    BS --> BE[Entitlements B]

The key principle is that customers can share the same product and infrastructure without receiving unauthorized access to one another's data.

4. SaaS Customer Lifecycle

A SaaS platform typically supports a customer lifecycle that begins with onboarding and continues through subscription changes, usage, renewal, and termination.

flowchart TD
    A[Customer Registration]
    B[Create Organization and Tenant]
    C[Invite or Provision Users]
    D[Select Product Plan]
    E[Activate Subscription]
    F[Apply Entitlements]
    G[Use SaaS Features]
    H[Track Usage]
    I[Renew, Upgrade, Downgrade, or Cancel]

    A --> B --> C --> D --> E --> F --> G --> H --> I

Typical lifecycle stages

  1. Registration: A customer creates an account or is provisioned by a sales or administration team.
  2. Tenant provisioning: The platform creates the tenant record and initializes its configuration.
  3. User onboarding: Users join through invitations, identity federation, or enterprise provisioning.
  4. Plan selection: The customer chooses a plan or receives an assigned enterprise contract.
  5. Subscription activation: The billing or subscription service confirms the applicable commercial state.
  6. Entitlement assignment: The platform determines which capabilities and quotas are available.
  7. Service consumption: Users access the application's features.
  8. Usage tracking: The system records consumption and evaluates quotas.
  9. Lifecycle management: The customer renews, changes plans, suspends, or cancels the subscription.

These stages may involve asynchronous events and external services. For example, a payment provider may confirm a transaction through a webhook before the platform activates a paid subscription.

5. SaaS Subscription and Entitlement Model

Subscription status and feature access are related but separate concerns.

A subscription records the commercial relationship between a customer and a plan. Entitlements represent the effective capabilities granted to that customer.

For example, a subscription may be active while a particular feature remains unavailable because it is not included in the plan. Conversely, an enterprise contract may grant a custom entitlement that does not map directly to a standard public plan.

A simplified model might include the following entities:

Entity Purpose
Organization Represents the business customer
Tenant Represents the customer boundary within the application
User Represents an individual identity
Membership Connects a user to an organization or tenant
Product Represents the SaaS offering
Plan Defines a commercial package
Subscription Records the customer's plan and lifecycle
Entitlement Defines available features and limits
UsageRecord Records measurable consumption
Invoice Represents a billing obligation
Payment Records a payment transaction or outcome

Example domain relationship

erDiagram
    ORGANIZATION ||--o{ TENANT : owns
    TENANT ||--o{ MEMBERSHIP : has
    USER ||--o{ MEMBERSHIP : joins
    PRODUCT ||--o{ PLAN : offers
    PLAN ||--o{ SUBSCRIPTION : selected_for
    TENANT ||--o{ SUBSCRIPTION : maintains
    PLAN ||--o{ ENTITLEMENT : defines
    TENANT ||--o{ USAGE_RECORD : generates
    SUBSCRIPTION ||--o{ INVOICE : produces

This is an illustrative starting point rather than a universal schema. Real systems may introduce separate account, contract, billing profile, feature catalog, or subscription item entities depending on business requirements.

6. Multi-Tenancy Fundamentals

Multi-tenancy is a design approach in which one application serves multiple tenants.

The platform may share application services, compute infrastructure, databases, or other resources while enforcing tenant-specific access and data boundaries.

Common data-isolation strategies include:

  • Shared database and shared tables: Tenant-owned records include a tenant identifier.
  • Shared database with separate schemas: Tenants use separate database schemas.
  • Separate database per tenant: Each tenant has an independent database.
  • Hybrid architecture: Different tenants or data categories use different isolation models.

Each approach has trade-offs involving cost, operational complexity, isolation, customization, and scale.

Tenant isolation is a central security requirement. Adding a tenant identifier to a table is not sufficient by itself; APIs, queries, background jobs, caches, file storage, search indexes, and AI retrieval pipelines must all enforce the correct tenant boundary.

Read the next article: Multi-Tenant Architecture.

7. SaaS Architecture Components

A typical SaaS application contains several logical components.

Component Responsibility
Web or mobile client Provides the user interface
API gateway or edge layer Handles routing, throttling, and edge-level policies
Identity provider Authenticates users and issues identity tokens
SaaS application services Implements business capabilities
Tenant context service Resolves and validates tenant context
Subscription service Manages subscription lifecycle and plan changes
Entitlement service Determines permitted product features and limits
Usage metering service Records and aggregates consumption
Billing integration Coordinates invoices, payments, and external billing providers
Data layer Stores tenant-owned business data
Observability platform Collects logs, metrics, traces, and operational events

These components do not have to be separate microservices. A modular monolith can be an appropriate starting point, with services separated when independent scaling, deployment, ownership, or reliability requirements justify the added complexity.

8. Key SaaS Business Rules

SaaS domain logic is more than CRUD operations. A production system must enforce rules that reflect customer contracts and application policies.

Examples include:

  • A tenant cannot access another tenant's protected records.
  • A user must have an active membership and sufficient permissions to perform a protected action.
  • A plan determines the standard set of features and quotas available to a subscription.
  • Usage beyond a quota may be rejected, throttled, or billed according to the contract.
  • A canceled subscription may retain access until the end of its paid period, depending on policy.
  • A plan upgrade may change entitlements immediately or at a scheduled effective time.
  • A payment failure may trigger retries, notifications, restricted features, or suspension.
  • Administrative actions should be auditable.
  • Tenant deletion must follow applicable retention, legal hold, and data deletion policies.

These rules should be explicit, testable, and consistently enforced across synchronous APIs and asynchronous workflows.

9. SaaS Security Fundamentals

SaaS platforms handle customer identities, business data, and commercial information. Security must therefore be designed into the domain model and service boundaries.

Authentication

Authentication establishes who the user is. Enterprise platforms often integrate with an identity provider using OpenID Connect (OIDC) and OAuth 2.0-based access patterns.

Authorization

Authorization determines what an authenticated user is allowed to do. It may use roles, permissions, resource ownership, attributes, or policy-based decisions.

Tenant isolation

Tenant isolation prevents unauthorized cross-customer access. The tenant context must be validated at trusted application boundaries rather than blindly accepted from client input.

Least privilege

Users, services, and background workers should receive only the permissions needed to perform their responsibilities.

Auditability

Sensitive actions such as role changes, subscription modifications, data exports, and administrative access should generate appropriate audit records.

Data protection

Use appropriate encryption, secret management, access controls, retention policies, and secure handling of customer data.

For AI-enabled SaaS platforms, these protections must also apply to prompts, uploaded documents, embeddings, retrieved chunks, model outputs, and tool execution.

10. SaaS Domain Fundamentals for AI Platforms

AI capabilities introduce new domain concepts without removing the foundational SaaS model.

An AI-enabled SaaS product may need to track:

  • Model and provider configuration.
  • AI feature entitlements.
  • Token and request consumption.
  • Document ingestion and indexing status.
  • Retrieval permissions and source references.
  • Agent tool permissions.
  • Model evaluation results.
  • AI request latency and cost.
  • Data retention and governance requirements.

For example, a tenant's plan may allow 10,000 AI requests per month. Before processing a request, the application may validate identity, tenant access, feature entitlement, and remaining quota. The AI workflow then retrieves only authorized context, invokes the model, records usage, and emits operational telemetry.

This combines SaaS business rules with AI-specific controls.

The AI system must not treat a model response as an authorization decision. Access control and tenant isolation should be enforced by trusted application services.

11. Practical Design Exercise

Design a SaaS platform for organizations that upload internal documents and ask questions using an AI assistant.

Requirements

  1. Support multiple organizations and tenants.
  2. Allow users to join organizations with different roles.
  3. Offer Free, Professional, and Enterprise plans.
  4. Enforce feature entitlements and AI usage quotas.
  5. Store documents with tenant-aware access controls.
  6. Support document search and AI-generated answers.
  7. Record usage, failures, and administrative actions.
  8. Support subscription upgrades and cancellation.
  9. Prevent cross-tenant access in APIs, background jobs, and retrieval workflows.

Questions to answer

  • What is the difference between an organization and a tenant in your design?
  • Can one user belong to multiple tenants?
  • Which data should be shared, and which should be isolated?
  • Where should tenant context be established and validated?
  • How should a subscription upgrade affect entitlements?
  • How should the system handle a payment provider timeout?
  • How will AI usage be measured and attributed to the correct tenant?
  • How will you prevent retrieval from returning another tenant's documents?
  • What happens when a subscription expires during an ongoing AI request?

Document the domain model, API contracts, business rules, failure handling, and architecture decisions before starting implementation.

12. What to Practice

Build a basic SaaS domain model using Java, Spring Boot, and a relational database.

Implement the following incrementally:

  • Organization, tenant, user, and membership entities.
  • Product, plan, subscription, and entitlement entities.
  • Tenant-aware request context and authorization checks.
  • APIs for creating organizations and managing memberships.
  • APIs for retrieving subscription and entitlement information.
  • Usage-record creation and quota validation.
  • Audit events for sensitive operations.
  • Automated tests for tenant isolation and business rules.

Start with a modular monolith and clear domain boundaries. Introduce separate services only when the requirements justify the additional operational complexity.

13. Key Takeaways

  • SaaS is a managed software delivery and business model, not simply an application hosted in the cloud.
  • Organizations, tenants, users, memberships, products, plans, subscriptions, and entitlements represent different domain concepts.
  • Multi-tenancy requires deliberate isolation across all data and processing paths.
  • Subscription status and effective feature entitlements should be modeled separately.
  • Identity, authorization, billing, usage metering, and auditability are foundational SaaS capabilities.
  • AI-enabled SaaS products add model usage, document retrieval, agent permissions, and AI observability requirements.
  • Strong domain modeling helps solution architects make better decisions about APIs, databases, services, security, and operational design.

Continue Learning

Next: Multi-Tenant Architecture

Parent: SaaS and AI Platforms Domain Learning Path

Domain Knowledge

Was this guide helpful?

CodeWithVenu is free to read, with no paywall. If this guide saved you time or helped you prepare, a small voluntary contribution helps me write more practical tutorials, architecture guides, and interview-prep content.