Course contentsShow
← Software Engineering
Lesson 1528 of 1,93344. Cloud Architecture PatternsFree lesson

What is Multi-Tenancy

Understanding multi-tenancy: serving multiple customers from shared infrastructure while maintaining isolation and independence.

What is Multi-Tenancy

What you'll learn: You'll understand how cloud systems serve multiple independent customers from the same infrastructure while keeping their data and operations isolated.

The Core Idea

Multi-tenancy is an architectural pattern where a single instance of software and infrastructure serves multiple customers (tenants), keeping each tenant's data and configuration logically isolated despite sharing the same underlying resources.

Think of it like an apartment building: many families (tenants) live in the same building, share utilities and structural resources, but each apartment is private and secure. Similarly, multi-tenant systems maximize resource efficiency by sharing infrastructure while maintaining strong boundaries between customers.

Why Multi-Tenancy Matters in Cloud Architecture

In cloud-native systems, multi-tenancy is fundamental to economic viability. Instead of provisioning separate servers, databases, and services for each customer, you run one optimized system that serves thousands of tenants. This dramatically reduces:

  • Infrastructure costs (shared compute, storage, network)
  • Operational overhead (one deployment to maintain, not thousands)
  • Resource waste (better utilization across varying tenant loads)

Key Isolation Requirements

Even though tenants share infrastructure, they must remain independent:

  • Data isolation: Tenant A cannot access Tenant B's data
  • Performance isolation: One tenant's spike shouldn't degrade others' experience
  • Configuration isolation: Each tenant can have custom settings
  • Security boundaries: Breaching one tenant shouldn't compromise others

This aligns with cloud-native stateless design principles—each request carries tenant context (often via authentication tokens), allowing the same application code to serve different tenants dynamically.

Common Implementation Patterns

Multi-tenancy appears at different levels: shared database with tenant ID columns, separate databases per tenant, or namespace-based isolation (like Kubernetes namespaces for different customers).

Key Takeaway: Multi-tenancy enables cloud providers and SaaS platforms to serve many customers efficiently from shared infrastructure while maintaining strict logical isolation between tenants.