Changmin Choi
Changmin Choi

Reputation: 153

Celery: using Redis as a result_backend and RabbitMQ as a message broker

I am a novice to Celery, Redis, and RabbitMQ.

Currently, I'm using RabbitMQ as a message broker, and nothings are set in configuration. (with Django, MySQL)

I am wondering if it's possible to use Redis as a result store in backend, at the same time, RabbitMQ as a message broker.

The thing I know is only adding some settings, CELERY_RESULT_BACKEND = "redis"

Upvotes: 4

Views: 1476

Answers (1)

matagus
matagus

Reputation: 6206

Yes, it's possible. Just set:

CELERY_RESULT_BACKEND = "redis://:<password>@<hostname>:<port>/<db_number>"

replacing <password>, <hostname>, <port> and <db_number>.

Upvotes: 1

Related Questions