Overview:
The django-websocket-redis project provides a solution for implementing websockets on top of Django without the need for an additional framework. It utilizes Redis as a message queue and is designed to work under uWSGI and behind NGiNX or Apache version 2.4.5 or later. With features such as scalable websocket connections and full control over the main loop, this module offers a comprehensive solution for integrating websockets with Django.
Features:
- Scalable: Suitable for Django applications with many open websocket connections.
- Cooperative Concurrency Model: Runs a separate Django main loop using gevent for efficient management of websockets.
- Redis Integration: Communication between normal Django requests and the main loop is facilitated through Redis, providing a reliable message queue.
- Persistence: Optionally allows messages to be persisted, enabling server reboots and client reconnections.
- No Additional Framework Needed: Does not depend on other asynchronous event-driven frameworks like Tornado or Twisted.