Benefits of installing Redis on a database server:
- Redis database size can become large if you have a lot of data. If you save statistics and save a lot of them, then your database can become a memory swamp. You would not want to store all this data in memory on your web server, as this can take memory from your HTTP server.
- It is called a database server for a reason
Disadvantages of installing Redis on a database server
- There will be more network response time when polling the server for data, since this is not local
- If the server goes down, then you will not have data.
I personally would leave Redis on my own server, since you can feed it a lot of data, but it all depends on what environment you work in. If you want speed to be a top priority (extra 50 ms or therefore unacceptable), then you should run it on your web server, since the request time to 127.0.0.1 is much faster than the external network address, even if it is located inside your local subnet. If not, you should leave it on the web server.
Colum source share