Distributed workflow compute engine based on MongoDB