Skip to content

Microservice application with various Redis use-cases with RediSearch, RedisGraph and Streams. The data are synchronize between MySQL and Redis using Debezium as a CDC engine

License

Notifications You must be signed in to change notification settings

pierrelambert/redis-microservices-demo

 
 

Repository files navigation

Microservices with Redis

This project shows how you can modernize a legacy application that use RDBMS with Redis.

  • Caching: take some data out of RDBMS
  • Use RediSearch to index relational data and provides autocomplete feature
  • Use Redis Graph to provide a new way to navigate and use the data
  • Build an event based architecture using Redis Streams

This Spring Boot Application is a service that use Debezium in an embedded mode and listen to CDC event from MySQL. Depending of the configuration, the table content is automatically cached as a hash or just invalidated based on the table primary key.

Build and Run with Docker

If you want to use the Web Service cache demo that call the OMDB API you must:

  1. Generate a key here: http://www.omdbapi.com/ *do not forge to activate it, you will receive an email)

  2. When the applications is ready go to the "Services" page and enter the key in the configuration screen, this will save the key in a Redis Hash (lool at ms:config during the demo)

$ mvn clean package

$ docker-compose up --build

Cleanup


$ docker-compose down -v --rmi local --remove-orphans

About

Microservice application with various Redis use-cases with RediSearch, RedisGraph and Streams. The data are synchronize between MySQL and Redis using Debezium as a CDC engine

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 59.3%
  • Vue 31.3%
  • JavaScript 6.3%
  • TypeScript 1.4%
  • Dockerfile 1.3%
  • HTML 0.3%
  • Python 0.1%