multi-tenant

Multi-tenant PHP SaaS - Separate DB's for each client, or group them?

风格不统一 提交于 2019-11-27 00:30:14
问题 You'll have to bear with me here for possibly getting some of the terminology slightly wrong as I wasn't even aware that this fell into the whole 'multi-tenant' 'software as a service' category, but here it does. I've developed a membership system (in PHP) for a client. We're now looking at offering it as a completely hosted solution for our other clients, providing a subdomain (or even their own domain). The options I seem to have on the table, as far as data storage goes are: Option 1 -

What are the advantages of using a single database for EACH client?

☆樱花仙子☆ 提交于 2019-11-26 23:23:56
In a database-centric application that is designed for multiple clients, I've always thought it was "better" to use a single database for ALL clients - associating records with proper indexes and keys. In listening to the Stack Overflow podcast, I heard Joel mention that FogBugz uses one database per client (so if there were 1000 clients, there would be 1000 databases). What are the advantages of using this architecture? I understand that for some projects, clients need direct access to all of their data - in such an application, it's obvious that each client needs their own database. However,

How is multi-tenancy done in the Orchard Project

↘锁芯ラ 提交于 2019-11-26 23:04:21
问题 I have been stepping through the source code for Orchard CMS to learn how they have tackled Multi-tenancy. OrchardProject Can someone point out the files or areas I should be looking at to understand how the plumbing works for Multi-tenancy in Orchard? How and where is the domain name deciphered to get the tenant from the DB? How is the tenant configuration details maintained throughout the time the user is on the site - sessions? As a test project, I want to be able to write similar bare

Manage Connection Pooling in multi-tenant web app with Spring, Hibernate and C3P0

て烟熏妆下的殇ゞ 提交于 2019-11-26 22:31:04
问题 I'm trying to setup a multi-tenant web application, with (ideally) possibility for both Database-separated and Schema-separated approach at the same time. Although I'm going to start with Schema separation. We're currently using: Spring 4.0.0 Hibernate 4.2.8 Hibernate-c3p0 4.2.8 (which uses c3p0-0.9.2.1) and PostgreSQL 9.3 (which I doubt it really matters for the overall architecture) Mostly I followed this thread (because of the solution for @Transactional ). But I'm kinda lost in

How to create a multi-tenant database with shared table structures?

▼魔方 西西 提交于 2019-11-26 21:10:13
Our software currently runs on MySQL. The data of all tenants is stored in the same schema. Since we are using Ruby on Rails we can easily determine which data belongs to which tenant. However there are some companies of course who fear that their data might be compromised, so we are evaluating other solutions. So far I have seen three options: Multi-Database (each tenant gets its own - nearly the same as 1 server per customer) Multi-Schema (not available in MySQL, each tenant gets its own schema in a shared database) Shared Schema (our current approach, maybe with additional identifying

Azure Service Fabric Multi-Tenancy

风流意气都作罢 提交于 2019-11-26 21:00:20
问题 I'm trying to get a little follow up to this question that's already been answered... Service Fabric multi-tenant If I were to setup my tenants as Azure Service Fabric Stateless Services (they'll get their state out-of-band), how can I put more than one tenant on each node in the cluster? In testing, it seems that Service Fabric gags if you try and make your instance count greater than the node count. These tenants are very lightweight, so I should be able to run dozens of them on each node

How to implement Multi-tenant User Login using ASP.NET Identity

China☆狼群 提交于 2019-11-26 15:38:22
问题 I'm developing a Multi-tenant solution and I want to use the latest ASP.NET Identity framework specifically the Entity Framework implementation. Basically I need to allow two users to have the same username, though it must be unique within a tenant, I'd also like to make use of external sign-ins such as Twitter, Microsoft, Facebook and Google. From what I can tell, the framework was not designed with multi-tenancy in mind, though it does seem to allow extensibility. I'd prefer to make use of

Should I use a single or multiple database setup for a multi-client application?

左心房为你撑大大i 提交于 2019-11-26 15:03:48
问题 I am working on a PHP application that intends to ease company workflow and project management, let's say something like Basecamp and GoPlan. I am not sure on what the best approach is, database-wise. Should I use a single database and add client-specific columns to each of the tables, or should I create a database for each new client? An important factor is automation: I want it to be dead simple to create a new client (and perhaps opening the possibility to signing up for yourself).

What is the recommended approach towards multi-tenant databases in MongoDB?

梦想的初衷 提交于 2019-11-26 12:49:45
问题 I\'m thinking of creating a multi-tenant app using MongoDB. I don\'t have any guesses in terms of how many tenants I\'d have yet, but I would like to be able to scale into the thousands. I can think of three strategies: All tenants in the same collection, using tenant-specific fields for security 1 Collection per tenant in a single shared DB 1 Database per tenant The voice in my head is suggesting that I go with option 2. Thoughts and implications, anyone? 回答1: I have the same problem to

How to design a multi tenant mysql database

Deadly 提交于 2019-11-26 10:31:58
问题 Let us say I need to design a database which will host data for multiple companies. Now for security and admin purposes I need to make sure that the data for different companies is properly isolated but I also do not want to start 10 mysql processes for hosting the data for 10 companies on 10 different servers. What are the best ways to do this with the mysql database. 回答1: There are several approaches to multi-tenant databases. For discussion, they're usually broken into three categories.