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

alexvasseur/redis-microservices-demo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Microservices with Redis

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

  • Caching: Call Web Service and cache the result in Redis
  • CDC to RediStreams: Capture MySQL transactionsd and send them to Redis Streams
  • Use RediSearch to index relational data and provides autocomplete feature
  • Store and Index data in Redis: copy the events from Streams and put them in a Redis Hash (Movie/Actors), this could be used as a cache or maine datastore
  • See how to run queries on Redis hashes using RediSearch commands (filter, sort, aggregate, and tull text search)
  • Extend MySQL Legacy model with movie comments store in Hash and queried using RediSearch commands
  • Push relationnoal data into RedisGraph
  • a Web frontend developped with Vue.js

Archi

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)

Build and Run with Docker

$ mvn clean package

$ docker-compose up --build

# and to force only one container rebuild eg Vue.js frontend
$ docker-compose up --build app-frontend

Cleanup


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

Deploy to Kubernetes

You can also deploy the application to Kubernetes, see Kubernetes Readme

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 57.4%
  • Vue 29.7%
  • JavaScript 9.5%
  • Dockerfile 1.8%
  • TypeScript 1.2%
  • HTML 0.3%
  • Python 0.1%