I've been brooding over the right/optimal way to create a multitenancy application based
on Django.
Some explanation:
Application can be used by several tenants (tenant1, tenant2, ...,).
All tenant-individual data has to be secured against access of other tenants (and their users).
Optionally tenants can create additional custom-fields for application-objects.
Of course, underlying hardware limits number of tenants on one "system".
1) Separating each tenant by e.g. sub-domain and using tenant-specific databases in the underlying layer
2) Using some tenant-ID in the model to separate the tenant-data in the database
I am thinking about deployment-processes, performance of the system-parts (web-server(s), database-server(s), working-node(s),...)
What would be the best setup ? Where are the pro's and con's?
What do you think?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…