StackExchange / StackExchange/StackExchange.Redis

Subscribing to multiple Streams in background service

Open
#2,135 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
6.2k
Forks
1.6k
Avg merge
1d 15h
Merged PRs (30d)
43

Description

We are currently running one background service with one kafka consumer in each microservice. Each Kafka consumer is subscribing to multiple topics from a variety of producers. A list of topic strings is enough to subscribe. With a switch we can then handle each topic separately if needed.

We would now like to represent the same structure but with Redis Streams, but I'm not sure how to set it up with Stackexchange.Redis library.

For me it seems like we need to create a bunch of parallel running tasks that subscribe individually to a topic/stream and then is also handling the message.

Is that the only way one background service is able to handle multiple Streams ?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names StackExchange.Redis, Redis Streams, and a background service but no repository files, tests, or entry points. Start by reviewing the Redis Streams APIs and existing StackExchange.Redis examples, then clarify the expected multi-stream consumer behavior before defining what a completed change would be.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, redis
Domain
backend, distributed-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.