8
I was asked to develop an application with multi tenancy architecture in the PHP language using Mysql as a database.
After reading several materials and posts on the Internet, I had a question. How to model the application itself?
I have two options:
- Shared application and database
In this case, it would have only one application and database instance for all clients. - Shared application and isolated databases
In this case, you would have only one instance of the application and each customer would have their own database.
The application will cater to companies (beauty salons) that may have only the head office and/or the head office and branch units. All two types will be multi-users and several modules, some of them: Customer Registration, Supplier Registration, Professional Registration, Product and Service Registration, Calendar, Stock Control, Financial, Sales and Purchases.
Who has or has had experience with this type of multi-tenancy architecture, what do you have to advise me regarding the use of the database? Because the question is: Use the same database for all customers or set up a new database for each new customer?
Take a look at this text. http://www.die.ufpi.br/ercemapi2011/minicursos/MC4.pdf
– Leandro Curioso
@Leandrocurious I have already read this text today and from it I arose this doubt. Thank you!
– Matheus Jordan
Funny your post considering that I’m currently developing a platform on that basis. And funnier is that it is for this area also with the same technologies. As the question will say that depends a lot on the project... And the size of it.
– chambelix