Mike Dalessio discusses 37signals' journey building multi-tenant Rails applications with separate SQLite databases per customer. He demonstrates the Active Record Tenanted gem, which simplifies converting existing Rails apps to multi-tenant architecture with built-in safety checks to prevent data leaks. The team originally planned this for Fizzy but switched to MySQL due to time constraints around global replication and failover. The gem handles database connections, fragment caching, file storage, and Action Cable tenanting automatically, requiring minimal code changes to existing applications.

45m read timeFrom dev.37signals.com
Post cover image
Table of contents
TimestampsLinks & ResourcesTranscript

Sort: