cancel
Showing results for 
Search instead for 
Did you mean: 

Multi-tenancy

0 Kudos

Hi:

As a part of an app we are developing, we would like cache / persist some data that should be tenant specific. In the developer documentation, I dont see much information about multi-tenancy aspects. Is the multi-tenancy / data separation done at an account level or is there some other way of doing this?

Thanks a lot.

Best regards

Venki

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello Bernd,

Any updates on this topic? Are there any documents/samples which explain the handling of tenant id in applicaiton available?

Thanks,Swati

bernd_hofmann
Active Participant
0 Kudos

Hello Swati,

Please check Tenant Context API. The overall documentation can be found here: Multitenant Applications.

Thanks and Regards,

Bernd

Answers (1)

Answers (1)

bernd_hofmann
Active Participant
0 Kudos

Hi Venki,

At present, each application gets its own separate database schema on deployment. So at the moment there are two possibilities for multi-tenancy:

  1. Use one application for all tenants: Then you have to introduce an additional discriminator column in all your tenant-specific tables to distinguish between the tenants. The application has to manage multi-tenancy on its own
  2. Deploy your application several times, one instance for each tenant: Then each tenant is stored in its own separate database schema. However, you'd have to deploy as many instances of your application as you have tenants. So this might only be an option for limited cases

We know that this is not sufficient and therefore we are working on a more flexible way to support multi-tenancy. E.g. it will allow to have several database schemata used by one application instance, one schema per tenant. So please stay tuned for upcoming announcements!

Regards,

Bernd

0 Kudos

Hi Bernd:

Re 1) If we add a discriminator column to our schema, how do we get the Tenant "id" to fill in to this column? Are there any API's that we can use for this purpose?

Best regards

Venki

bernd_hofmann
Active Participant
0 Kudos

Hi Venki,

This is work in progress. We are aware that multi-tenancy is an important topic which is needed by our customers. That's why we want to come up with a profound solution. At present, the discussions about the API are not yet finalized; that's why there is no public API available at the moment, but will definitely come.

Regards,

Bernd

richard_hirsch
Active Contributor
0 Kudos

Just so that people don't the wrong idea.

NetWeaver Cloud does support multi-tenancy in other areas (IdentityProvider, subscriptions, etc).  I just blogged about some of these other multi-tenant features.

D.