that sounds like an interesting architecture and problem set but don't see how 'serverless' would help
Serverless is an attractive prospect: Provide a function and lvalues and get a result.
Adaptation: You just need to break out everything to the point where you can farm it to function(lvalue) = ret.