multi-tenant

Multi-tenancy web application with filtered dbContext

 ̄綄美尐妖づ 提交于 2019-11-30 05:41:50
I am new to ASP.Net MVC and multi-tenancy web application. I have done lots of reading, but being a beginner I just follow what I understand. So I managed to built a sample scenario web application and need to solve the ending part of it. Hope this scenario will be useful for some other beginners as well, but would welcome any other approach. Thanks in advance 1) Database in SQLServer 2008. 2) Data layer: C# class library project called MyApplication.Data public class AppUser { [Key] public virtual int AppUserID { get; set; } [Required] public virtual int TenantID { get; set; } [Required]

Designing an ASP.NET app that supports SubSites

江枫思渺然 提交于 2019-11-30 05:31:27
I'm designing an ASP.NET application that must support 'SubSites'. The idea is to have a super admin manage all users, global application settings and SubSites. Each Subsite has a few of its own settings (such as a local admin, logo and welcome message) and each SubSite has its own list of registered users. This is very similar with what you get using a CMS such as Joomla, SharePoint or DotNetNuke. In fact, I'm tempted to use such a platform, but other project requirements prevent me from doing that. My questions are very general at this point: Using ASP.NET 2.0 Membership , how would I

Hibernate multi-tenancy create schema during runtime

蹲街弑〆低调 提交于 2019-11-30 05:21:13
I am setting up multi-tenant support for a java web application using hibernate 4 and spring 4. The default schema is created and set when the application starts. This schema works fine when not trying to support multi-tenancy. What I need to do now is to create a schema for each new tenant that creates an account. This schema can simply be a copy of the common schema because it will adhere to the same format. How can I create new schemas that follow the same format as the default schema during runtime? It appears that the default schema is created when the LocalSessionFactoryBean is

Duplicate postgresql schema including sequences

£可爱£侵袭症+ 提交于 2019-11-30 05:20:19
问题 My database layout needs to create new schema for each new customer. Currently I use internal function I found on the net and modified a little bit. CREATE FUNCTION copy_schema( source_schema character varying, target_schema character varying, copy_data boolean) RETURNS integer AS $BODY$ DECLARE t_ex integer := 0; s_ex integer := 0; src_table character varying; trg_table character varying; BEGIN if (select 1 from pg_namespace where nspname = source_schema) THEN -- we have defined target

Multi-tenant SQL Server databases and parameter sniffing

放肆的年华 提交于 2019-11-30 04:53:41
问题 I have a multi-tenant database in SQL Server 2012 where each tenant's rows are identified by a tenant_id column (aka the Shared Database, Shared Schema approach). Some tenants, particularly the newer ones, have very few rows, while others have many. SQL Server's query optimizer normally builds a query plan based on the parameters provided during its first execution, then re-uses this plan for all future queries even if different parameters are provided. This is known as parameter sniffing.

Multitenancy with Fluent nHibernate and Ninject. One Database per Tenant

放肆的年华 提交于 2019-11-30 04:24:07
I'm building a multi-tenant web application where for security concerns, we need to have one instance of the database per tenant. So I have a MainDB for authentication and many ClientDB for application data. I am using Asp.net MVC with Ninject and Fluent nHibernate. I have already setup my SessionFactory/Session/Repositories using Ninject and Fluent nHibernate in a Ninject Module at the start of the application. My sessions are PerRequestScope, as are repositories. My problem is now I need to instanciate a SessionFactory (SingletonScope) instance for each of my tenants whenever one of them

Running Google App Engine application on multiple customer domains

风流意气都作罢 提交于 2019-11-30 04:02:45
I want to allow my company’s customers to integrate our Google App Engine application into their domains. For example, let’s say one customer owns the domain coolcustomer.com and wants to make our app accessible at service.coolcustomer.com . This article discusses how to set up multi-tenancy internally, but does not mention how to associate client domains with an app. Ideally, I’d like to allow customers to associate a sub-domain in a self-service manner. This, of course, brings up the issue of validating that the customer has permission to add a sub-domain to a domain name. What is the best

multi-tenant database architecture [closed]

╄→尐↘猪︶ㄣ 提交于 2019-11-30 03:48:19
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I am building a SAAS application and we are discussing about one database per client vs shared databases. I have read a lot, incluisve some topics here at SO but I have still many doubts. Our plataform should be highly customizable by each client. (they should be able to have custom tables and add custom fields

To Multi-Tenant, or Not To Multi-tenant

丶灬走出姿态 提交于 2019-11-30 03:24:30
I have a difficult database design decision to make regarding multi-tenancy for the growing number of branches of my client's web-based CRM, which I actively maintain. I made the decision early on to use separate applications with separate databases for each branch, because it was the simplest way to cater for three different branches with disparate data and code requirements. I also wanted to avoid managing Tenant IDs in every query, like I had to with the legacy Classic ASP ( cringe ) application I built in 2007...the horror. But now the data requirements for branches are converging and as

Writing a multi-tenant Rails 3 app for deployment on Heroku

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-29 21:56:16
I'm building a Rails 3 app for deployment on Heroku, and I'm wondering if there are any recommendations on how to handle multi-tenancy in my models. Half a year ago, there was a related question ( #3776593 ) posted on here, but it didn't get many answers. I've also watched Guy Naor's presentation on writing multi-tenant applications with Rails , but it seems like 2 of the 3 proposed solutions wouldn't work on Heroku. I'd link to these, but new Stackoverflow users are limited to 2 hyperlinks. I've also come across the following tools: http://samuel.kadolph.com/2010/12/simple-rails-multi-tenancy