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

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

    I've been researching the same thing and just found this presentation to offer an interesting solution: Using Postgre's schemas (a bit like namespaces) to separate data at the DB level while keeping all tenants in the same DB and staying (mostly) transparent to rails.

    Writing Multi-Tenant Applications in Rails - Guy Naor

提交回复
热议问题