Question

I have a django project which currently uses a redis cache both as my celery broker and as my regular cache. I like this setup because it solves 2 of my needs with 1 technology. However, recently I have been having trouble with redis crashes. The issue is that when redis goes down, my whole site ceases functioning because the tasks are extremely important.

So my question is, should I find another broker for my celery tasks, or is there a way I can get high availability out of redis?

Was it helpful?

Solution

If "the tasks are extremely important" you should use RabbitMQ broker instead of Redis.

OTHER TIPS

You should check Redis Sentinel which is the official high availability solution for Redis (work in progress, actively developed though).

Depending on where your app is hosted at, you could use a hosted Redis provider that offers HA.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top