to handle more than just plain HTTP requests, including WebSockets and HTTP2, as well as the ability to run code after a response has been sent … Andrew Godwin • Django Core Developer • Creator of ‘South’ Adopted as an official Django project
Layer: Deliver to Consumers. • Consumer: Consumes a message and take actions. Source : https://blog.heroku.com/in_deep_with_django_channels_the_future_of_real_time_apps_in_django
to only one listening consumer. • Identified by a unique unicode name. • In-Memory / IPC/ Redis. • Standard channel names: http.request websocket.connect websocket.receive websocket.disconnect • Clients have unique response channel (reply_channel): !http.response.ja24Rdj !websocket.send.EdsU230f • Group: Named set of channels to broadcast What is a Channel?
messages. What is a Consumer? A view receives a request and sends single response. Request Response View Message Consumer Message Receive from channels, and send to them/groups. WebSocket/HTTP messages come with a reply_channel
Masnun’s Blog post • Another great post by Jacob Kaplan-Moss. • And off course the Official Documentation. This Slide and other links will be published on my website : http://arifin4web.github.io/talks/ Further