Let's say I run a hosted service that wants to allow plugins written by third-party clients.
Perhaps a gaming service provider that provides infrastructure, but allows customers to develop their own game referees. Or a coding competition site that allows coders to send code to run as a solution to any coding problem.
How would you solidify / block / isolate this user code from potential harm to the server that intends to run it?
How would you track and limit the use of resources (mainly CPU, memory)?
This is a good start for Python, but I wonder if anyone has more experience that they can use regardless of language (Python, Lua, Ruby, etc.).
source
share