I am working on a multi-tenant app in MEAN stack, in which user will signup and using their business names I will create an account(sub-domain) for them : abc.example.com.
So what approach should I use for this multi-tenant app?
- A single database in which each client have their specific collection.
- Or, should I maintain separate db for each user signup ?
In my application, I will be having 3-4 fixed collections for each user. So out of these two which will be more beneficial and If you can also provide any example to support your answer ?