Experience tenanting a Rails app: Showcase application #190
rubys
started this conversation in
Experience reports
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm very much looking forward to multi-tenanting being built into Rails. I will be able to retire quite a bit of code. Active Record Tenanting + Beamer + Kamal Geo Proxy could be quite a game changer.
My current approach an be found here: https://github.com/rubys/showcase/blob/main/ARCHITECTURE.md#multi-tenancy ; the TL;DR version is one app per database, each running the same code base, but with a different DATABASE_URL.
The code is open source, and the app is live here: https://smooth.fly.dev/ (Fly.io) and https://showcase.party/ (Hetzner/Kamal). Blue dots on the map are sites using the software, yellow dots on the Fly.io site are servers. https://showcase.party/index is a complete list of events, each event is one database.
https://fly.io/docs/blueprints/shared-nothing/ contains more background.
Beta Was this translation helpful? Give feedback.
All reactions