Redis (Remote Dictionary Server) is an open-source, in-memory data structure store, used as a database, cache, and message broker. It supports a variety of data structures such as strings, hashes, lists, sets, sorted sets with range queries, and more.
- In-memory data store: Redis stores all its data in memory, which provides low latency and high performance.
- Pub/Sub messaging: Redis supports publish/subscribe messaging, making it a powerful tool for real-time communication between applications.
- Key-value store: Redis provides a simple, fast, and flexible key-value store, making it ideal for use cases where data needs to be stored and retrieved quickly.
- Stream: Streams is a powerful feature in Redis that allows for the creation and management of ordered, fault-tolerant, and scalable event streams.
- Lua scripting: Redis supports Lua scripting, which enables server-side processing and the execution of custom commands.
- High availability and scalability: Redis supports a variety of methods for ensuring high availability, including Redis Sentinel and Redis Cluster, which allow Redis to be deployed as a highly available and scalable cluster.
- Persistence: Redis supports persistence options that allow data to be saved to disk and loaded back into memory, ensuring data durability.
-
Clone the repository: Clone the repository to your local development environment.
-
Create a new branch: Create a new branch for your changes, this helps keep your changes separate from the main codebase.
-
Make changes: Make changes to the code, fix bugs, or add new features.
-
Commit changes: Commit your changes to your local repository, pls use Conventional Commits.
-
Push changes: Push your changes to your forked repository on GitHub.
-
Create a pull request: Create a pull request to submit your changes to the main repository. Be sure to provide a clear and concise description of your changes and why they are needed.
-
Respond to feedback: If the maintainers of the repository have any feedback or questions about your changes, be sure to respond in a timely manner.
How to use Redis Streams with .NET Official documentation
- Check Prerequisites
- Clone the repository
- Execute docker command, docker compose up
docker compose up
in root of project, using your command prompt. This will start the local redis server using. - Navigate to "net-redis\Redis.Stream.Consumer", using your command prompt. Run
dotnet build
. This will start the consumer (worker). - In soulution run Test
ShouldEmitEntryToRedisStream
Implemented example can be found here
Implemented example can be found here