---
"title": "41. Architecting Multi-Tenancy"
"description": "Salesforce architect Ian Varley discusses multi-tenant architecture, including how it differs from multi-user systems. Salesforce, along with other immense cloud platforms, rely on a shared resource architecture in order to scale horizontally. Multi-tenancy offers unique challenges around job scheduling, resource contention, and ensuring secure isolation between users."
"date": "2019-10-22"
"authors":
  -
    "name": "Robert Blumen"
"url": "https://www.heroku.com/codeish-podcasts/41-architecting-multi-tenancy/"
---

# 41\. Architecting Multi-Tenancy

Host Rubert Blumen is joined by Salesforce architect Ian Varley to discuss multi-tenancy. Their conversation covers how multi-tenancy differs from multi-user, popular architectures for multi-tenancy, why Salesforce uses a shared resource architecture, how Salesforce scales horizontally, the economics of a mix of small and large users, the importance of scaling down, scheduling, rate limiting and fairness, the threat model of a multi-tenant system, ensuring isolation between users, and technical challenges of migrating users between shards while maintaining availability and consistency.

## Links from this episode

- [The Architecture Files \#10: L33T M10y](https://engineering.salesforce.com/l33t-m10y-f04f38127b82) by Ian Varley
- [Salesforce developer documentation on multi-tenancy](https://developer.salesforce.com/page/Multi_Tenant_Architecture)
- ACM Queue [Condos and Clouds](https://queue.acm.org/detail.cfm?id=2398392) by Pat Helland
- [The Magic of Multi-Tenancy](https://engineering.salesforce.com/the-magic-of-multitenancy-2daf71d99735) by Igal Levy