Repository to showcase how to use Redis Streams in a Spring Boot app. Also publishes a small helper library for defining consumers
- /demo: Spring Boot App to produce stream events and consume them
- /lib: Helper library to use product and consume from/to Redis Streams.
- config/RedisConfiguration.kt: sets up the Redis configuration (host and port)
- consumer/ProductCreatedConsumer.kt: example implementation of the RedisStreamConsumer interface
- producer/ProductCreatedProducer.kt: example implementation of the RedisStreamProducer interface
- route/StreamTestRoute.kt: entrypoint route to publish to the stream
See src/main/resources/application.yml to see how to setup this app
To use the helper library use the following:
implementation 'org.austral.ingsis:redis-streams:0.1.x'
Note: this library doesn't declare the version of the dependencies it uses.