Running channels on Google Cloud Run #2156
-
|
Hi y'all, first of all, thank you for making Django Channels. Our education product would not have been possible without it. We are currently pondering whether to move from Heroku to Google Cloud. On Heroku, Django Channels works beautifully with two dynos for Django and the channels worker respectively. As far as I understand it, Google Cloud Run meanwhile is a more server-less-ish (?) architecture that by default turns off containers that are not running anymore. I suspect that's at odds with Django Channel's structure and Google's documentation hints in a similar direction. Does anyone have any experience with running Django Channels on Google Cloud Run? Are there any known caveats? Your help is greatly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
From my reading of the documentation these seem like comparable products? You can configure GCloud Run to not scale to zero:
(source: https://cloud.google.com/run/docs/overview/what-is-cloud-run) And they have a tutorial which uses WebSockets so I don't see anything that immediately jumps out as not compatible with Channels The easiest way to find out is to actually deploy a test instance on GCloud and see how it works :) |
Beta Was this translation helpful? Give feedback.
From my reading of the documentation these seem like comparable products? You can configure GCloud Run to not scale to zero:
(source: https://cloud.google.com/run/docs/overview/what-is-cloud-run)
And they have a tutorial which uses WebSockets so I don't see anything that immediately jumps out as not compatible with Channels
The easiest way to find out is to actually deploy a test instance on GCloud and see how it works :)