Investigate Python SDK concurrency limitations
@seherv y travaille déjà.
Depuis le 28/4/2026.
Évaluation
Cette issue n'a pas encore été évaluée.
Description
The Python Dapr SDK currently relies on threadpool-based execution for workflow and activity processing. This model has known limitations:
- The GIL (Global Interpreter Lock) constrains true parallelism for CPU-bound work
- Thread pool exhaustion under high concurrency can delay sidecar acknowledgments
Native asyncio execution would allow the SDK to handle a higher volume of concurrent workflow tasks without the overhead and contention introduced by thread management, reducing sidecar response latency under sustained load.
Goals
- Quantify the throughput and latency characteristics of the current threadpool implementation under sustained workflow load
- Rewrite workflow and activity execution to use native asyncio
- Validate that the rewrite improves sidecar response latency and throughput under load conditions
Tasks
- Benchmark current threadpool implementation — measure workflow throughput, activity concurrency, and sidecar acknowledgment latency under sustained load
- Document failure conditions — identify load thresholds at which sidecar response times begin to degrade
- Design asyncio execution model — propose the replacement architecture for workflow and activity dispatch
- Implement asyncio rewrite — replace threadpool-based execution with native asyncio in the workflow worker
- Ensure existing workflow and activity behavior is preserved
- Load validate — re-run benchmarks against the rewritten implementation under production-representative load and confirm improvement in sidecar response latency and throughput
- Document operational guidance — update SDK documentation with concurrency configuration recommendations for workflow-heavy deployments
- Write Dapr OSS blog on findings
- Langage dominant
- Python
- Étoiles
- 272
- Forks
- 152
- Merge moyen
- 1 j 13 h
- PR mergées (30 j)
- 4
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de dapr/python-sdk
-
dapr-ext-workflow good first issue kind/enhancement P2
Difficulté 2/5 1-2 jours Accessibilité débutants 72/100
dapr/python-sdk#853 · 4 commentaires ·
-
feature-request
Difficulté 3/5 1-2 jours Accessibilité débutants 76/100
dapr/python-sdk#1214 ·
-
dapr-ext-workflow kind/enhancement
Difficulté 3/5 1-2 jours Accessibilité débutants 78/100
dapr/python-sdk#1213 ·
-
Difficulté 3/5 1-2 jours Accessibilité débutants 76/100
dapr/python-sdk#1200 ·
-
dapr-ext-workflow kind/enhancement
Difficulté 3/5 1-2 jours Accessibilité débutants 58/100
dapr/python-sdk#1188 ·
Toutes les issues de dapr/python-sdk
Issues similaires
-
bug confirmed issue
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
open-webui/open-webui#30750 · 1 commentaire ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
-
enhancement
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
OpenwaterHealth/openmotion-bloodflow-app#604 · 1 commentaire ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
-
good first issue
Difficulté 1/5 Moins d'une heure Accessibilité débutants 90/100