SaaSHub helps you find the best software and product alternatives Learn more →
Top 6 Ruby Multi-tenancy Projects
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
activerecord-multi-tenant
Rails/ActiveRecord support for distributed multi-tenant databases like Postgres+Citus
-
gorynich
[MIRROR] Multitenancy for Rails including ActiveRecord, ActionCable, ActiveJob and other subsystems
I recall a popular rails gem[1] once upon a time that provided multi-tenancy via postgres schemas.
As it turns out, even the company the initially developed the gem ended up ditching the approach due to some of the issues you outlined above.
Managing separate schemas feels like one of those nefarious decisions that make things simple _initially_ but get you into a world of hurt when you need to scale. The company is since defunct but they have an article where they discuss why they ditched the approach [2], TL;DR it's too difficult to maintain and scale
[1] https://github.com/influitive/apartment#tenants-on-different...
Yup! I lean towards a tenant ID approach. I ALWAYS use a library that enforces these tenant checks on queries. Ruby (https://github.com/citusdata/activerecord-multi-tenant) and Elixir (I wrote https://github.com/sb8244/ecto_tenancy_enforcer) are the ones I have experience with.
Ruby Multi-tenancy related posts
- Multitenancy
- Is there a way to have rails return a different set of data depending on the hostname?
- Consoliate or forward traffic the comes to different domains that belong to the same server
- Kubectl Login: Solving Authentication For Kubernetes
- MatrixEval - A local alternative to GitHub Action/Circle CI/Travis CI matrix job. Simply run your code against different versions of dependencies.
- What's the best way to support tenants at a rails app !
- Create views to display all data managed by apartment gem
-
A note from our sponsor - SaaSHub
www.saashub.com | 26 Apr 2024
Index
What are some of the best open-source Multi-tenancy projects in Ruby? This list will help you:
Project | Stars | |
---|---|---|
1 | Apartment | 2,648 |
2 | Acts As Tennant | 1,503 |
3 | activerecord-multi-tenant | 695 |
4 | Milia | 339 |
5 | multi-tenant-support | 46 |
6 | gorynich | 11 |
Sponsored