/redis-streams-go

A short example of event sourcing with Redis Streams and Go

Primary LanguageGo

redis-streams-go

Why ?

This project is a basic example of a publisher and consumers of a redis stream

Local env

Start a local redis with :

docker run --name localredis -d redis redis-server --appendonly yes

Publisher

The publisher sends 3000 messages to the redis stream

cd publisher
go run main.go

Consumer

The consumer reads all the pending messages in the stream then aknowledges them

cd consumer
go run main.go