Running NodeJS

55 views
Skip to first unread message

Pradeep Das

unread,
May 9, 2019, 3:18:55 AM5/9/19
to nodejs
We would like to run a NodeJS docker container, which would execute some isolated arbitrary JavaScript function and then kill the vm. Also the source code of the JavaScript has to be obtained from a remote location.
Would we be able to do rate limiting on it - if so, what are the options available - time, i/o, etc...? 

Brandon Moser

unread,
May 10, 2019, 11:47:20 PM5/10/19
to nodejs
The better option for this is a serverless or worker architecture. Take a look at this article, https://hackernoon.com/a-crash-course-on-serverless-with-node-js-632b37d58b44 for some starting points. You build process could pull in the latest javascript or have a default script that pulls in the code to run. This situation is not always best, as it could lead to unknown code running if the process were to be compromised or hacked.
Reply all
Reply to author
Forward
0 new messages