If its possible, how do I setup tis kind of Multi Tenancy? Because if I look into the code I see that the Database is setup during application startup ( boot manager ).
Or can we override this in some way to look up the subdomain on every request in the UmbracoApplication and setup a new database connection?
I don't think it would be wise to spread one CMS / website installation over multiple databases. Why would you need such a setup?
If you would like to try, I guess you will need to interfere with the ApplicationContext.Current.DatabaseContext.ConnectionString (which is only a getter). You get the picture...
To have multiple tenants, you have multiple options:
have multiple root nodes with a domain in umbraco (and share
database)
have multiple websites and databases (or schema's if
you want) and make your website redeployable with versioning and
migrations (that's how we do it)
I was just wondering if I could use Umbraco as the flatform to build an application with only the backend interface ( so no frontend content delivery ) for a multi tenant application.
But indeed after researching the code I did see that for setting another connectionstring it was not possible.
I have seen it once, where they used the backend for an administration (not multi tenant).
We are developing umbraco websites since version 4.0. We have one (multi tenant) application. And it is not running in Umbraco. Except the public facing, marketing and related websites (of cource).
We are not planning on changing this. Because I love the flexibility to wire up everything yourself - just as it suits the application.
Certainly if you start thinking about:
dynamically loading widgets depending on the customer
using other datastores than sql (hello blob, table or document storage).
putting customers on better performing tiers
...
I love umbraco, but Umbraco is just not suited for these type of thing.
One Umbraco installation with muliple databases ( Multi Tenant SaaS )
Hi,
is it possible to use one Umbraco installation over multiple databases?
And based on the subdomain it uses the correct database.
Example:
http://tenant1.domain.be opens database DbTenant1
http://tenant2.domain.be opens database DbTenant2
If its possible, how do I setup tis kind of Multi Tenancy? Because if I look into the code I see that the Database is setup during application startup ( boot manager ).
Or can we override this in some way to look up the subdomain on every request in the UmbracoApplication and setup a new database connection?
/Michaël
I don't think it would be wise to spread one CMS / website installation over multiple databases. Why would you need such a setup?
If you would like to try, I guess you will need to interfere with the ApplicationContext.Current.DatabaseContext.ConnectionString (which is only a getter). You get the picture...
To have multiple tenants, you have multiple options:
Hi Damiaan,
I was just wondering if I could use Umbraco as the flatform to build an application with only the backend interface ( so no frontend content delivery ) for a multi tenant application.
But indeed after researching the code I did see that for setting another connectionstring it was not possible.
/Michaël
I have seen it once, where they used the backend for an administration (not multi tenant).
We are developing umbraco websites since version 4.0. We have one (multi tenant) application. And it is not running in Umbraco. Except the public facing, marketing and related websites (of cource).
We are not planning on changing this. Because I love the flexibility to wire up everything yourself - just as it suits the application.
Certainly if you start thinking about:
I love umbraco, but Umbraco is just not suited for these type of thing.
IMHO...
Hi Damiaan,
thanks for sharing your experiences!
/Michaël
Hi Michaël,
Did you find any solution for one Umbraco installation over multiple databases? I am looking for similar functionality with Umbraco.
Can you please suggest any idea or share your experience?
is working on a reply...