You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: providers/go-feature-flag/README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -82,6 +82,7 @@ You can configure the provider with several options to customize its behavior. T
82
82
|**`exporterMetadata`**|`false`| exporterMetadata is the metadata we send to the GO Feature Flag relay proxy when we report the evaluation data usage. |
83
83
|**`evaluationFlagList`**|`false`| If you are using in process evaluation, by default we will load in memory all the flags available in the relay proxy. If you want to limit the number of flags loaded in memory, you can use this parameter. By setting this parameter, you will only load the flags available in the list. <p>If null or empty, all the flags available in the relay proxy will be loaded.</p> |
84
84
|**`flagChangePollingIntervalMs`**|`false`| interval time we poll the proxy to check if the configuration has changed. It is used for the in process evaluation to check if we should refresh our internal cache. default: `120000`|
85
+
|**`wasmEvaluatorPoolSize`**|`false`|_(IN_PROCESS only)_ Number of WASM instances kept in the evaluation pool. Each instance owns independent memory, allowing fully concurrent flag evaluations without serialisation. Must be `>= 1`. _(default: number of available CPU cores)_|
85
86
86
87
### Evaluate a feature flag
87
88
The OpenFeature client is used to retrieve values for the current `EvaluationContext`. For example, retrieving a boolean value for the flag **"my-flag"**:
Copy file name to clipboardExpand all lines: providers/go-feature-flag/src/main/java/dev/openfeature/contrib/providers/gofeatureflag/GoFeatureFlagProviderOptions.java
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -91,6 +91,14 @@ public class GoFeatureFlagProviderOptions {
91
91
*/
92
92
privateLongflagChangePollingIntervalMs;
93
93
94
+
/**
95
+
* (optional) Number of WASM instances kept in the evaluation pool for in-process evaluation.
96
+
* Each instance owns independent WASM linear memory, allowing fully concurrent evaluations
97
+
* without serialisation. Must be >= 1 when set explicitly.
98
+
* Default: number of available CPU cores.
99
+
*/
100
+
privateIntegerwasmEvaluatorPoolSize;
101
+
94
102
/**
95
103
* Validate the options provided to the provider.
96
104
*
@@ -107,6 +115,10 @@ public void validate() throws InvalidOptions {
Copy file name to clipboardExpand all lines: providers/go-feature-flag/src/main/java/dev/openfeature/contrib/providers/gofeatureflag/evaluator/InProcessEvaluator.java
Copy file name to clipboardExpand all lines: providers/go-feature-flag/src/test/java/dev/openfeature/contrib/providers/gofeatureflag/GoFeatureFlagProviderTest.java
0 commit comments