Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 781 Bytes

README.md

File metadata and controls

33 lines (23 loc) · 781 Bytes

redis-streams-examples

Some basic examples of redis streams producers, reading within a range of messages, and consumer groups. Written in node.js using the redis client.

Inspired by redisnycstreams.


Resources

Introduction to Redis Streams

Redis commands

Easy redis docker setup:

Running the examples

$ node producer-a.js
$ node reset.js
$ node producer-b.js
$ node range.js
$ node reset.js
$ node producer-a.js
# in a separate shell
$ node consumer-group.js

fini.