4 ms·
We'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" a
by mrkurt 6y ago
We'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!