multi-tenant

Developing a Multitenant SaaS

Deadly 提交于 2019-12-04 18:26:08
I am developing a web application for data analysis on agricultural datasets. Actually I want to make the application to be multi tenant and I wish to deploy that SaaS application in a private cloud (in our school). I got a few basic doubt in the programming part. Do I need to develop the application in the Hadoop's map/reduce functionality? Secondly,the selection of database. Since the data are highly structural in nature (like sql) can I use a sql server to manage data in cloud? In such do I need any middleware in addition to the IaaS setup and the SaaS application? I am using J2EE

Laravel multi-tenant approach. Where to start

三世轮回 提交于 2019-12-04 16:42:25
I've a full application coded. Now, the only part missing is to make it multi-tenancy. I want to allow clients to register into my application website and get an instance of the application with a completely empty database only for that account. I've thought to play with environments, but I'm not sure if this is a good approach: config - user1 - database.php - user2 - database.php - ... I've also thought about a unique config file containing the database information about every account and set the database connection based on the subdomain name. Something like I've seen in this post: Multi

How to peek at message while dependencies are being built?

末鹿安然 提交于 2019-12-04 16:17:12
I building multitenancy into the unit of work for a set of services. I want to keep the tenancy question out of the way of day-to-day business domain work, and I do not want to touch every existing consumer in the system (I am retrofitting the multitenancy onto a system without any prior concept of a tenant). Most messages in the system will be contexted by a tenant. However, there will be some infrastructure messages which will not be, particularly for the purpose of automating tenant creation. I need a way of determining whether to use a tenant-contexted unit of work, or a infrastructure

How to serve multiple domains with a single ASP.NET MVC application?

回眸只為那壹抹淺笑 提交于 2019-12-04 14:59:12
How to implement a mechanism (within a single ASP.NET MVC application) to ensure that: if request comes on mydomain (user visits mydomain.com) -> handle using certain set of controllers if request comes on otherdomain (user visits otherdomain.com) -> handle using different set of controllers (the domains are aliased to the same web hosting) What extension points within ASP.NET MVC should I use to ensure that the described mechanism works? Adrian Grigore I think you could implement a IRouteConstraint descendant that analyzes the current HttpContext and matches (or does not match) a route

Using (and reusing) multiple mongoose database connections on express.js

蹲街弑〆低调 提交于 2019-12-04 14:44:25
I'm looking for the easiest & performant way to make a multitenant express.js app for managing projects. Reading several blogs and articles, I figured out that, for my application, would be nice to have a database per tenant architecture. My first try has been to use subdomains to detect the tenant, and then map the subdomain to a mongodb database. I came up with this express middlewares var mongoose = require('mongoose'); var debug = require('debug')('app:middleware:mongooseInstance'); var conns []; function mongooseInstance (req, res, next) { var sub = req.sub = req.subdomains[0] || 'app'; /

How to set up a multitenancy application using ASP.NET MVC?

限于喜欢 提交于 2019-12-04 13:58:23
问题 A multitenancy application is an app that is shared by multiple organizations (medical practices, law offices..) and each organization, in turn, has it's own users. They all log on a centralized environment. To be identified within the application, the organization must be expressed in the URL. There are two major URL forms for that. Subdomains and folders: [tenancy_name].appname.com/projects/view/123 www.appname.com/[tenancy_name]/projects/view/123 At first I tried the second because this

SaaS - Multi tenant Separate database model Implementation in Java

时光总嘲笑我的痴心妄想 提交于 2019-12-04 12:52:10
I am architecting a software project and I want to achieve a SAAS (Software As a service) model. I want to design a web application compatible to multi tenancy with separate database per tenant. How can i design Multi tenant UI in Java environment(UI should be tenant configurable in nature)? How can I design data access layer for separate database per tenant(Single application instance for multiple tenant database)? And also suggest me to choose technology stack in Java environment. Thanks in advance. techuser soma This post has details on the database architecture for multitenancy. How can i

SQL Server -is a GUID based PK the best practice to support tenant based horizontal partitioning

谁说胖子不能爱 提交于 2019-12-04 11:27:24
问题 I’m trying to figure out what the best approach is when designing a multi tenant database schema that will need to be horizontally partitioned in the future. Some Rough Numbers on the database.. Total number of tenants will be approx 10,000. The amount of data stored per tenant varies between 500MB -> 3GB. The number of tenants will start off small and grow to 10,000 over a few years so initially we can start with a single multi tenant database but in the longer term this will need to scale

Most effective way to manage multiple tenant storage in Azure?

不羁岁月 提交于 2019-12-04 10:49:52
问题 We're creating a multi-tenant application that must segregate data between tenants. Each tenant will save various documents, each of which can fall into several different document categories. We plan to use Azure blob storage for these documents. However, given our user base and the number of documents and size of each one, we're not sure how to best manage storage accounts with our current Azure subscription. Here are some numbers to consider. With 5,000 users at 27,000 8Mb documents per

How to do Basecamp-style accounts in Asp.Net Mvc?

冷暖自知 提交于 2019-12-04 09:57:09
问题 For an Asp.Net software as a service application, I want to do account based subdomains like Basecamp and the rest of the 37Signals products have. E.g. acme.myapp.com will load the account for that customer and pull back only their information. This is easy to do in Ruby on Rails, but how would you handle this functionality in ASP.NET MVC and be able to scale to possibly hundreds of accounts? 回答1: We use: public static string GetSubDomain() { string subDomain = String.Empty; if (HttpContext