Hacker News new | ask | show | jobs
by me_me_mu_mu 1528 days ago
Really, really dumb question. I've seen a lot of node/python/etc serverless offerings. Is there something where you just provide a binary and its executed each time?

For example, I write a simple single responsibility piece of code in Go `add_to_cart.go` and build it, deploy it, and somehow map it to some network request. dot slash pass args, and return the result?

No need to have containers or runtime?

6 comments

That's how every FaaS (Function as a Service) offering works.

A caveat is that most non trivial applications need something more than running a function.

You might need secrets management, ephemeral and non ephemeral storage, relational databases, non relational databases, dependency management, AAA capabilities, observability, queues/async, caching, custom domains... That's where said offerings differ.

EDIT: actually most FaaS offerings take code as input, not binaries. I'm not sure if that was the relevant part of your question. If it was, then yeah I don't know of such service.

You can do that on Lambda: https://docs.aws.amazon.com/lambda/latest/dg/golang-handler....

AWS still needs the container/runtime to stop your code getting access to other things on the same physical computer.

Find a cheap apache web host that allows cgi-bin.
This is exactly what we are building at TinyFunction.com Just write your function code in Javascript or Python in the browser and click deploy to get a URL. Take a look at https://TinyFunction.com

Appreciate any suggestions or feedback.

Site no loading on my phone. Just a white screen with a green comment button. That’s really cool though that you’re going to build something like that, wish you all the best!
It's possible you'd run into environment issues. JS or Python code (or a container) doesn't have to care as much what OS or architecture it's run on. A raw binary could pierce that abstraction and make the service more complicated to offer.
AWS lambda’s work that way.