Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to develop a multi-tenant application with Node.js (express.js)?

I'm looking for resources on how to write a multi-tenant application in Node.js. Can anyone guide me in the right direction? Thanks.

Here's my technology stack:

  • Node.js
  • Express.js
  • Mocha.js
  • Postgres SQL
  • JavaScript
  • HTML5
like image 529
jsf Avatar asked Dec 20 '12 21:12

jsf


People also ask

What is a multi-tenant application example?

Examples of large multitenant applications are Microsoft 365, Outlook.com, and visualstudio.com. From an application provider's perspective, the benefits of multitenancy mostly relate to operational and cost efficiencies.

How do I create a multi-tenant application in spring boot?

There are three approaches on how to build a multi-tenant application: Database per tenant — each tenant has its database. Shared database, separate schema — all tenants are using the same database, but each tenant has his schema. Shared database, shared schema — all tenants are using the same schema.


1 Answers

a pretty complete StackOverflow answer can be found here:

How to make Node.js Multi-tenant for websites on port 80?

also jackdbernier has a good answer about vhosts within expressJS.

like image 193
Matt617 Avatar answered Oct 21 '22 19:10

Matt617