MultipleSourceProvider
optional utility for Client SDKs
#346
Replies: 2 comments 1 reply
-
Brought this topic up in the Community meeting today. I had a few takeaways:
|
Beta Was this translation helpful? Give feedback.
-
A related concept I have been exploring is that of the OverrideProvider (a.k.a. ChainedProvider): a provider that delegates to another provider except for certain flag keys which are resolved by the OverrideProvider itself. This would be helpful for testing, when you want to set a flag value for a given test case but keep the rest of the flags the same. |
Beta Was this translation helpful? Give feedback.
-
One meta-provider we've had to implement is a
MultipleSourceProvider
, which is initialized with a collection of providers used to search for a flag key, ordered by the collection. This is similar to using domains to bind different providers to different clients but slightly different as we're using it to consolidate the four different feature flag storage mechanisms we used in our monolith.I'm wondering if others have run into this, and this is a common use case, especially as projects are onboard to OpenFeature. Would it be a helpful utility to call out in Appendix A as an optional utility that SDKs could implement?
Beta Was this translation helpful? Give feedback.
All reactions