News for hackers. Stuff that matters.
Re:How we built a serverless SQL database by rabaut on Tuesday October 26, 2021 @02:19PM (#29004130)
Does CockroachDB Serverless expose an HTTP api? This sounds like a great fit for use with Cloudflare Workers, but that requires an http api.
Re:How we built a serverless SQL database by andydb on Tuesday October 26, 2021 @02:29PM (#29004278)
Great question. We recognize how important this is and are actively working on it.
Re:How we built a serverless SQL database by webmaven on Wednesday October 27, 2021 @01:25PM (#29016270)
Is it possible to use PostgREST in front of CRDB to solve this use case?: https://postgrest.org/
Re:How we built a serverless SQL database by andydb on Wednesday October 27, 2021 @04:14PM (#29018546)
We're working on enabling PostgREST. There is some small-ish functionality that we need do in CockroachDB for it to fully work.
Re:How we built a serverless SQL database by sorenbs on Tuesday October 26, 2021 @05:56PM (#29006852)
Prisma will launch a data proxy, as well as support for cockroachdb and Cloudflare workers early next year.
Re:How we built a serverless SQL database by password4321 on Tuesday October 26, 2021 @09:00PM (#29008424)
I think Supabase does, 500mb storage + 2gb outbound data transfer for free.
Re:How we built a serverless SQL database by sharps_xp on Tuesday October 26, 2021 @03:06PM (#29004817)
Why do you prefer an HTTP API versus a DB connection? Isn't the former going to inherently have the overhead cost of creating the connection + TLS handshakes?

My question is similar, which is, is CockroachDB going to have an equivalent RDS proxy so that apps can handle traffic spikes and not have to deal with problems with DB connection pools

Re:How we built a serverless SQL database by pistoriusp on Tuesday October 26, 2021 @03:29PM (#29005101)
I think we won't be getting socket connections in some of the wasm powered JS runtime engines soon. Using http solves that, and a bunch of caching issues.
Re:How we built a serverless SQL database by estambar on Tuesday October 26, 2021 @04:36PM (#29005914)
there are some great projects that present an http api for postgres that you could use with CRDB I think. I'm thinking of something like https://github.com/pramsey/pgsql-http
Re:How we built a serverless SQL database by pistoriusp on Tuesday October 26, 2021 @04:40PM (#29005979)
Now it would be awesome if we could use Prisma against an open standard like this.
Re:How we built a serverless SQL database by zaidf on Tuesday October 26, 2021 @04:25PM (#29005812)
I kind of assumed this came with an HTTP api, woops :) I've been using Airtable with Workers for tiny side projects. This seemed like a nice alternative to Airtable's lack of support for vanilla SQL.