django / django/channels

Documentation on scaling and concurrency

Open
#960 20 comments 14 reactions 0 assignees View on GitHub
documentation exp/intermediate
Dominant language
Python
Stars
6.4k
Forks
826
PR merge metrics
No merged PRs in 30d

Description

Current documentation (2.0.2) does not mention how to run multiple workers beyond running a supervisor process and using a shared FD. What is the correct way to scale beyond a single daphne/worker process?

Also, there is no discussion of concurrency. How many threads are run at once? How does that get affected by sync code that, e.g. talks to the database, remote API's via blocking sockets, etc? Is the number of threads a tunable parameter?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.