TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

The PlanetScale serverless driver for JavaScript

144 pointsby tbarnalmost 3 years ago

11 comments

joshstrangealmost 3 years ago
Very cool and lightweight way to talk to PlanetScale but for now I&#x27;ll stick with Prisma. Prisma is much heavier (engine weighs in at ~50MB) and that can be a non-starter for serverless in some cases but it works for me on AWS Lambda.<p>The nice thing about PlanetScale is you get nearly unlimited connections (soft limit of like 250K IIRC) so making 1 connection per active lambda isn&#x27;t a problem at all.<p>I&#x27;ve been using PlanetScale since shortly after they went GA and I&#x27;ve been very happy so far. Cheaper than Aurora Serverless, less hassle, and the branching feature is super cool. Zero-downtime deploys, with rollback support, feel magical.
评论 #32513281 未加载
评论 #32529249 未加载
mandeepjalmost 3 years ago
Please forgive my ignorance. Is it right if I say the password seems to be available on the client side?<p>import { connect } from &#x27;@planetscale&#x2F;database&#x27;<p>const config = { host: &#x27;&lt;host&gt;&#x27;, username: &#x27;&lt;user&gt;&#x27;, password: &#x27;&lt;password&gt;&#x27; }<p><a href="https:&#x2F;&#x2F;github.com&#x2F;planetscale&#x2F;database-js" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;planetscale&#x2F;database-js</a>
评论 #32517252 未加载
评论 #32517698 未加载
评论 #32517201 未加载
gsandersonalmost 3 years ago
This is great! Potentially the missing piece in the world of &quot;serverless&quot;: a serverless SQL database accessible over HTTP with no minimum price. I saw AWS Aurora has a Data API but currently that does have a minimum monthly cost. Fauna is possibly the closest, but that appears to involve translating SQL to its FQL. How stable is the beta?
评论 #32513114 未加载
评论 #32513194 未加载
评论 #32513086 未加载
评论 #32513069 未加载
alexcrooxalmost 3 years ago
This is huge for me. I went down the path of trying to build an entire API on CF Workers and the biggest stumbling block was no easy access to external relational databases due to a lack of v8 compatible connectors. This was before the D1 announcement of course.
评论 #32512424 未加载
评论 #32512616 未加载
评论 #32516439 未加载
rsweeney21almost 3 years ago
Has anyone tested edge functions + planetscale (or similar) vs edge functions + a database read replica also located at the edge?<p>It seems like you lose most of the benefit of your code running at the edge if your database is still in an AWS region.
评论 #32514795 未加载
评论 #32514030 未加载
jackblemmingalmost 3 years ago
Please consider using a custom string interpolation function to sanitize SQL, not an additional array of parameters. See styled components for inspiration.
asadawadiaalmost 3 years ago
do people want a SQL DB over HTTP?
评论 #32518655 未加载
评论 #32516767 未加载
brundolfalmost 3 years ago
Curious what the performance impact is of replacing TCP with HTTP for this kind of thing
评论 #32513043 未加载
tdy721almost 3 years ago
This is really cool, but you missed Deno. I have a hunch this would mix well with Fresh
评论 #32513438 未加载
theobralmost 3 years ago
HUGE launch so hyped
tmikaeldalmost 3 years ago
While this is cool tech and convenient, I worry about run-away costs and what happens if the company goes down? Seems like a LOT of risk.
评论 #32516994 未加载