Here is the same algorithm you can deploy like a docker container and use like a Function-As-a-Service:
https://blog.functorflow.com/introducing-functorflow
It's like your trying to run a service but just gave up...