Hyperdrive without using a worker?

Hey all, I want to setup hyperdrive for my stack to see if it's more performant than using a direct connection to the database. We're currently hosted on Vercel (plans to switch to cloudflare when I get some time) but I wanted to test out hyperdrive! I can see that I can provide a db connection string but from my understanding I'd get a new connection string from cloudflare, where can I find this? Thanks in advance!
2 Replies
Chaika
Chaika5w ago
There's a proper #hyperdrive channel for this with the team in it btw Hyperdrive was created to fix the issue of Workers connecting to databases, by implementing connection pooling and such. As far as I know there's still no way to use it without Workers, although they maybe were considering it in the past? https://discord.com/channels/595317990191398933/1150557986239021106/1158339734263828500 If you're using normal long living connections the doubt this would help much anyway, besides maybe caching helping out
mr nooli
mr nooliOP5w ago
Thank you! I don't know how to use discord properly and the channel was hidden! I'll ask in that chat thanks! But we are on vercel rn, which doesn't have long running connections - which I believe is adding an overhead to every function I run
Want results from more Discord servers?
Add your server