Databse architecture (single db vs client specific db) for Building Enterprise Web (RIA) application on cloud

The three main techniques that is usually applied to the database usage for this kind of a multi-tenant requirement is below. You have already specified some of them.

  1. Separate databases for each tenant:
    • very high cost, easy to maintain/customize, easy to tune, easy to backup, easy to code to.
  2. Shared database but different schema:
    • Low cost compared to (1), may encounter issues quickly with increased db size, easy to personalize per tenant, difficult to backup/restore per tenant, easy to code to.
  3. Shared database Shared schema:
    • Low cost, load of one tenant will affect others, security and app development a challenge, difficult to personalize per tenant, difficult to restore/backup.

I think the above points hold good for hosting on premise or on cloud.
If you see the number of tenants growing or the data getting bigger then 1) or 2) is better. I have used option 2) and have seen it helping development and maintenance.

Leave a Comment