2 ms·
We have a multi-tenant app and want to use something like this for all user-customizable code (workflow steps that we eventually want to allow users to write, t
by atonse 6y ago
We have a multi-tenant app and want to use something like this for all user-customizable code (workflow steps that we eventually want to allow users to write, that we treat as completely untrusted).
CF workers possibly wouldn't work cuz we run on AWS and would have to pay for bandwidth to and from CF. (but don't know these figures, we're very early in research).
What is people's actual experience on OpenFaas vs lambda vs other self hosted options vs things like CF Workers?
- fimbulvetr 6y agoLambda@Edge on CloudFront is similar to this, although I don't believe they have that good of performance. I suspect that this would be enough incentive for them to catch up though. I am able to work within Lambda@Edge's constraints (us-east-1, minimal code size, no layers, low max execution time) reasonably well, but it would be nice for them to start removing some of those limitations as well as adding a speedup (although I have no real complaints about speed).
- mrkurt 6y agoWe've built a few multitenant products, and made friends with some other companies who've done the same. The tradeoff between "using an external FaaS system" and "just embedding v8" is pretty important. If your user customizable code can be reduced to basically one HTTP call, the options you mentioned will probably work fine. When we did this though, we found that it was really irritating to have coarse grained for customer interactions and we were better off just embedding our own runtime and building a really nice JS based API for people to use. So if I were you, I might actually look at whether embedding Deno (https://deno.land/manual/embedding_deno https://deno.land/manual/embedding_deno) and building your own runtime API is valuable. We went: Lambda hooks -> v8 runtime -> Firecracker VMs for our particular use case.
- atonse 6y agoThis is really interesting, thanks!