agiliq / building-multi-tenant-applications-with-django

https://books.agiliq.com/projects/django-multi-tenant/en/latest/
247 stars 129 forks source link

Shared database with isolated schema but no subdomains? #9

Open gcherem opened 5 years ago

gcherem commented 5 years ago

Hi, this is the most complete document about multitenancy on Django I've have seen.

I like the idea of keeping each tenant in a separated schema, specially for performance, but I don't like subdomains specially for three reasons: additional friction during the registration process, extra SLL costs and exposition of my customer list.

Is there a way to have shared database with isolated schema without subdomains?

Keep up the good work!

esbolice commented 5 years ago

You can implement the middleware class and build your own validation for clients.