Using Redis as cache over mySQL, and capturing query time in RedisTimeSeries

This is nodejs code to demostrate how redis can be used as a cache to improve your application performance. This application demostrate that user is using some relation database like SQL server/mysql/mongodb etc and runs with performance challeges as database grows. After adding redis as cache layer it hows how performance is drastically imroved and without any additional code changes and change in application architecture.

On top of that I added analytics to capture querytime for mySQL and Redis, in RedisTimeseries module.

You can logic in your applications to use Redis as cache.

all the best.

1 Like

Yes, this graph demonstrates perfectly why we use redis for caching user sessions rather than mySQL or other relational database. It is hard to beat the performance gain!

1 Like