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

I am new to Celery, Redis and RabbitMQ.

I am currently using RabbitMQ as a message broker, and nothing is configured. (with Django, MySQL)

I am wondering if Redis can be used as a repository of results in the backend, at the same time, RabbitMQ as a message broker.

The thing I know only adds some settings CELERY_RESULT_BACKEND = "redis"

+4
source share
1 answer

Yes it is possible. Just install:

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

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

+1
source

Source: https://habr.com/ru/post/1622307/


All Articles