Hacker News new | ask | show | jobs
by adoxyz 1481 days ago
Ado from DO here. Happy to help in anyway I can. Super excited for DO Functions to finally go GA!
6 comments

"Memory is limited from 128 MB - 1 MB, defaulting to 256 MB", do you mean 1GB?

5 second max function duration? Cloudflare is unlimited and AWS is 15 minutes.

https://docs.digitalocean.com/products/functions/details/lim...

That should indeed read 1GB, good catch! Will get that fixed up.
Currently it is a 5 second max duration, but we are working on addressing this.
What is the underlying software used for DO functions? OpenFaas? Firecracker? gvisor? something custom to DO?
The foundation is Apache OpenWhisk https://github.com/apache/openwhisk with DO specific customization to work with App Platform, managed databases, trusted sources, log shipping, and other DO specific capabilities. The closest programming model is AWS Lambda in terms of the semantics and execution model.
So that means that there is a vendor lock in and I can't just move over to say IBM Cloud Functions (despite both being based on OpenWhisk)?
OpenWhisk functions are vendor agnostic and have a generic signature of JSON in and JSON out and no other dependencies. Functions on DigitalOcean may also run functions from Netlify and AWS Lambda (and vice versa). You can run the same functions on IBM Cloud Functions and Adobe I/O runtime. This article from 2020 runs the same code on multiple clouds included self hosted for the curious https://openwhisk.blog/post/advocate/openwhisk-portable-serv....
Any plans for supporting ruby as well? It seems that there is an OpenWhisk runtime for that.
I'd be more that interested in that as well because I couldn't find any info about the stack in the docs.
5 second max duration seems incredibly small. Is there a reasoning behind this limit?
Yeah, it doesn't seem super usable for anything that might have to deal with external resources that you cannot control, such as databases or HTTP APIs.
Will any sort of scheduled execution be possible with DO Functions? I've been looking for a way to add scheduled tasks (e.g. session cleanup) to DOAP apps.
yep - it's coming.
Thanks! While I've got you here... do you have any insight into the Spaces roadmap? I've been waiting for per-Space permissions for access keys to land to enable me to migrate a bunch of S3 buckets. Thanks again.
Finer grained IAM like permissions but without the AWS complexity is of great interest. I will see what else I can share.
Thank you – I'm desperate to even just isolate access to a single space, to replicate what I currently have on S3, so I can multi-tenant my clients' media storage on the Spaces platform.
Is it possible to connect to my droplet locally without going through the public ip ?
Hi! Plans for Node16 and more RAM?
Yep and yep, also more runtimes.