How to reduce the costs of the Redis cache

Eelco 85 Reputation points
2023-10-26T12:33:17.8833333+00:00

I am using Redis as message broker between my Django app and the Celery taskmananger. I use this relatively light, but this service is the highest item on my invoice. It's more expensive than the postgress database and the App Service, which are, in my opinion, more heavily used.

  1. I wonder why this is, I am using it, but only now and then. The load isn't that high, just sending some messages between background task and the frontend.
  2. Is there a way to reduce the costs? Changing settings or use another product?
Azure Cost Management
Azure Cost Management
A Microsoft offering that enables tracking of cloud usage and expenditures for Azure and other cloud providers.
2,494 questions
0 comments No comments
{count} votes

Accepted answer
  1. Pramod Valavala 20,616 Reputation points Microsoft Employee
    2023-10-27T11:28:59.5333333+00:00

    @Eelco The pricing for Azure Cache for Redis is based on the SKU you are using and how long it is running. There is no consumption-based pricing.

    If you believe you are spending more than what you are using, you could explore downgrading to a lower SKU while still ensuring all features that you need are available.

    Unfortunately, there is no way to downgrade an existing instance. You will have to create a new one and migrate to it instead.

    Another alternative I believe you can consider is switching the backend/broker to Postgres and Azure Service Bus (which has a consumption-based pricing) instead, removing Redis from the equation altogether.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.