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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With