This repo contains three example projects using Redis streams with .NET
- Using the StackExchange.Redis Library - RedisStreamsWithStackExchange
- Using the ServiceStack.Redis Library - StreamsWithServicestack
- Using the CSRedis - StreamsWithCSRedis
These projects are meant to provide basica example of preforming reads and writes to a Redis Stream using the various libraries, as well as things like creating consuemr groups and acknowleding messages from redis.
There are many ways to run Redis, if you are looking to get into production a good option might be to use the Redis Cloud, however for development it may just be easiest to use docker:
docker run -p 6379:6379
Each of the apps can be run using the dotnet run
command, you can either change directories into the directory where the app is and run dotnet run
or you can use the --project
option to specify which project you want to run, e.g.
dotnet run --project .\RedisStreamsStackExchange\RedisStreamsStackExchange.csproj