~/talk

Multitenancy with Rails

Talkat Rails Pacific 2014 · 2014-09-26..09-27· [ruby-on-rails, databases]

Argues that multi‑tenancy needs concrete choices: tries postgres schemas via the apartment gem but abandons them after Heroku warns that >50 schemas breaks backups and performance, rejects gems that use thread.current as a global, then builds a small middleware called hauser to resolve tenants by subdomain and scope models, emphasizes test and regression suites to prevent leaks across tenants, and uses Stripe (not PayPal) for subscriptions because its API and docs actually work.

AI-written summary · about

  1. 0:00Introduction
  2. 2:14Multi-tenancy in Rails
  3. 5:01Multi-tenancy gems for Rails
  4. 7:29PostgreSQL schemas for isolation
  5. 11:24Building multi-tenancy from scratch
  6. 13:57Testing essentials in Rails
  7. 15:42Hauser gem for tenant scoping
  8. 17:49Regression testing fixes
  9. 19:12Subscriptions with Stripe
  10. 23:25Stripe versus PayPal for subscriptions
  11. 24:07Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.