Live data from Hacker News

Storage on Vercel

vercel.com

31–40 of 144 posts

Re: Storage on Vercel

#31
post #24

Earlier quoted context omitted.

Yes! Any postgres and redis client will just work. And the blob store has a REST API.

Based on this code example: import { sql } from '@vercel/postgres'; const { rows } = await sql` INSERT INTO products (name) VALUES (${formData.get('name')}) `; Presumably authentication is handled transparently? I really like that - reminds me of Deno's new KV cloud stuff too. Is that done with environment variables? I'd want a way to tap into that from Python code as well.

Yeah, if you go into the dashboard it gives you a bunch of options for connecting to the DB including the names of the automatically generated environment variables. And that includes POSTGRES_URL which most tools default to.

Re: Storage on Vercel

#32
post #26

Earlier quoted context omitted.

I believe this is a core factor as to why Supabase hasn't joined Cloudflare and Vercel, they don't have that "outside" aspect. By all other counts, they are well established to do so and who knows maybe they do have something in the works to tie in their offerings together from the "outside".

(am supabase investor) fortunately supabase's value prop is so straight forward it doesnt quite need to do the "outside-in" maneuver. just make postgres into a developer friendly platform. huge TAM in itself. another investor i asked on why they put $millions into supabase simply said "RDS has more than $1b ARR"

Great point about being direct, and the priority on DX seems to be a semi-moat in itself, worked for Vercel and Supabase so far!

Re: Storage on Vercel

#33
post #18

Earlier quoted context omitted.

Upstash on Fly.io is not serverless. You provision the RAM + connection counts you want, and then pay for that capacity. This is not what all our customers want, but it is much cheaper to run this way for most fullstack frameworks. It's not ideal for a Redis you don't use at all, though. We're considering a serverless / metered billing option for this. But what we have is much closer to spinning up a permanent Redis.…

The dashboard on fly.io didn't say it's not serverless. SO it's not transparent. Look like a scam to me. For now, i had to say goodbye for most of cloud services. Good old VPS for now.

Ok that's a silly thing to say. Nowhere on our site do we say we offer serverless anything. When you provision a Redis, we offer you a selection of plans, you pick the one you want, and off you go. I don't understand why you'd assume that's serverless.

Re: Storage on Vercel

#35

The postgres code snippet is a text-book example of how to enable SQL injection attacks. Great performance from the Vercel marketing team.

I don't think you understand what the code is doing. That's a string templating function , not a raw templated string. `${formData.get('name')}` will get passed as a parameter in a var-arg, not stuck straight into the string.

Right. The code converts all expressions into $N-parameters. However Postgres does not support parameters in all locations, eg. this would fail:

   import { tableName } from "../shared"
   sql`SELECT * FROM ${tableName} WHERE id=${formData.get('id')}`
The @vercel/postgres package needs a big disclaimer that it works very differently from node-postgres and what is and is not allowed.

Re: Storage on Vercel

#36
Essentially added a "Storage" tab and configuration management in Vercel for selected integrations. And then charge a premium for that:

- Vercel Postgres pricing: https://vercel.com/docs/storage/vercel-postgres/usage-and-pr...

- Neon Postgres pricing: https://neon.tech/docs/introduction/billing

You can properly still buy Postgres directly from Neon or choose another database provider: https://vercel.com/integrations#databases

Re: Storage on Vercel

#37
This is cool and whatever, but after the work my company has put in to actively move things away from Vercel I'm going to assume it's hugely overpriced by default compared to even other similar SaaS services.

Re: Storage on Vercel

#39
post #8
post #2

Vercel is the second company to “eat the cloud from outside in”. ( https://www.swyx.io/cloudflare-go ) its now my defacto playbook for building lasting bottom up disruptive cloud companies. start by giving away an extremely good free tier (cloudflare - cdn, vercel - nextjs+hosting) then add build time compute, run time compute, readonly kv store, and now full read write storage. (this is part of an overall cloud prog…

Classic VC-backed B2B play. The trick, however, is finding a "wedge" people actually want on its own. Unfortunately that seems to be easier said than done.

well a good start is betting on the most popular framework in the most popular language and building the production ready stuff that is missing that the framework authors constitutionally cannot compete with you on :)

there are better wedges financially speaking but theres pretty much no bigger bottom up developer wedge than this one

Re: Storage on Vercel

#40
Is the (moderate) improvement in Dx and writing one check worth the increased costs? In the case of blob storage, aren't most Vercel customers paying Cloudflare already?
Post reply on HN