StackExchange / StackExchange/StackExchange.Redis

Failover: support single configuration-string connect

Open
#3,147 0 comments 0 reactions 1 assignee View on GitHub

@mgravell is already working on this.

Since Jul 31, 2026.

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

Description

Currently a simple connection can be connected via a single configuration-string, but failover groups require code setup; an API should support either simple or group connections using a suitable configuration string format.

Complications:

  • the two APIs return concrete ConnectionMultiplexer vs abstract IConnectionGroup : IConnectionMultiplexer; we need to square this; options:
    • a new ConnectAny => IConnectionMultiplexer API
    • make ConnectionMultiplexer an abstract base-class with two concrete subclasses (huge change)
    • make ConnectionMultiplexer : IConnectionGroup in a trivial way, i.e. "a conspiracy of one" (this is probably our best option)
  • token choice in the configuration string needs to consider that delimiters may exist in passwords etc; current thinking: ,|, between groups, which is syntactically unambiguous, but a little ugly

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.