faas-flow icon indicating copy to clipboard operation
faas-flow copied to clipboard

Parallel execution speed up

Open dimgiagos44 opened this issue 2 years ago • 4 comments

Is it possible by scaling the queue-worker and flow's pods to accelerate the execution of the flow???

dimgiagos44 avatar Feb 21 '22 18:02 dimgiagos44

I have come to the conclusion that the faas-flow wrapper function executes a flow with sync-calls to the others functions. This means that neither scaling the queue-worker nor scaling function replicas would affect at all the flow execution speed.

Not 100% sure though. It would be great if @s8sg could comment on this!

dimgiagos44 avatar Feb 22 '22 18:02 dimgiagos44

@dimgiagos44 Can you explain more on what do you mean by sync-calls ?

s8sg avatar Feb 26 '22 14:02 s8sg

@s8sg as far as i have examined, the faasflow function invokes the other openfaas functions included in the flow, with sync http calls. But concurrency can not be achieved with sync. url builder for openfaas function http call

dimgiagos44 avatar Feb 26 '22 15:02 dimgiagos44

@dimgiagos44 It uses nats queue if used async. With sync its always HTTP

s8sg avatar Apr 09 '23 03:04 s8sg