What is Redis?

The open source, in-memory data store used by millions of developers as a database, cache, streaming engine, and message broker.

Use cases:

Run Redis Stack on Docker

There are two docker images

To start a redis stack container using the following command.

$ docker run -d --name redis-stack -p 6379:6379 -p 8001:8001 redis/redis-stack:latest

Connect to redis CLI

$ docker exec -it redis-stack bash

REDIS Message Broker

Redis is also a message broker that operates on Pub/Sub architecture.

In a micro service architecture it allows the component to communication with each other via sending and receiving messages from a central channel or topic.