Meteor multi-tenant architecture options

Meteor

Looking into creating a multi-tenant app with Meteor?

Luckily you’re not alone and there are quite a few options available. We suggest you try reading the following links.

https://stackoverflow.com/questions/17356615/how-to-design-a-meteor-smart-package-to-transparently-separate-an-app-into-diffe

https://forums.meteor.com/t/multitenancy-and-meteor/5653/26

https://atmospherejs.com/mizzao/partitioner

Also, a code snippet is included below which can give you some inspiration on how you want to approach this design pattern.

Meteor.publish("data", function() {
 var tenantId = Meteor.users.findOne({_id: this.userId}).tenantId;
 return MyCollection.find({tenantId: tenantId}, {fields: {tenantId: 0}});
});