SaaS Explained: Cloud Service Models, Multi-Tenancy Patterns & Core Components
This article provides a comprehensive overview of SaaS, covering cloud service models (IaaS, PaaS, SaaS), key characteristics, differences from traditional and internet software, B2B2C model, SaaS classifications, implementation steps, core components, and detailed analysis of three multi-tenancy isolation patterns with their trade-offs.
This article serves as a structured introduction to Software-as-a-Service (SaaS), collected and organized for readers new to the concept. It systematically covers cloud service architecture, SaaS defining traits, business models, classification, implementation roadmap, core technical components, and a deep dive into multi-tenancy patterns.
1. Cloud Service Architecture: Three Core Concepts
1.1 PaaS (Platform-as-a-Service)
PaaS provides a cloud-based platform allowing customers to develop, run, and manage applications without maintaining the underlying infrastructure (network, servers, OS, storage). Customers control deployed applications and possibly the hosting environment configuration. PaaS offers virtual servers, operating systems, and development solutions, reducing hardware costs and simplifying cross-application integration through shared languages, protocols, and base code.
1.2 IaaS (Infrastructure-as-a-Service)
IaaS delivers fundamental compute resources — CPU, memory, storage, network — enabling users to deploy arbitrary software, including operating systems and applications. Users manage the OS, storage, and deployed apps, and may gain limited control over networking components (routers, firewalls, load balancers). IaaS essentially rents out off-site servers, storage, and networking hardware, eliminating maintenance and physical space costs while providing high-quality network resources.
1.3 SaaS (Software-as-a-Service)
SaaS delivers applications running on cloud infrastructure, accessible via thin clients such as web browsers. Consumers do not manage any cloud infrastructure. Examples include DingTalk and WeChat Work, which host numerous SaaS micro-applications (OA, ERP, CRM) covering nearly all enterprise operational needs.
2. Two Defining Characteristics of SaaS Systems
Deployment on provider servers , not on the customer's premises.
Subscription-based model : providers offer a menu of functions; customers select, combine, and pay for what they use, often with time-based billing.
3. SaaS vs. Traditional Software vs. Internet Application Providers
The article contrasts three delivery models with accompanying diagrams:
3.1 SaaS Service
Sits between traditional and internet models. Services are cloud-deployed; users register, subscribe, and gain usage rights. The provider owns servers and software.
3.2 Traditional Software
Software and hardware are sold and deployed on the customer's servers or designated cloud. Revenue comes from software licenses and maintenance services.
3.3 Internet Application Provider
Services are cloud-hosted and freely accessible via client registration. Monetization relies on advertising and paid value-added services.
4. B2B2C Model in SaaS
As a multi-tenant system, SaaS must provide tenant (C-end) portals for registration, purchase, and business-system access, plus operator (B-end) consoles for tenant management, traffic monitoring, and service-status observability.
5. SaaS Classification
5.1 Business SaaS
Targets revenue-generating operations (e.g., Youzan, Weimob e-commerce SaaS, sales CRM). Architecture evolves toward "multi-scenario + multi-industry" solutions, packaging vertical solutions (retail, beauty, education) for sale.
5.2 Efficiency SaaS
Focuses on productivity tools (project management, Zoom). Addresses universal collaboration-efficiency pain points. Product roadmap is clear: optimize or solve a specific process problem.
5.3 Hybrid SaaS
Combines business and efficiency capabilities (e.g., WeChat Work: collaboration core + private-traffic management + third-party extensibility). Architecture follows a "1+X" pattern: one core business capability plus multiple non-core features at the same product layer.
6. How to Transform a Product into SaaS
Cloud-native deployment with performance upgrades for large-scale access.
User-system overhaul supporting 2C login (phone, mini-program, SMS).
Gateway services: rate limiting, anti-tampering.
Tenant system development: base info, resource binding, service periods.
Client refactor (primarily web): page-level permission control based on purchased modules.
Official website with pricing, trials, purchase, and payment flows.
Backend data-permission refactor: tenant-level data isolation.
7. Core Components of a SaaS Product
Security Component : foundational, always first priority.
Data Isolation Component : ensures inter-tenant data privacy and invisibility.
Configurability Component : supports UI layout, themes, logos, and other tenant-specific customizations out of the box.
Scalability Component : horizontal scaling via load balancing and containers across multiple servers.
Zero-Downtime Upgrade : apply updates and fixes without restarting running applications.
Multi-Tenancy Component : hosts multiple tenants' data concurrently while guaranteeing isolation and correct data routing.
8. SaaS Multi-Tenancy Deep Dive
8.1 Core Concepts
Tenant : an enterprise or individual customer; data and behavior are isolated.
User : an individual within a tenant who logs in to use the service.
Organization : the tenant's internal structure.
Employee : a specific member of an organization.
Solution : a packaged product-service bundle solving a business problem.
Product Capability : a sellable application enabling end-to-end scenario closure.
Resource Domain : a cloud environment running one or more product applications.
Cloud Resource : abstracted compute, storage, network, container resources from providers like Alibaba Cloud, Tencent Cloud, Huawei Cloud.
8.2 Three Isolation Patterns
8.2.1 Silo (Vertical) Isolation
Advantages:
Meets strict isolation demands: dedicated environment per tenant.
Simple billing: resource usage per tenant is straightforward to meter.
Limited blast radius: failures affect only one tenant.
Disadvantages:
Scale challenges: managing thousands of independent environments is operationally heavy.
High cost: per-tenant infrastructure erodes margins.
Hinders agile iteration: updating many isolated environments is complex and slow.
Difficult unified monitoring: non-centralized infrastructure complicates observability.
8.2.2 Shared (Pool) Model
Advantages:
Efficient centralized management, monitoring, and faster product iteration.
Lower cost: dynamic scaling based on aggregate load yields high resource utilization.
Disadvantages:
Noisy-neighbor risk: one tenant's heavy load can degrade others; requires rate limiting, degradation, and server isolation.
Complex per-tenant billing: shared resources make accurate cost attribution difficult.
8.2.3 Domain-Based Isolation
This pattern balances isolation and sharing by grouping tenants into domains with dedicated resource pools, though the article does not elaborate further on its pros and cons.
8.3 Required Capabilities for Multi-Tenant Systems
Support both shared and dedicated cloud resources per tenant.
Enforce data and behavioral isolation with fine-grained access control.
Enable organization-structure-based management and capability authorization within a tenant.
Allow different product capabilities to run on different cloud resource sets per customer needs.
8.4 Multi-Tenant Application Architecture Diagram
Code example
-End-
读到这里说明你
喜欢
本公众号的文章,欢迎
置顶(标星)
本公众号 架构师指南,这样就可以第一时间获取推送了~
在
本公众号 架构师指南,后台回复:
架构师
,领取2T学习资料 !Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
