Skip to content

Polling and storing feature flags in cache #1055

Answered by rvowles
IrinaSouth asked this question in Q&A
Discussion options

You must be logged in to vote
  1. Yes, there isn't anything from the Python SDK out of the box to save the response to somewhere, no. It should only be a few lines of Python however, which is a good thing!

  2. I'm going to have to give you some adhoc code here rather than something specifically out of the box working, so here goes:

# provide a proper edge url and client feature key, the client key is particularly important

fh_config = FeatureHubConfig(edge_url, [client_eval_key])

# now do the code in _process_successful_results, i.e. read in your features and pass then to

fh_config.repository().notify("features", <data>)

# now you can use the config as normal, it has the features, it knows that it is client evaluate…

Replies: 5 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@Avivma
Comment options

@IrinaSouth
Comment options

IrinaSouth Sep 7, 2023
Maintainer Author

@Avivma
Comment options

@rvowles
Comment options

@Avivma
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by IrinaSouth
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants