Skip to content
This repository has been archived by the owner on Aug 8, 2021. It is now read-only.

[Question] When you say domain strategy you mean? #7

Open
simkimsia opened this issue Dec 11, 2015 · 4 comments
Open

[Question] When you say domain strategy you mean? #7

simkimsia opened this issue Dec 11, 2015 · 4 comments

Comments

@simkimsia
Copy link

In your readme, you wrote:

Domain Strategy

Shared Database, Shared Schema
Single Application Instance
Subdomain per Tenant

This means :

  1. there is only 1 database. No sharding.
  2. there is only 1 web app (cakephp3 app) running in 1 server
  3. the way we determine a Tenant is by looking at the subdomain.

Therefore,

tenant1.example.com and tenant2.example.com are two different tenants. Both are served by the same web app (cakephp 3) that is talking to the same database.

Am I right so far?

@justinatack
Copy link

That's the way I read things but I'm no authority on the matter. Just commenting so I can follow the answer.

@justinatack
Copy link

@simkimsia have you made any progress in using this plugin? Do you have it working?

@simkimsia
Copy link
Author

@justinatack I haven't really tried it yet. Why? Do you have issues using it?

@drogit
Copy link

drogit commented May 21, 2016

QUESTION: sorry buddy ... you can disregard this question ... i just a newbie i understand it now. thanks

newbieI have same question. when you say subdomain you don't really mean setting up an actual subdomain on the webserver right? it all runs on the same site (domain) just internal to your code it refers to subdomain as the tenant identifier maybe? I am currently using cakeDC/users do you think it will play nice with it? PS. is code useable for cakephp3?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants