in Python 2 and 3, running on Twisted or asyncio.
WebSocket allows bidirectional real-time messaging on the Web while WAMP provides applications with high-level communication abstractions (remote procedure calling and publish/subscribe) in an open standard WebSocket-based protocol.
Autobahn|Python features:
- framework for WebSocket and WAMP clients
- compatible with Python 2.7 and 3.3+
- runs on CPython, PyPy and Jython
- runs under Twisted and asyncio
- implements WebSocket RFC6455 (and draft versions Hybi-10+)
- implements WebSocket compression
- implements WAMP, the Web Application Messaging Protocol
- supports TLS (secure WebSocket) and proxies
- Open-source (MIT license)
Further, Autobahn|Python is written with these goals:
- high-performance, fully asynchronous and scalable code
- best-in-class standards conformance and security
WebSocket is great for apps like chat, trading, multi-player games or real-time charts. It allows you to actively push information to clients as it happens. (See also Automatically Run All Examples)
Further, WebSocket allows you to real-time enable your Web user interfaces: always current information without reloads or polling. UIs no longer need to be a boring, static thing. Looking for the right communication technology for your next-generation Web apps? Enter WebSocket.
And WebSocket works great not only on the Web, but also as a protocol for wiring up the Internet-of-Things (IoT). Connecting a sensor or actor to other application components in real-time over an efficient protocol. Plus: you are using the same protocol to connect frontends like Web browsers.
While WebSocket already is quite awesome, it is still low-level. Which is why we have WAMP. WAMP allows you to compose your application from loosely coupled components that talk in real-time with each other - using nice high-level communication patterns (“Remote Procedure Calls” and “Publish & Subscribe”).
WAMP enables application architectures with application code distributed freely across processes and devices according to functional aspects. Since WAMP implementations exist for multiple languages, WAMP applications can be polyglot. Application components can be implemented in a language and run on a device which best fit the particular use case.
WAMP is a routed protocol, so you need a WAMP router. We suggest using Crossbar.io, but there are also other implementations available."
http://autobahn.ws/python/
No comments:
Post a Comment