An open API service indexing awesome lists of open source software.

https://github.com/kuldeepsingh99/redis-sentinel

Spring boot My SQL with Redis Sentinel
https://github.com/kuldeepsingh99/redis-sentinel

lettuce microservices mysql redis redis-sentinel spring-boot

Last synced: 7 months ago
JSON representation

Spring boot My SQL with Redis Sentinel

Awesome Lists containing this project

README

          

# 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](/images/app.png)

## Building Service Image

* Build customer service image

* Update the image path in [docker-compose.yaml](https://github.com/kuldeepsingh99/redis-sentinel/blob/master/docker-compose.yaml#L75)

## Run the Service & Redis

* Copy all [redis-sentinel](https://github.com/kuldeepsingh99/redis-sentinel/tree/master/redis-sentinel) folder and docker-compose.yaml file to any directory

* We need to execute this [SQL](https://github.com/kuldeepsingh99/redis-sentinel/blob/master/customer.sql) to create Table

* docker-compose up -d to start the container