Really love the work you’re doing. We’re working on multi-tenant support for our application (org1.domain.com, org2, org3 etc) and I have a few ideas I’d be keen to run past everyone before we investment development dollars.
I am very new to this to please point out any mistakes I make!
Dynamically connecting to different org’s mongo db by parsing subdomain
Thank you for posting the topic here for further discussion!
As you’re aware, this has been an in-demand, yet thorny and difficult engineering undertaking since the beginning of our project. History of which is more or less documented on this long running issue:
Behind the scene, we have seen no less than 3+ attempts (some heavily funded) using the documented approaches that had resulted in either:
perhaps a code fork (public/private) that satisfied the participant’s particular requirements, but not “good enough” for upstream merge because it did not solve the general problem
Our learning during these 3+ years of community attempts and feedback has been:
a) the mizzao partitioner approach is likely not the solution as devoted groups have attempted and abandoned; this is especially relevant as we continue to remove the dependency of our code on the Meteor framework moving forward
FWIW - In order to move on with multi-tenant in production (see our cloud offerings if you are interested), we ourselves have leveraged the industry wide movement of adopting orchestrations of lightweight containers to achieve a level of secured isolation between tenants that is acceptable to our own requirements.
Having shared that, we remain continually hopeful (with receptive open mind) of innovative solutions from our community.