14 ms·
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
by me_me_mu_mu 5y 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?
- kasey_junk 5y agoAWS lambda’s work that way.
- pid-1 5y agoThat'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.
- brundolf 5y agoIt'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.
- qbasic_forever 5y agoFind a cheap apache web host that allows cgi-bin.
- nl 5y agoYou can do that on Lambda: https://docs.aws.amazon.com/lambda/latest/dg/golang-handler.html 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.
- prakis 5y agoThis 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 https://TinyFunction.com Appreciate any suggestions or feedback.
- me_me_mu_mu 5y agoSite 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!