Skip to content

Any solution for using flagd configuration file for Java Memory Provider #266

Answered by Kavindu-Dodan
cartermfv asked this question in Q&A
Discussion options

You must be logged in to vote

@cartermfv flagd Java provider implementation now has the support for an offline mode. This was released with the version v0.6.6 and you can find the updated documentation here.

For example, if you would like to use example_flags.json as your feature flags, you can initilize flagd provider as below,

FlagdProvider flagdProvider = new FlagdProvider(
        FlagdOptions.builder()
                .resolverType(Config.Evaluator.IN_PROCESS)
                .offlineFlagSourcePath("example_flags.json")
                .build());

This mode was added to improve the local developer experience and help with testing. However, it is totally acceptable to use with a self-contained application.

Let me k…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@cartermfv
Comment options

Answer selected by cartermfv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants