-
-
Notifications
You must be signed in to change notification settings - Fork 43
Multitenancy support #25
Comments
Additional information: Multitenancy with Postgres schemas: key concepts explained |
@gregorwolf are you able to to implement a user variable to allow for me to switch schemas on event handler? Suggested code change block below Line 131 in 48a3554
From the web hooks:
|
why don't you put this in a PR? |
1st open source PR created! #113 - Please let me know if I need to do anything differently next time. |
Hi @gregorwolf, @mikezaschka, @vobu As you know, CDS Core uses another library called cds-mtx for multitenancy.
cds-mtx injects relevant endpoints for mentioned features above under /mtx/* Tenant Onboarding Tenant Offboarding Tenant Model Upgrade Tenant based extensions Of course there is a lot more to tell but this is the basic idea of CAP Multitenancy with schema separation. My question here is, should multitenancy be supported in this cds-pg module? or Should we create another module Best, Alper |
I think that multitenant support will need to be implemented in the cds-dbm module. I would like to add a multitenant flag and tenant array in the migration options. If the multitenant flag = true, then we also deploy to tenant schemas. Problem is I don't know how to proberly implement & test this feature yet. |
SAP Cloud Platform CF offers the possibility to develop multitenancy applications and CAP has built in support.
When running on SAP CF, the PostgreSQL adapter should be able to handle the multitenancy.
I am currently not sure about all the requirements, but one is to change the schema based on the requests tenant. A possible solution could like this:
For a future implementation it would be necessary to identify all the internal requirements by analyzing the cds core and come up with a concept for PostgreSQL (that maybe works for other DB adapters as well).
The text was updated successfully, but these errors were encountered: