When you have a long-running job, is it recommended to disconnect prisma in between bursts of activity when also using RDS Proxy? I saw the caveat here https://www.prisma.io/docs/guides/deployment/deployment-guides/caveats-when-deploying-to-aws-platforms that RDS Proxy is pointless since Prisma pins, but I'm wondering if explicitly disconnecting the prisma client will help with load-balancing when RDS instances failover and the connections need to be re-allocated.
n
Nurul
05/24/2022, 12:29 PM
Hey Richard 👋
Yes, In the context of long-running applications such as a background service it’s recommended to disconnect PrismaClient explicitly.
You can read more about it here