Multi-Provider in the SDK (spec Appendix A)

Offen
#344 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Anfängerfreundlichkeit
25/100
Issue-Typ
Feature
Klarheit
Muss geklärt werden
Aktivitätsstatus
Aktiv
Tech-Stack
ruby
Bereich
api, backend

Rechercherichtung

Read the Multi-Provider requirements in Spec v0.9.0 Appendix A, compare them with contrib's openfeature-meta and the referenced work in #300, especially #332 and the lifecycle and isolated API changes. The open questions leave the package location and initial strategy set undecided; agree on those before implementation. Done means the SDK utility wraps uniquely named providers with the specified initialization, status, event, domain and evaluation behavior.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Spec v0.9.0 Appendix A describes a Multi-Provider that SDKs ship as an included utility. It wraps several providers behind one, with unique names, parallel initialization, aggregated status and events, and pluggable evaluation strategies. It's optional for v0.9.0 compliance, and #300 deferred it to after the 0.7.0 release.

Contrib's openfeature-meta_provider covers part of this today, but it differs from the appendix. It initializes children sequentially, its strategy names differ, it doesn't aggregate child status or events (children aren't attached to the configuration), and it doesn't forward the bound domain to children.

Depends on

These are part of the #300 work in progress:

  • Ordered event delivery and handler locking (#332). The Multi-Provider re-emits child events.
  • Provider-owned lifecycle events (Appendix E). Aggregated status needs children to report their own READY/ERROR.
  • Isolated API instances (1.8). This keeps child providers from being registered with more than one API.
Open questions
  • Should it live in the core gem, as other SDKs do, or replace or extend contrib's meta_provider?
  • Which strategies ship first? The appendix describes first-match, first-successful and comparison.
Vorherrschende Sprache
Ruby
Sterne
43
Forks
18
Ø Merge
1 Std. 29 Min.
Gemergte PRs (30 T.)
17

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus open-feature/ruby-sdk

Alle Issues in open-feature/ruby-sdk

Ähnliche Issues

Weitere Issues zu Ruby

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.