Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parallel execution speed up #148

Open
dimgiagos44 opened this issue Feb 21, 2022 · 4 comments
Open

Parallel execution speed up #148

dimgiagos44 opened this issue Feb 21, 2022 · 4 comments

Comments

@dimgiagos44
Copy link

dimgiagos44 commented Feb 21, 2022

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

@dimgiagos44
Copy link
Author

dimgiagos44 commented Feb 22, 2022

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!

@s8sg
Copy link
Owner

s8sg commented Feb 26, 2022

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

@dimgiagos44
Copy link
Author

@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

@s8sg
Copy link
Owner

s8sg commented Apr 9, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants