Multiple data sources
So I get my
db which is a PrismaClient with this piece of code. We also have 2 databases which is up all the time and synced. Are there any way to use multiple database urls so if one fails it will go to the next one?
2 Replies
Howdy, friend! I'm the Prisma AI Help Bot — fast answers from me, or slow, hand-crafted wisdom from a dev? Choose wisely, adventurer.
You can try using the read replica extension for this 👇🏾
https://www.prisma.io/docs/orm/prisma-client/setup-and-configuration/read-replicas
Read replicas | Prisma Documentation
Learn how to set up and use read replicas with Prisma Client