This project shows you how to do this via Redis pub-sub!
- Start your Redis at default port 6379
- Run shell command
./gradlew shadowJar
- Run shell command
java -jar build/libs/joint-cache-redis-1.0-SNAPSHOT-all.jar
- Things are printed in the shell console
- Ctrl+C (or Cmd+C) to shut it down
- You can use the
monitor
command in redis-cli to watch what happened to Redis. - Throttling may be needed in big applications.
- Kafka is better here because messages can be consumed by all subscribers. It requires more work in Redis