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
- Why You Need Background Tasks
- Setting Up Celery with a Broker
- Writing and Calling @shared_task
- Scheduled Jobs with Celery Beat