~/talk

SaaS on Rails on PostgreSQL

slides:none on file

Covers concrete recipes for multi-tenant Rails on PostgreSQL using a sample Rideshare app: add company_id to rows, optional composite PKs (Active Record 7.1), use acts_as_tenant or schema tools like Apartment gem, and leverage Postgres features—LIST partitioning plus DETACH CONCURRENTLY (Postgres 14) for fast tenant archiving. Compares app-level Active Record Horizontal Sharding (Rails 6.1) versus Citus for row-based and Citus schema-based sharding, notes replication, resharding costs, and when per-tenant DBs or shared-instance designs actually scale.

AI-written summary · about

  1. 0:00Intro
  2. 0:39Overview of the presentation
  3. 1:10Definition of terms
  4. 5:36Adding multi-tenancy to Rideshare application
  5. 12:55Scaling beyond a single PostgreSQL instance
  6. 14:27Multi-Tenancy and Sharding with Active Record
  7. 17:02Citus and Sharding
  8. 22:52Wrap Up and Advice
~/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.