N
Neon12mo ago
adverse-sapphire

Has anyone tried out the integration of Next/Prisma/Postgres at scale? What was your experience?

Hi everyone, I had been facing issues using Supabase database in the past with Prisma and Next.js. Hence switched over to Vercel's own partner Neon for the database. We are building a trading platform with thousands of users trading every hour hence we need to make the app really reliable. Has anyone tried this combination at scale yet?
16 Replies
adverse-sapphire
adverse-sapphireOP12mo ago
Also, what was your prisma setup like?
adverse-sapphire
adverse-sapphireOP12mo ago
Hi @Mahmoud Is this a common issue? We can upgrade the account to the highest tier possible. But we just don't wanna face the same issue we did with supabase here.
No description
crude-lavender
crude-lavender12mo ago
Hey! Are you running into this issue consistently? Also, which Prisma version are you using On paid plans you can prevent the database from being suspended
adverse-sapphire
adverse-sapphireOP12mo ago
seems to happen every 2/100 times or so 5.21.1 ah, it isn't suspended though
adverse-sapphire
adverse-sapphireOP12mo ago
this is our prisma setup
No description
crude-lavender
crude-lavender12mo ago
Are your serverless functions configured to be in the same region as your neon database?
adverse-sapphire
adverse-sapphireOP12mo ago
i'm not certain how to configure that, i set up the db using the vercel dashboard
No description
adverse-sapphire
adverse-sapphireOP12mo ago
ah yeah
No description
adverse-sapphire
adverse-sapphireOP12mo ago
its the same region
crude-lavender
crude-lavender12mo ago
Can you share with me your compute endpoint ID? You can find it in the connection string I would recommend upgrading your plan so that you have access to our support team in case an issue occurs
adverse-sapphire
adverse-sapphireOP12mo ago
yes, doing this in a few days or so before launch ep-summer-breeze-a493r924.us-east-1.aws.neon.tech this right?
adverse-sapphire
adverse-sapphireOP12mo ago
upgraded as well @Mahmoud
No description
crude-lavender
crude-lavender12mo ago
You shouldn't run into any timeout issues with autosuspension disabled Feel free to reach out if you have any questions or run into any issues 😄
adverse-sapphire
adverse-sapphireOP12mo ago
awesome sure
foreign-sapphire
foreign-sapphire12mo ago
@Kunal Bagaria In case you continue to run into timeout issues, do share the error screenshots. I am curious if you're receiving a 504: Gateway Timeout?
adverse-sapphire
adverse-sapphireOP11mo ago
sure, haven't received it yet after making the suspension period to none

Did you find this page helpful?