Hello!
I'm starting out a new RESTful project that will serve as a SaaS service for multiple tenants.
The tenants will use a sub-domain (i.e. tenant1.myapp.com) to access his data. Each tenant can have his usernames, that are not shared among them.
I want to use separate databases for each tenant for the sake of data safety.
My questions are:
- How do I migrate all the DBs when updating the app?
- How can I still have control over the global tenants-data and underlying data stats (e.g. how many users use my app in total etc.)?
- Should I use a separate app for each tenant??