0Pricing
Django Academy · Lesson

Setting Up Celery with a Broker

Wire Celery to Redis or RabbitMQ.

What a Broker Is

Celery needs a broker: a middleman that holds queued tasks until a worker grabs them. Think of it as the inbox between your app and the workers.

Redis or RabbitMQ

The two common brokers are Redis (simple, fast, great default) and RabbitMQ (heavier, very robust). For most Django apps, Redis is plenty. 📨

All lessons in this course

  1. Why You Need Background Tasks
  2. Setting Up Celery with a Broker
  3. Writing and Calling @shared_task
  4. Scheduled Jobs with Celery Beat
← Back to Django Academy