Multi Tenant Architecture using Next.js
Unanswered
Hokkaido posted this in #help-forum
HokkaidoOP
Hello @NextjsCommunity
So I'm trying out something where I use the same frontend application to serve multiple organizations, each organization with their own distinct Database. Basically I create a new database for every new organization. Its somewhat like implementing a Microservice Architecture,
Q1. Is there a way to implement such an architecture in Next.js ? If yes, How ?
Q2. Or should I deploy a new instance of the application for each organization? If yes, then how ?
So I'm trying out something where I use the same frontend application to serve multiple organizations, each organization with their own distinct Database. Basically I create a new database for every new organization. Its somewhat like implementing a Microservice Architecture,
Q1. Is there a way to implement such an architecture in Next.js ? If yes, How ?
Q2. Or should I deploy a new instance of the application for each organization? If yes, then how ?
5 Replies
https://vercel.com/templates/next.js/platforms-starter-kit
This starter template should help you 😉
This starter template should help you 😉
If you consider this topic as closed please mark a message as the answer for your post with
Right click -> Apps -> Mark Solution@Z4NR34L https://vercel.com/templates/next.js/platforms-starter-kit
This starter template should help you 😉
HokkaidoOP
Is there a non vercel way to go about this at all ?
Any non vercel examples of this ?
Any non vercel examples of this ?
@Hokkaido Is there a non vercel way to go about this at all ?
Any non vercel examples of this ?
generally - you just can replace any vercel db to others, replace vercel domains with cloudflare or make that subdomains/paths etc. You will not find 1:1 example or perfect solution just to deploy in that case 🙂 I was using this starter in all SaaS/multi-tenant cases