openfaas / templates

OpenFaaS Classic templates
https://www.openfaas.com
MIT License
281 stars 227 forks source link

Different support for concurrent execution? #307

Closed wiluen closed 1 year ago

wiluen commented 1 year ago

I conducted performance testing on different functions and found that some functions can execute requests concurrently within in a single function container(e.g., pythton), while others can only execute requests in sequence.(e.g., Golang,node) I would like to know the reason and what factors determine this issue?

Expected Behaviour

Current Behaviour

Are you a GitHub Sponsor (Yes/No?)

Check at: https://github.com/sponsors/openfaas

List All Possible Solutions and Workarounds

Which Solution Do You Recommend?

Steps to Reproduce (for bugs)

1. 2. 3. 4.

Context

Your Environment

alexellis commented 1 year ago

Hi there,

I conducted performance testing on different functions and found that some functions can execute requests concurrently within in a single function container(e.g., pythton), while others can only execute requests in sequence.(e.g., Golang,node)

That's simply not the case.

All templates support concurrency and parallel invocations.

You'll need to provide your testing method and results, with reproducible samples if you'd like us to comment further.

Alex