© Federico Marani 2019
Federico MaraniPractical Django 2 and Channels 2https://doi.org/10.1007/978-1-4842-4099-1_8

8. Backend for a Mobile Customer-Service App

Federico Marani1 
London, UK

In this chapter we will move away from HTML and normal HTTP. We will create the necessary infrastructure to support a mobile app, including asynchronous communication using WebSocket and HTTP server-side events.

This chapter is centered on Django Channels, including these topics:
  • How to integrate it

  • How to build WebSocket consumers

  • How to integrate it with Redis

  • How to use it to serve content asynchronously

Django Channels

Django Channels is a recent addition to the Django ecosystem. It is officially supported by Django, and all development happens on GitHub alongside ...

Get Practical Django 2 and Channels 2: Building Projects and Applications with Real-Time Capabilities now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.