# Minimum Redis Version

**URL:** https://meta.discourse.org/t/minimum-redis-version/181415
**Category:** Development
**Created:** [February 28, 2021, 11:51pm UTC](https://meta.discourse.org/t/minimum-redis-version/181415 "2021-02-28T23:51:38Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![andyv1](https://avatars.discourse-cdn.com/v4/letter/a/5fc32e/32.png) [@andyv1](https://meta.discourse.org/u/andyv1)
#### Post date: [February 28, 2021, 11:51pm UTC](https://meta.discourse.org/t/minimum-redis-version/181415/1 "2021-02-28T23:51:38Z")

</div>

Hi,

I note the minimum version of Redis is specified at 6.0, but Sidekq only requires Redis v4.0+. [discourse/docs/INSTALL.md at main · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/master/docs/INSTALL.md)

I wish to use Google Cloud Redis, but it only supports v5.

What is the reason for Discourse requiring Redis v6?

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [February 28, 2021, 11:58pm UTC](https://meta.discourse.org/t/minimum-redis-version/181415/2 "2021-02-28T23:58:13Z")

</div>

> [@andyv1](#):
>
> What is the reason for Discourse requiring Redis v6?

That is the version we test and use in production in our hosting.

You may do your own due diligence and evaluate if it works with a previous version, but we don’t promise it will keep working with anything older than the version we recommend.

> [@andyv1](#):
>
> Sidekq only requires Redis v4.0+.

We use Redis for a lot more than Sidekiq.

That all said, the Redis feature set is pretty stable so it will probably work just okay today. But then you are on the hook testing upgrades carefully.

---

<div class="post-metadata">

### Author: ![andyv1](https://avatars.discourse-cdn.com/v4/letter/a/5fc32e/32.png) [@andyv1](https://meta.discourse.org/u/andyv1)
#### Post date: [March 1, 2021, 12:01am UTC](https://meta.discourse.org/t/minimum-redis-version/181415/3 "2021-03-01T00:01:28Z")

</div>

That sounds fair. An upgrade could use a new feature at any time.

What else does Discourse use Redis for? Or where in the code should I look?

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [March 1, 2021, 12:15am UTC](https://meta.discourse.org/t/minimum-redis-version/181415/4 "2021-03-01T00:15:38Z")

</div>

> [@andyv1](#):
>
> What else does Discourse use Redis for? Or where in the code should I look?

Quite a lot actually.

We use Redis backend in the [GitHub - discourse/message\_bus: A reliable and robust messaging bus for Ruby and Rack · GitHub](https://github.com/discourse/message_bus) gem for live page updates, for the Rails cache, for the distributed rate limit, for our semaphore system, etc.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [March 1, 2021, 2:26am UTC](https://meta.discourse.org/t/minimum-redis-version/181415/5 "2021-03-01T02:26:25Z")

</div>

I’m running a deployment on GCP kubernetes, for just a bit longer. If I weren’t planning to move it to aws (it’s what the client wanted for an unrelated reason) I would probably switch to running my own redis and not use the Google one.
