Whether the dify Community Edition executes concurrent workflow calls through api? #20848
Replies: 1 comment 3 replies
-
|
Yes, the Dify Community Edition does support concurrent workflow calls through the API, but its concurrency is limited by several factors. The main controls are SERVER_WORKER_AMOUNT (number of Gunicorn worker processes), SERVER_WORKER_CONNECTIONS (connections per worker), SQLALCHEMY_POOL_SIZE (DB connections), and APP_MAX_ACTIVE_REQUESTS (per-app concurrent requests). However, even after tuning these, you may still see limited concurrency because the Community Edition is designed with modest performance in mind—higher throughput and faster response times are only available in the enterprise edition, and slow response is expected in the community version details. If you have already increased these parameters and still see bottlenecks, you are likely hitting the built-in performance ceiling of the Community Edition. There are no hidden dynamic limits, but all these caps must be tuned together to avoid resource contention reference. For higher concurrency, the only supported path is to consider the enterprise edition. To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Self Checks
Content
We found that concurrency was limited while using the api to call the workflow, However, changing the SERVER_WORKER_AMOUNT, SQLALCHEMY_POOL_SIZE, SERVER_WORKER_CONNECTIONS, and APP_MAX_ACTIVE_REQUESTS parameters does not improve. How can I improve concurrency in community edition?
Beta Was this translation helpful? Give feedback.
All reactions