Question

I have developed a Node.js application which receives data from TCP and at the same time makes the data available to a Socket.io port.

The principle of the application is to collect sensor data and make it available on the browsers. This application requires 2 ports (1 for TCP (net) and 1 for socket.io).

I have tried various cloud hosting solution for Node.js including Nodejitsu, AppFog (AWS), Azure, but all of these provide a single port through an environment variable process.env.port.

Is there any alternative other than dedicated hosting?

Était-ce utile?

La solution

Windows Azure should be able to handle this fine in a Cloud Service (but not in a Web Site). The command-line tools won't do a great job of helping you... you'll have to take a look at ServiceDefinition.csdef and add the appropriate endpoints there. You'll want to use a worker role, not a web role.

I hope that gets you started.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top