influitive / apartment

Database multi-tenancy for Rack (and Rails) applications
2.66k stars 464 forks source link

Read-only database #629

Open alienxp03 opened 4 years ago

alienxp03 commented 4 years ago

We are using Apartment to manage our multi-tenancy database. As we scale up, we're looking into option to setup a master-slave database, where the write queries would go to slave instead of master. After few setback, it seems like we're hitting a dead end. Is there any possible way to do this with Apartment gem? So far we've tried with Octopus and Makara gem.