This chapter shows you how to use Redis (REmote DIctionary Server) as a message broker with Spring Boot. Redis is an in-memory data structure store that is used as a database, cache, and message broker. It not only stores key-value pairs, but also can be used to store complex data types such as hashes, lists, sets, sorted sets, bitmaps, hyperlogs, and geospatial indexes.
Spring Boot uses the Spring Data module and in particular the Redis one. In other words, in order to use Redis in your project, you must add the spring-boot-starter-redis dependency to your pom.xml file or to Gradle. ...