# Architecting Multi-Tenancy

> Episode of [Code(ish)](https://podistic.com/podcast/codeish.md) · Published October 29, 2019 · Duration 37:46 · Episode 41, season 1

- **Listen on Podistic:** https://podistic.com/episode/architecting-multi-tenancy
- **Audio:** https://traffic.libsyn.com/secure/7f71952c-fbd0-4060-aa3c-0772fe7d9e06/Codeish_Episode_41_Multi_tenancy_with_Ian_Varley.mp3?dest-id=5040635 (audio/mpeg)

## About this episode

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
