4 ms·
Good point, this product does make this approach far more palatable. Curious if the sharding strategy that you were shifting to was company-based, as is implem
by niklearnstodev 3y ago
Good point, this product does make this approach far more palatable.
Curious if the sharding strategy that you were shifting to was company-based, as is implemented in this case?
- sb8244 3y agoYup! 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 https://github.com/citusdata/activerecord-multi-tenant) and Elixir (I wrote https://github.com/sb8244/ecto_tenancy_enforcer https://github.com/sb8244/ecto_tenancy_enforcer) are the ones I have experience with.