Skip to content

Websocket based bidirectional communication between Tornado - RabbitMQ - worker processes

License

Notifications You must be signed in to change notification settings

zetaops/websocket-tornado-rabbitmq-example

Repository files navigation

##WebSocket - Tornado - RabbitMQ - Worker Process Example

This example demonstrates realtime bidirectional communication between multiple browser clients and background worker processes over Tornado / Pika / RabbitMQ.

Inbound messages routed through a single channel via "topic" type exchange to multiple workers. Session ID's passed with "routing_key"s.

Outbound return messages transmitted via per websocket "direct" channels.

Testing

First run the worker.py as is or pass the number of worker sub-processes like this: worker.py manage=10

Then run the server.py and open http://127.0.0.1:9001 on your browser and press "Run" button.

Screenshot

Screenshot

About

Websocket based bidirectional communication between Tornado - RabbitMQ - worker processes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published