MultipleSourceProvider optional utility for Client SDKs
#346
maxveldink
started this conversation in
Ideas
Replies: 2 comments 1 reply
|
Brought this topic up in the Community meeting today. I had a few takeaways:
|
0 replies
|
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. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
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?
All reactions