https://github.com/redis-developer/redis-streams-with-dotnet
Example applications use Redis Streams with various .NET libraries
https://github.com/redis-developer/redis-streams-with-dotnet
Last synced: 10 months ago
JSON representation
Example applications use Redis Streams with various .NET libraries
- Host: GitHub
- URL: https://github.com/redis-developer/redis-streams-with-dotnet
- Owner: redis-developer
- Created: 2022-01-26T17:13:44.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-01-26T17:17:14.000Z (about 4 years ago)
- Last Synced: 2025-05-08T21:44:00.424Z (10 months ago)
- Language: C#
- Size: 14.6 KB
- Stars: 4
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Redis Streams With .NET Examples
This repo contains three example projects using Redis streams with .NET
* Using the [StackExchange.Redis](https://github.com/StackExchange/StackExchange.Redis) Library - [RedisStreamsWithStackExchange](/RedisStreamsStackExchange)
* Using the [ServiceStack.Redis](https://github.com/ServiceStack/ServiceStack.Redis) Library - [StreamsWithServicestack](/StreamsWithServicestack)
* Using the [CSRedis](https://github.com/2881099/csredis) - [StreamsWithCSRedis](/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.
## Running 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](https://app.redislabs.com/#/), however for development it may just be easiest to use docker:
```bash
docker run -p 6379:6379
```
## Running the apps
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.
```bash
dotnet run --project .\RedisStreamsStackExchange\RedisStreamsStackExchange.csproj
```