As you have already seen the powerful features of Redis in previous chapters, you may be wondering what Redis can do in an application and when it should be used. In this recipe, we will show a few real-world application scenarios where Redis is a better choice than other storage solutions. Hopefully you will get more ideas for using Redis in your applications.
When to use Redis in your application
Session store
In a modern website architecture, there are multiple web servers behind one or more load balancers. Sessions usually need to be stored in external storage systems. If any of the web servers go down, another server can retrieve the sessions from the external storage and continue to serve traffic. Redis is a perfect...