Multi-tenancy in MVC

halfmoonforever

Expert Member
Joined
Feb 1, 2016
Messages
1,196
Hi, anyone have an example of how to override/extend controllers from a "core" controller in a multi-tenant environment? My google skills are letting me down.

I'm looking to see if extending a core controller (or model) for custom implementations in a multi-tenant environment is possible/straight-forward to implement. Thanks!
 

halfmoonforever

Expert Member
Joined
Feb 1, 2016
Messages
1,196
Thanks, went through the document but it reiterates most of the tutorials I've seen online, and focuses mostly on authorization and customizing the views. It's great if you don't intend to customize it per client possibly, but still wanting to work from the same code base... will see if I can hack something together :p
 

Spacerat

Expert Member
Joined
Jul 29, 2015
Messages
1,328
there are a couple of models for MT. One is where you have separate DBs etc. The it is mostly a routing issue. Obv when you have may tenants, then upgrading becomes more laborious.

The other is where all tenants share the same db, but all data of tenants are regarded as being separate, e.g. configs reference data etc. There are easy ways of getting it done. Is your question specifically around the MT implementation in the controllers, or db as well. I believe that the further down the stack you push the implementation, the least chance of a software bug exposing one tenant's da6a to another
 
Top