We have deployed a Remix-based stack (Postgres + Remix + Prisma) and here is a marked difference between the performance of the app using Netlify dev, versus the production deploy.
As we’re quite new to serverless and the Netlify platform, we could use some pointers.
The DB is hosted by Supabase, and we connect to it through connection pooling (pgBouncer), using Prisma on the app side.
First thing that is noticeable is the init time in the function log, which is regularly over 1s. Also, requests that take a couple of seconds in the dev setup regularly hit the time-out, even after bumping that to the max. Memory usage seems to be consistently around 150MB.
Which suggests there is an another problem at play here. The website is vadv-website.netlify.app
.
Any insights one could share?