Skip to content
Getting started with Redis Streams & Java
Java
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/main/java/com/kanibl/redis/streams/simple
.gitignore Initial Commit Sep 3, 2019
LICENSE
README.md Initial Commit Sep 3, 2019
pom.xml

README.md

Getting Started with Redis Streams & Java

This project shows how to use Lettuce Java client to publish and consume messages using consumer groups.

This is a first basic example that use a single consumer.

Build

> cd redis-streams-101-java

> mvn clean verify

Run

Run the producer

> cd redis-streams-101-java

> mvn exec:java -Dexec.mainClass="com.kanibl.redis.streams.simple.RedisStreams101Producer" -Dexec.args="5"

Run the consumer

> cd redis-streams-101-java

> mvn exec:java -Dexec.mainClass="com.kanibl.redis.streams.simple.RedisStreams101Consumer"
You can’t perform that action at this time.