Today, we are sharing a very simple demo of how to run the Autobahn WebSocket server-side Python implementation on dotCloud.
The real-time web movement is all around us. Mainstream tech media like Mashable, ars technica and the recently re-branded readwrite pubs have been talking it up for years. At dotCloud, we have been sponsoring and speaking at Portland’s Keeping It Realtime Conf since its inception in 2011.
What is Autobahn?
To quote autobahn.ws:
Autobahn provides Open-Source client and server implementations of WebSocket and WAMP.WebSocket allows bidirectional real-time messaging between browsers (as well as other clients) and servers and WAMP provides asynchronous RPC and PubSub over WebSocket.
Why use Autobahn?
If you want to write real-time web apps in Python and leverage on the WebSocket protocol, Autobahn is a very solid option. It also provides WAMP, which will save you from re-inventing the wheel if you want to implement asynchronous RPC and PubSub. Autobahn provides not only a Python library for client and server code, but also implementations in JS (for browser based apps) and in Java (for Android).
Get Started Now!
Running Autobahn on dotCloud is easy, and free in Sandbox mode. This example will help you to get started in less than a minute:
- create your FREE dotCloud account at http://www.dotcloud.com/
- install the dotCloud CLI
- follow these 1-2-3-4 steps:
git clone git://gist.github.com/4048789.git autobahndemo
yes | dotcloud create autobahndemo -f sandbox
- go to the URL shown at the end of the push. Voilà!