Multi Database Architecture in Next.js

Hey Theo and the Community 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 ?
2 Replies
🟠 CHANCE
🟠 CHANCE13mo ago
Database prefixes or just a raw single database with a bunch of organizational tables depending on the models — I would not deploy a new instance for every org. The term you’re looking for is multi-tenant.
NotLuksus
NotLuksus13mo ago
Yeah a seperate database seems really really overkill
Want results from more Discord servers?
Add your server