Is t3 stack good for serverless

Is everything in t3 good for serverless without having any cold starts?
13 Replies
iDarkLightning
Absolutely not Prisma is abhorrent for cold starts
itsanameidk
itsanameidkOP3y ago
Alright thanks for the quick response ❤️
iDarkLightning
np, the prisma client opens a database connection and has like rust bindings and such...very much not the best for cold starts despite that however, serverless is still the recommended path (in most cases) for t3 stack
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
iDarkLightning
Of course you can Its just not fast on lambdas its a cost that is probably worth eating in a lot of scenarios
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
iDarkLightning
Are you importing prisma
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
iDarkLightning
Yes, the global prisma object isn't initialised until you import it Also why did you make your own question and also post it here...
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Samathingamajig
regarding the original question,
is t3 stack good for serverless
yes. you just need to change how you do things a bit either planetscale or railway.app or some similar service recently came out with, or are currently developing and will be out soon, a simple type-safe way to query the database for simple queries directly over http so that prisma doesn't have to initialize
iDarkLightning
Planetscale has the http service railway is just a hosting platform
itsanameidk
itsanameidkOP3y ago
Ah ok i planned on using https://blog.cloudflare.com/introducing-d1/ when that comes out and https://workers.cloudflare.com/ which speaking of workers do you know if there is a way to use workers with t3?
The Cloudflare Blog
Announcing D1: our first SQL database
Today, we’re excited to announce D1, Cloudflare’s first SQL database, designed for Cloudflare Workers
Cloudflare Workers®
Build your next application with Cloudflare Workers
Want results from more Discord servers?
Add your server