Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I use node.js npm and socket.io on google app engine

Can I use node.js npm and socket.io on google app engine

or suggest some low-cost or free solution on cloud that provide a socket.io module becouse I need this for realtime omunication with server

like image 708
Peter Web Avatar asked Apr 29 '12 10:04

Peter Web


People also ask

Does Google App Engine support WebSockets?

Try Google Cloud Today, we are excited to announce that App Engine Flexible Environment now supports the WebSocket protocol in beta—the first time that App Engine supports a streaming protocol.

Is Nodejs used at Google?

Google Cloud Platform joined the Node. js Foundation today. This news comes on the heels of the Node. js runtime going into beta on Google App Engine, a platform that makes it easy to build scalable web applications and mobile backends across a variety of programming languages.

Does GCP support node JS?

Google Cloud lets you choose the best environment to run your Node. js applications, with options for serverless, Kubernetes, VMs, or custom hardware.


1 Answers

Node support on Google App Engine is available through what Google calls "The App Engine flexible environment". Where your code is running in a docker container hosted by Google. This is in contrast to "The App Engine standard environment" where your code is running in some soft of custom built container. More info here. Documentation for Node on Google App Engine can be found here.

NOTE: The flexible environment is currently in beta! And according to Google not recommended for production use.

Web sockets can be used on Google App Engine. However according to this example for using websockets on Google App Engine; encrypted websockets are currently not supported.

For alternative hosting: The Node wiki maintains a list of hosting providers; old wiki(but somewhat maintained), new wiki. On these wiki pages you can find different types of both free and paid plans for Node hosting.

like image 90
Mattias Avatar answered Sep 20 '22 15:09

Mattias