StackExchange / StackExchange/StackExchange.Redis
Read CommandFlags option replica+primary
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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