Live data from Hacker News

Supabase Edge Runtime: Self-Hosted Deno Functions

supabase.com

21–30 of 105 posts

Re: Supabase Edge Runtime: Self-Hosted Deno Functions

#21

Is this bad for Cloudflare? aka this is competition to their "Workers" product?

This can definitely be used as an alternative to Workers if you prefer self-hosting. You can also use Deno Deploy ( https://deno.com/deploy ), if you want a Workers alternative but don't want to self-host

Any thoughts on implementing really "enterprise" languages like Java or C# so you could attract "the big boys" (corporations)?

I know the corporations I work at are very anti-node.js and very pro-C# and everything needs to be approved by a tech committee. I don't think we could get Supabase approved (and instead we fork millions a month to Azure instead).

Just a bit of feedback. I'm not a fan of C# or Java at all these days given how good Rust, node.js/Typescript/Deno have become. I just now work for 40,000+ person companies where I know this would be a non-starter unless you were super lucky to get all approvals aligned and be on one of the "cool" team.

Maybe not the pivot/user feedback that aligns with your goals. :D

Re: Supabase Edge Runtime: Self-Hosted Deno Functions

#22

just use a regular server for mid/larger sized apps. i started my web dev journey with JAMStack, Vercel, the "edge". everything is easy as long as one only deploys a full-stack NextJS app. the moment other apps come in, just use a server deployed as VPS and avoid "edge runtime hell". edge runtime hell refers to "you can't do this (function with over 2MB payload), you can't do that (because not supported by X)". EDIT:…

I’ve been using Cloudflare workers for a while now and I have to disagree. There are entire classes of problems I no longer worry about with Workers and can just focus on building. My search history is a reflection of that. I’m no longer looking up “how do I put this thing in a Jails or container to limit exposure?” “how do I properly secure an SSH server?” “what is the magic incantation in my NGinx configuration to…

I updated my post. I meant with "deploy as VPS" "deploy as a (virtual private) server with a service like render, heroku".

I agree the sys admin stuff, no thanks. the appeal of "serverless edge", at least to me, is ease of deployment. but, that ease of deployment is tooling / git integration rather than the underlying architecture.

the benefit of "your functions are globally distributed" has yet to appeal to me. for large ecommerce maybe. but then again, just deploy your servers in a distributed fashion which is "easy" if no state persistent is involved and tooling like fly.io is emerging.

Re: Supabase Edge Runtime: Self-Hosted Deno Functions

#23

Earlier quoted context omitted.

Usually the teams know what they need to build based on user feedback (which we get a lot of). We don't have Product Managers, the developers are expected to be very product-focused and user-facing. After every launch week we ask them what they want to build and then they get to work.

Hi! Congratulations on the launch. I'm a big fan of what you folks are doing over there and I genuinely love your product. Would love to keep in touch to see when the changes to this will happen. Also speaking as a ceo & founder, my natural inclination is to keep that culture going, small and avoid hiring a PM as long as possible. As I reflect on my operating time, I wonder if it was a mistake not to find the right P…

> wonder if it was a mistake not to find the right Product Manager (sic) early so that they can be inoculated with the culture as we grow.

That's an interesting thought. We do have some techies "acting" as PMs across the team, but i can see how we might one a dedicated person at some point.

always open to chatting to other founders - feel free to reach out.

Re: Supabase Edge Runtime: Self-Hosted Deno Functions

#24

Is this bad for Cloudflare? aka this is competition to their "Workers" product?

It's as bad as Deno Deploy has always been (used by Netlify edge functions, Supabase, and others).

To me CF Workers are more about interacting with the CF CDN, doing lightweight HTTP stuff, etc. I would never use Workers to build a full server application. Their custom runtime locks you in, it's extremely barebones, and obviously almost no NPM modules are compatible.

They are working on Node compat which will probably help but I feel CF hasn't been investing enough into their cloud products (Workers, Pages, etc). DX is still hit and miss and progress overall feels glacial.

Re: Supabase Edge Runtime: Self-Hosted Deno Functions

#25

Earlier quoted context omitted.

Usually the teams know what they need to build based on user feedback (which we get a lot of). We don't have Product Managers, the developers are expected to be very product-focused and user-facing. After every launch week we ask them what they want to build and then they get to work.

That sounds like heaven. And you guys are using Rust! That’s like, double heaven! Are you guys hiring ;)

we hire very slowly: when we have a problem to solve and nobody is owning the problem in the current team, we write a job spec specifically for this role and hire someone.

At the moment we don't have any Rust jobs, but we always you can keep an eye on supabase.com/careers or follow us on twitter to keep updated

Re: Supabase Edge Runtime: Self-Hosted Deno Functions

#26

Earlier quoted context omitted.

This can definitely be used as an alternative to Workers if you prefer self-hosting. You can also use Deno Deploy ( https://deno.com/deploy ), if you want a Workers alternative but don't want to self-host

Any thoughts on implementing really "enterprise" languages like Java or C# so you could attract "the big boys" (corporations)? I know the corporations I work at are very anti-node.js and very pro-C# and everything needs to be approved by a tech committee. I don't think we could get Supabase approved (and instead we fork millions a month to Azure instead). Just a bit of feedback. I'm not a fan of C# or Java at all the…

We won't add support for other languages in our Edge Functions (beyond WASM support), but we are adding native support for other languages in our client libraries. For example, we already have C# support: https://supabase.com/docs/reference/csharp/introduction

The idea is that you'd just use the client libraries in your favourite framework.

Re: Supabase Edge Runtime: Self-Hosted Deno Functions

#27

Earlier quoted context omitted.

This can definitely be used as an alternative to Workers if you prefer self-hosting. You can also use Deno Deploy ( https://deno.com/deploy ), if you want a Workers alternative but don't want to self-host

Any thoughts on implementing really "enterprise" languages like Java or C# so you could attract "the big boys" (corporations)? I know the corporations I work at are very anti-node.js and very pro-C# and everything needs to be approved by a tech committee. I don't think we could get Supabase approved (and instead we fork millions a month to Azure instead). Just a bit of feedback. I'm not a fan of C# or Java at all the…

We are planning to focus on the Deno and WASM ecosystem. If C# complies to WASM, we would be able to run it, but have a lot of work to do to make this seamless.

Re: Supabase Edge Runtime: Self-Hosted Deno Functions

#28
post #24

Is this bad for Cloudflare? aka this is competition to their "Workers" product?

It's as bad as Deno Deploy has always been (used by Netlify edge functions, Supabase, and others). To me CF Workers are more about interacting with the CF CDN, doing lightweight HTTP stuff, etc. I would never use Workers to build a full server application. Their custom runtime locks you in, it's extremely barebones, and obviously almost no NPM modules are compatible. They are working on Node compat which will probabl…

Very well said. What would you say CF has been investing in instead?

Re: Supabase Edge Runtime: Self-Hosted Deno Functions

#29

just use a regular server for mid/larger sized apps. i started my web dev journey with JAMStack, Vercel, the "edge". everything is easy as long as one only deploys a full-stack NextJS app. the moment other apps come in, just use a server deployed as VPS and avoid "edge runtime hell". edge runtime hell refers to "you can't do this (function with over 2MB payload), you can't do that (because not supported by X)". EDIT:…

I have stuck with cheap VPS servers for as long as I can remember. It takes 5 minutes to deploy a full stack node.js app, along with a database - and I've yet to exhaust the resources on my VPS, even with all my side projects (production grade and hobby stuff).

Have always found it weird how so many heroku-style hosting providers charge _per app_, things get costly, quickly, when you have lots of small apps like I do.

Just yesterday I realised I'll need a database to store job queues for https://chatbling.net - ChatGPT helped me figure out how to install it, have it persist to disk, ensure it starts up with the system etc. It's nice to not be fearful of unexpected charges hitting my card.

To anyone reading, even if it's just for learning, every now and then, skip the vercel/fly.io/netlify/planetscale/upstash/render/railway whatever cool hosting provider is out, and give a $5 VPS a try.

Re: Supabase Edge Runtime: Self-Hosted Deno Functions

#30

hey hn, supabase ceo here This is a webserver for Deno. It is MIT licensed, written in Rust, and based on the latest Deno Runtime (1.32+). It can serve TypeScript, JavaScript, and WASM functions. This one is important for local development and self-hosting. For local development, it ensures there is parity between development and production. For self-hosting, it means you can deploy and manage your Deno Functions on…

Is Supabase targeted towards webdev "apps" or mobile "apps"? As a mobile dev I got excited to check out a Firebase + serverless alternative, but the docs seem very targeted towards webdevs and non-native apps.

I see there's a 1.0 Swift library that's available, would love if someone can chime in with their experience using that in an iOS app.

Post reply on HN