Hey guys. I’m fairly new to multi tenancy and I have following solution for my app. Would like to hear your thoughts if it sounds right and scalable.
Right, so each tenant would have its own instance of database. My client app and admin app would have a connection to master database which then would have a databases collection. On user login appropriate database would be selected according to user ‘company-id’ field or something like that. The app is set up so its only accessible on login, so straight after login appropriate database should be selected.
Question: is it possible to start a new instance of database from the app, or would I have to do it manually?
I’ve read quite a few topics on meteor multi tenancy but couldnt find a clear solution… Any thoughts and ideas are highly appreciated!