Skip to content

Failover: support single configuration-string connect #3147

Description

@mgravell

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions