Hello all :wave: I'm planning to use Prisma deploy...
# orm-help
c
Hello all 👋 I'm planning to use Prisma deployed as a lambda with an Aurora Serverless database, but I've seen that Prisma doesn't support the Aurora Serverless Data API: https://github.com/prisma/prisma/issues/1964 Can anyone advise on whether Aurora Serverless is still a good option with Prisma even without the Data API? I've got things working without the Data API (just connecting to Aurora Serverless from my lambda like I would to any RDS instance) but I'm not sure if this is just making things more difficult for myself without getting the real benefits Aurora Serverless
I'm reading that one benefits of the Data API is that it allows access to the database from other regions. This isn't an issue for me as all my infrastructure will be deployed in a single region
f
Used regular Aurora Postgres in prod for a year without problems, only reason we didn't go serverless was because the app itself isn't in AWS.
👍 1
t
I spent a lot of time trying to make this work
Don't use aurora serverless, it's too janky. Use something like Planetscale and try out the new Prisma data proxy with it
Making Prisma work in lambda needs a bit of tweaking as well, I posted an example we out together in #showcase
c
@thdxr what problems did you face with Aurora Serverless? Just found your example repo, thanks!
🙌 1
t
It's possible v2 is better but the amount of time it takes for aurora serverless to start up from cold/scale up/down was pretty disruptive to the user
Since they're basically running a normal database and starting/stopping it
I can't remember the full details but I remember wrangling with it for a month and deciding it just wasn't ready for what I needed
c
Thanks @thdxr, good to know about the cold starts. I'm going to run my PoC with Aurora Serverless and see if the cold starts are going to be a problem for me too