open-feature / go-sdk-contrib

Community maintained OpenFeature Providers and Hooks for Go
https://openfeature.dev
Apache License 2.0
40 stars 36 forks source link

[ofrep] add cache handling #535

Open thepabloaguilar opened 1 month ago

thepabloaguilar commented 1 month ago

As the OpenFeature Remote Evaluation Protocol - API Specification specifies an extension endpoint to get the provider configuration where it returns the cache polling interval it'd great to handle this in the ofrep client to have a local cache strategy which is only refreshed when the time expires!

Kavindu-Dodan commented 1 month ago

@thepabloaguilar thank you for bringing this up. There's an ongoing discussion dedicated to OFREP server providers [1]. We should be able to add caching support and improve GO OFREP provider once this discussion is resolved.

[1] - https://github.com/open-feature/protocol/pull/17