Multi-tenancy

We handle multiple customers! 🏢

Boostack gives you the ability to provide your service to multiple users (tenants, accounts) from a single hosted instance of the application.

To speed-up your SaaS application the "One database for all customers" is the best approach, Most web apps start with this method and It's reasonably easy (conceptually) to put all customer database in a single database with a single set of collections. Each document has a customer_id field. Queries and updates use that field to restrict the scope of documents they're working with.

Boostack and many other typical focused SaaS are structured as follows:

  1. Users belong to an account, also sometimes called an organization or account.

  2. An account can have multiple users and users can switch between multiple accounts. This is specifically interesting if offering a product aimed at agencies or larger organizations.

  3. Accounts have settings, preferences and resources associated with it. They apply to each user linked to that account.

  4. Users can have specific access rights per account.

From a scaling perspective, this works well with MongoDB sharding since you can keep customer data grouped together and do efficient range queries.

Last updated

Was this helpful?