Sub topic 2
Multi-tenant SaaS and the platform model
This chapter assumes you know what a CRM does, understand the SaaS model, and are comfortable with databases, tables, and records. It explains why Salesforce is called multi-tenant SaaS and why it is also called a platform. The next chapter defines the org, which is the unit this model produces.
Multi-tenancy in one idea
In a multi-tenant system, many customers (tenants) share the same running software and infrastructure. Each tenant sees only its own data and configuration. The alternative is single-tenant hosting, where each customer gets a separate copy of the application and database.
Salesforce runs many customers on shared infrastructure groups called instances. Each customer's data is tagged with an identifier for that customer, and the platform applies that identifier to every query. You never see another tenant's rows, and they never see yours.
What sharing means for you
Shared infrastructure gives the vendor efficiency, and it changes how you work.
- Upgrades are automatic. Salesforce releases three times a year and updates all tenants. You do not install or patch anything.
- Customizations are stored as configuration, not as separate code deployments on your own servers. This is why an upgrade does not break most customizations.
- Resources are shared, so Salesforce enforces limits. Examples are caps on API calls per day and on how much work one transaction can do. These are called governor limits. They stop one tenant from using resources that other tenants need.
From SaaS to platform
SaaS (software as a service) means you use the application through a browser or API and the vendor runs it. Salesforce started as SaaS for CRM. It is also described as PaaS (platform as a service), because you can build your own applications on the same services that run the CRM.
The platform model means the CRM is built from the same pieces you can use:
- Data model. Objects (tables) and fields (columns), both standard and custom.
- Logic. Declarative tools such as Flow, and code such as Apex.
- User interface. Page layouts, Lightning apps, and custom components.
- Security. Profiles, permission sets, and sharing rules.
- APIs. REST and SOAP interfaces for other systems.
Because these parts are metadata-driven, the platform reads your configuration at run time. A new custom field is a definition the platform interprets, not a new column you migrate yourself. The chapter on data versus metadata develops this idea.
SaaS versus PaaS in practice
| Aspect | SaaS use | Platform (PaaS) use |
|---|---|---|
| Typical user | Sales or support staff | Admin or developer |
| What you do | Use standard objects and screens | Add custom objects, logic, and apps |
| Who runs the servers | Salesforce | Salesforce |
| Constraint | Features in your edition | Edition features plus governor limits |
Common mistakes
- Assuming you control the servers. You cannot tune the database or choose the hardware. You work within the platform's limits.
- Ignoring limits during design. A process that works with 10 records can fail with 10,000. Design for volume from the start.
- Thinking tenants are fully isolated at the hardware level. Isolation is logical, enforced by the platform, not by separate machines.
Exercise
Why does Salesforce enforce governor limits, and how does this follow from multi-tenancy?
Show answer
Many tenants share the same instance. Limits on things like API calls and per-transaction work stop one tenant from consuming resources that other tenants need.
Exercise
A teammate says a custom field is "a new column Salesforce adds to your private database." What is wrong with this description?
Show answer
Your org does not have a private database. The custom field is metadata, a definition that the shared platform interprets at run time while keeping your data separate from other tenants' data.