javascript - Multitenancy - design pattern -


i have requirement design following:

  • there 1 main domain
  • there on application runs , servers all
  • multitenancy, different databases. user per database (special users share many databases)
  • using auth0

user logs in, system recognizes belong , application uses appropriate database.

i have made prototype relies on subdomain name, , in theory should have worked. in prototype, system relies on host. requirements changed, , cant use subdomain asset differentiate.

i cant begin think how organize of this, in mind redis rings bell. dont know :(

i appreciate pointers, if has done already?

i using react / hapi.js / sequalize (mysql) / auth0

if haven't done should check: using auth0 multi-tenant apps

it has few different examples , provides guidelines on how model type of architectures in auth0.


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - IE9 error '$'is not defined -