Open toddbaert opened 3 months ago
Hi @toddbaert I would like to work on this.
Thanks, @gunishmatta, I've assigned you the issue. Please let us know if you have any questions!
@gunishmatta here's the implementation I did in the JS SDK: https://github.com/open-feature/js-sdk/pull/795.
You can disregard the RECONCILING
stuff - that only applies to client-side SDKs, which Java is not. The relevant stuff is all around the ProviderState
. I used an internal wrapper class for this: https://github.com/open-feature/js-sdk/pull/795/files#diff-918e59c039e8a552dd77bdf93d9759acc86f58f677bf52e7a0990ff92683ef11R25, but take whatever approach you want.
@toddbaert Thanks a lot for the guidance, you can expect my PR by end of this week.
Thanks Gunish.
Stateless providers
Providers no longer maintain their own state: the state for each provider is maintained in the SDK automatically, and updated according to the success/failures of lifecycle methods (init/shutdown) or events emitted from providers spontaneously.
Similar work in C#: https://github.com/open-feature/dotnet-sdk/pull/276