/redis-sentinel

Spring boot My SQL with Redis Sentinel

Primary LanguageJava

How to Set up Redis Sentinel with Spring Boot & MySql

Redis Setup

In this example we have set up 1 Master node 2 slaves and 2 sentinel nodes

In the customer service we are using MYSQL as Database

Design

Building Service Image

Run the Service & Redis

  • Copy all redis-sentinel folder and docker-compose.yaml file to any directory

  • We need to execute this SQL to create Table

  • docker-compose up -d to start the container