Hi, how should you go around using Prisma as multi...
# random
a
Hi, how should you go around using Prisma as multi-tentant source with different microservices in Node.js? For example we have one location database and we have one app for transactinal purposes and one for content. But we want to use the same location db in both apps.
r
I’d love to learn about this too.
i
m
I am not sure that the logic for handing multi tenant belongs in the ORM layer here, unless the tenants share a database. In that case, you simply add in a Tenant table, and manage your queries appropriately. When you are managing multiple databases, do they all have identical schemas? We use Graphql to bridge our Authentication / Authorization process with Nestjs and manage custom systems for our users. Each client has a custom schema.
i
Thanks for your reply in that thread Michael, I like the points you made.
d
You need one service from database. and communicate both