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

后端 未结 5 1206
情歌与酒
情歌与酒 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:24

    Why would you? Do you have heavy aggregation between users or are you spawning too many DBs? Have you considered using SQLite files per tenant instead of shared DB servers (since multitenant apps often are low-profile and don't need that much concurrency)?

提交回复
热议问题