If you are using a pool of executors (configurable semephore) for executing ‘natively’ that sounds ideal to me. Definitely need to test fault in WASM as to not effect the alpha process but I assume the WASM engine handles that already. Does the WASM engine allow resource sandboxing too? Like max X memory? (appears so)
exec’ing nodejs is what felt terrible to me, so I would say not that model.