Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hosting a tornado/websocket application

I wrote an application which makes use of the websocket implementation of Tornado and I am trying to find a host for it. As far as I can tell by reading google search results, google appengine does not support websockets at the moment. I'm not sure about heroku since I couldnt find any information. So my question is, if anybody knows a hoster where I could host my application?

like image 404
rabra Avatar asked Feb 29 '12 08:02

rabra


People also ask

What is Tornado WebSocket?

websocket — Bidirectional communication to the browser. Implementation of the WebSocket protocol. WebSockets allow for bidirectional communication between the browser and server.

Can multiple clients connect to same WebSocket?

A server can open WebSocket connections with multiple clients—even multiple connections with the same client. It can then message one, some, or all of these clients. Practically, this means multiple people can connect to our chat app, and we can message some of them at a time.

Do you need a server for WebSockets?

By definition websockets like normal sockets are client-server so yes, you need a server.


1 Answers

The easiest thing might be to use a general IaaS (Infrastructure as a Service) cloud provider such as Amazon EC2 or Rackspace. Or even just use a regular hosted server like with Dreamhost. With those you get direct access to the OS and network configuration and you can do whatever you want. The downside is those will be more expensive and you for EC2 and Rackspace you will need to manage the host itself.

Update: you can now use Websockets on Heroku. Here is some information about using Websockets with Python on Heroku.

like image 179
kanaka Avatar answered Sep 29 '22 11:09

kanaka