What should scaling channels look like? #2053
Unanswered
TheSteveBurgess
asked this question in
General
Replies: 1 comment 7 replies
-
Hi! @raphaelm gave a great talk at DjangoCon Europe 2023 on this topic: Building and scaling a live event platform with django-channels — I'd start there. |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've spent some time looking at the best way to scale channels and i've not found a huge amount of information. The information i have found looks to be old and potentially written for older versions of Channels.
If you have an application that could potentially have tens of thousands of users, what would be the correct way to scale channels to cope with this?
I'm currently using Openshift (which is essentially just Kubernetes). With Django itself I'd scale horizontally, creating more containers as demand ramps up and then just round robin load balance between them. I assume with the long running nature of websocket connections this won’t work as the connection needs to come back to the correct container?
I'd be interested to hear how other people have tackled the issue.
Beta Was this translation helpful? Give feedback.
All reactions