|
> Currently the scripts are sent along with each request, so the scope is ai guess that should be considered in context of the current C/C++
> client and there is no persistence. I think this is going to be the focus of
> our next steps, namely to use a single VM instance (rather than
> one-per-request right now), as well as persisting the scripts, although I'm
> not sure what the scoping will look like in that case.
plugin deployment. maybe the Lua plugin should have some 'startup
script(s)' in a predefined place.
about the VM per-request, remember that setting/destroying a VM can
take a significant time, so it's very convenient to keep it running.
of course, that puts a lot of responsibility on the script author,
since any undesired side-effect would also persist in the VM.
another consideration is about concurrency. a single VM could
represent a scarce resource, maybe a pool of them would be better.