3

How to implement multitenancy in GAE using namespaces?

We can implement using namespace_manager in Python 2.7 but there is no documentation available on how to use it in Python 3.7.

Is there any other approach to achieve multitenancy in GAE?

Dustin Ingram
  • 20,502
  • 7
  • 59
  • 82
skaul05
  • 2,154
  • 3
  • 16
  • 26

2 Answers2

2

The Namespaces API is only supported in the Python 2.7 runtime. If you need a multi-tenant app in the Python 3.7 runtime, you'll need to implement it via your web framework of choice.

For example, see "optimal architecture for multitenant application on django ".

Dustin Ingram
  • 20,502
  • 7
  • 59
  • 82
  • Hi, is there a way we can implement tenant specific separation at datastore level for NDB without using namespace manager and web framework ? – Abhilasha Aug 14 '19 at 16:32
0

Datastore supports multitenancy directly, other Google Cloud services do not support on GAE in python 3.