Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

Investigate Python SDK concurrency limitations

Offen
#975 3 Kommentare 3 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

@seherv arbeitet bereits daran.

Seit 28.4.2026.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Beschreibung

P1

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
Vorherrschende Sprache
Python
Sterne
272
Forks
152
Ø Merge
1 T. 13 Std.
Gemergte PRs (30 T.)
4

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus dapr/python-sdk

Alle Issues in dapr/python-sdk

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.