Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running Websockets with Google Cloud Platform

I have a flask app that runs both flask and flask-socketio endpoints. When i went to deploy on google App engine, i realized that websockets are not supported by app engine. this means that i need to use compute engine for my flask-socketio and app engine for my regular flask endpoints i assume. how would i go about creating these two instances and run them in parallel while being connected to one another? is this possible? if im not on the right track with my train of thought please point me in the right direction.

like image 865
DanielJomaa Avatar asked Jul 06 '18 17:07

DanielJomaa


1 Answers

Yes you can run how many instance you want running in parallel to scale our service in your case you may think about creating a cluster. You can Use Compute Engine for WebSocket Server, Google decided to combine App Engine with Compute Engine to implement the connection with WebSocket servers. Here a Google public document that explain WebSocket on Google Cloud Platform

like image 69
Alioua Avatar answered Nov 08 '22 12:11

Alioua