The Django Channels, Celery and Redis Tutorial is about how to build Real Time application, that performs a GET-request to the API every 3 seconds, and then sends its response to all connected clients. I use Django Channels, Celery and Redis.
It's a complicated Django Channels, Celery and Redis project for advanced Django "users".
I used Celery with Django to perform periodic tasks (requests to the API). As a message broker Celery uses Redis.
Follow me @:
Telegram: https://t.me/red_eyed_coder_club
Twitter: / codereyed
Facebook: https://fb.me/redeyedcoderclub
** Web Scraping course **
is available via Patreon here:
/ red_eyed_coder_club
or its landing:
https://red-eyed-coder-club.github.io...
In this video:
how to integrate Celery to a Django project,
how to integrate Celery with Redis,
how to execute a Django task periodically with Celery,
how to perform a request to an API, and use the response,
how to send data from Celery task to a Channels Consumer
how to broadcast messages.
How Celery works, and why you need Redis (or RabbitMQ):
1. Celery provides workers. A worker is a function that executes our tasks. A Task is a function that we define in our Django Project.
2. And Django somehow should pass our tasks (that we defined), to these workers...
3. And usually brokers are used to do it.
4. A broker - is a task queue that stores our tasks. It's a data structure.
5. After the Broker gets a task from a Django app, it puts the task in a queue... and then it starts to pass these tasks to workers.
6. After a worker completes its task it will put the result in a so called Results Backend. And then we can fetch these results from a Django app. Usually the same broker is used to store the results.
7. The most popular brokers are Redis and RabbitMQ. In this tutorial I'm using Redis.
*** The source code is available via Patreon ***:
/ 45961233
** Other Django Channels videos **
The most minimal Django Channels app: • Django Channels Tutorial 🔥: the most ...
Real Time Graph: • Django Channels Tutorial 🔥: Real Time...
*** My Django 3 tutorial ***:
• Python Django Tutorial #0: Demo of Dj...
This video is for you if you're looking for Redis Django tutorial (or Django Redis tutorial), or using of websockets with Django