Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

88
Views
uWSGI equivalent for Django-Channels

I am aware that Django is request/response cycle and Django Channels is different, my question is not about this.

We know that uWSGI/gunicorn creates worker processes and can be configured execute each request in threads. So that it can serve 10 requests "concurrently" (not in parallel) in a single uWSGI worker process with 10 threads.

Now let's assume that each web client wants to create a websocket using Django Channels, from my limited understanding (with vanilla implementation), that it will process each message in a single thread, which means, to process x amount of connections concurrently, you need x amount of channel worker processes. I know someone will suggest to increase the number of processes, I am not here to debate on this.

My question is simply are there any existing libraries that does similar job with uWSGI/gunicorn that execute consumer functions in threads?

about 4 years ago · Santiago Trujillo
2 answers
Answer question

0

I think you are asking for daphne. It is mentioned in channels document itself.

about 4 years ago · Santiago Trujillo Report

0

Daphne provides an option to scale process using a shared FD. Unfortunately, it is not working as expected.

Rightnow, a better alternative is to use uvicorn. You can run multiple workers with

$ uvicorn project.asgi --workers 4

I have been using this in production and it seems good enough.

about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!