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
- Host: GitHub
- URL: https://github.com/kuldeepsingh99/redis-sentinel
- Owner: kuldeepsingh99
- Created: 2020-05-28T18:11:54.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-28T19:21:04.000Z (over 5 years ago)
- Last Synced: 2023-12-03T22:22:08.715Z (almost 2 years ago)
- Topics: lettuce, microservices, mysql, redis, redis-sentinel, spring-boot
- Language: Java
- Homepage:
- Size: 53.7 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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

## 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