1
votes

I was looking at some tutorials for setting up Redis (message broker) + Celery for Django and I'm a little confused about how the queues work. The tutorial I followed was https://hackernoon.com/asynchronous-tasks-with-celery-redis-in-django-3e00d3735686

  1. Does redis have an inbuilt queue as the message broker? Or is the queue a part of celery?
  2. Which queue is the task pushed onto? The redis queue or the celery queue?

In this diagram it looks like redis and celery have their own queues

1

1 Answers

0
votes

Celery does not have its own queue (at least not in that architecture). Redis will hold all the tasks in the queue, and then a celery worker node will consume the task from the Redis queue.