News for hackers. Stuff that matters.
Re:Netlify Edge Functions: A new serverless runtime powered ... by adam_arthur on Tuesday April 19, 2022 @05:26PM (#31089448)
Also a common spec for serverless is badly needed. Serverless code should be portable between different cloud providers, otherwise there's vendor lock in and much greater opportunity to price gouge.

Anybody know if a common API for serverless components is being worked on?

Re:Netlify Edge Functions: A new serverless runtime powered ... by phphphphp on Tuesday April 19, 2022 @05:39PM (#31089618)
Check out knative, it’s used for Google Cloud Run: https://knative.dev/docs/
Re:Netlify Edge Functions: A new serverless runtime powered ... by algorithmmonkey on Tuesday April 19, 2022 @08:31PM (#31091273)
What is the common spec for Knative? It seems like one runs an app as normal in a container and then the special scaling sauce is handled by Knative.

When I think of a portable spec for serverless, I think of something more like a Trait of an Interface that needs to be implemented, less a app hosting model. If you think about it like that, then Web Assembly component model [1] would be a great fit for defining an interface that could be implemented in a variety of languages.

[1]: https://github.com/WebAssembly/component-model/blob/main/des...

Re:Netlify Edge Functions: A new serverless runtime powered ... by adam_arthur on Tuesday April 19, 2022 @09:13PM (#31091572)
Yes, exactly. Of course experimentation and competition is good to settle on a solid set of building blocks, but in the long run serverless code should absolutely be portable between vendors.

There's a strong incentive for vendors to not allow this as it reduces their pricing power... But think we will see it eventually one way or another.

Re:Netlify Edge Functions: A new serverless runtime powered ... by spankalee on Wednesday April 20, 2022 @02:03AM (#31093385)
That would only be implementable by languages with a WASM output target though. Knative says that any container that responds to HTTP will work, and you could host those in different environments. It's much more general.
Re:Netlify Edge Functions: A new serverless runtime powered ... by gardnr on Tuesday April 19, 2022 @05:37PM (#31089600)
There's the serverless framework which is easy to use and there is terraform which is more powerful.

Relevant: https://xkcd.com/927/

Re:Netlify Edge Functions: A new serverless runtime powered ... by huijzer on Tuesday April 19, 2022 @05:46PM (#31089715)
It doesn’t avoid vendor lock-in. Instead of a cloud provider, it is now Terraform.