Any thoughts on Multi-tenant versus Multi-database apps in Rails

后端 未结 5 1211
情歌与酒
情歌与酒 2021-01-31 00:29

Our app currently spawns a new database for each client. We\'re starting to wonder whether we should consider refactoring this to a multi-tenant system.

What benefits /

5条回答
  •  执笔经年
    2021-01-31 01:00

    I don't have any experience with this personally, but during the lightning talks at the 2009 Ruby Hoedown, Andrew Coleman presented a plugin he designed and uses for multi-tenant databases in rails w/ subdomains. You can check out the lightning talk slides and here's the acts_as_restricted_subdomain repository.

提交回复
热议问题