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/openfeature-provider-flagd/README.md
+1-32Lines changed: 1 addition & 32 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -105,10 +105,8 @@ The default options can be defined in the FlagdProvider constructor.
105
105
> [!NOTE]
106
106
> Some configurations are only applicable for RPC resolver.
107
107
108
-
109
108
<!--
110
109
### Unix socket support
111
-
112
110
Unix socket communication with flagd is facilitated by usaging of the linux-native `epoll` library on `linux-x86_64`
113
111
only (ARM support is pending the release of `netty-transport-native-epoll` v5).
114
112
Unix sockets are not supported on other platforms or architectures.
@@ -118,8 +116,7 @@ Unix sockets are not supported on other platforms or architectures.
118
116
119
117
Reconnection is supported by the underlying gRPC connections.
120
118
If the connection to flagd is lost, it will reconnect automatically.
121
-
A failure to connect will result in an [error event](https://openfeature.dev/docs/reference/concepts/events#provider_error) from the provider, though it will attempt to reconnect
122
-
indefinitely.
119
+
A failure to connect will result in an [error event](https://openfeature.dev/docs/reference/concepts/events#provider_error) from the provider, though it will attempt to reconnect indefinitely.
123
120
124
121
### Deadlines
125
122
@@ -131,24 +128,12 @@ They behave differently based on the resolver type.
131
128
If the remote evaluation call is not completed within this deadline, the gRPC call is terminated with the error `DEADLINE_EXCEEDED`
132
129
and the evaluation will default.
133
130
134
-
#### Deadlines with In-process resolver
135
-
136
-
In-process resolver with remote evaluation uses the `deadline` for synchronous gRPC calls to fetch metadata from flagd as part of its initialization process.
137
-
If fetching metadata fails within this deadline, the provider will try to reconnect.
138
-
The `streamDeadlineMs` defines a deadline for the streaming connection that listens to flag configuration updates from
139
-
flagd. After the deadline is exceeded, the provider closes the gRPC stream and will attempt to reconnect.
140
-
141
-
In-process resolver with offline evaluation uses the `deadline` for file reads to fetch flag definitions.
142
-
If the provider cannot open and read the file within this deadline, the provider will default the evaluation.
143
-
144
-
145
131
### TLS
146
132
147
133
TLS is available in situations where flagd is running on another host.
148
134
149
135
<!--
150
136
You may optionally supply an X.509 certificate in PEM format. Otherwise, the default certificate store will be used.
151
-
152
137
```java
153
138
FlagdProvider flagdProvider = new FlagdProvider(
154
139
FlagdOptions.builder()
@@ -159,22 +144,6 @@ FlagdProvider flagdProvider = new FlagdProvider(
159
144
```
160
145
-->
161
146
162
-
### Caching (RPC only)
163
-
164
-
> [!NOTE]
165
-
> The in-process resolver does not benefit from caching since all evaluations are done locally and do not involve I/O.
166
-
167
-
The provider attempts to establish a connection to flagd's event stream (up to 5 times by default).
168
-
If the connection is successful and caching is enabled, each flag returned with the reason `STATIC` is cached until an event is received
169
-
concerning the cached flag (at which point it is removed from the cache).
170
-
171
-
On invocation of a flag evaluation (if caching is available), an attempt is made to retrieve the entry from the cache, if
172
-
found the flag is returned with the reason `CACHED`.
173
-
174
-
By default, the provider is configured to
175
-
use [least recently used (lru)](https://pypi.org/project/cachebox/)
176
-
caching with up to 1000 entries.
177
-
178
147
## License
179
148
180
149
Apache 2.0 - See [LICENSE](./LICENSE) for more information.
0 commit comments