StackExchange / StackExchange/StackExchange.Redis

Read CommandFlags option replica+primary

Open
#2,974 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Hi,

Would it be hard to add a new command flag to read in a simple round robin way from all replicas including primary node? We have lots of services that have just one read replica(at most 2) but would benefit a lot by also using primary node for reads.
Kind regards, George.

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

Start by reviewing how CommandFlags currently selects replicas and the primary node. Define the new replica+primary behavior as simple round-robin reads across all replicas and the primary, then verify that the requested flag produces that routing behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, redis
Domain
database
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.