Alex

@a13xa5.bsky.social

Learning & sharing OpenFeature knowledge 🏴 Find more on openfeature.dev

*41 days until KubeCon & a bit of OpenFeature a day Nr. 3* What is an OpenFeature Provider? A provider is the adapter between the Evaluation API and the feature flag management system. In other words: if a flag value is requested via Eval API the provider knows where to find the flag configuration.

The TypeScript code snippet shows how one can create their own provider by implementing the Provider interface from the OpenFeature SDK.

*42 days until KubeCon & a bit of OpenFeature a day Nr. 2* What is the Evaluation API? It is part of the OpenFeature SDK and, as the name suggests, a standardized API for evaluating feature flags. The resulting value can be used in code to toggle specific features on and off remotely.

The picture shows a line of Java code that fetches a boolean feature flag value with the name "boolFlag" and default value "false" using the OpenFeature Evaluation API. It assigns the resulting value to a Boolean variable that can be used to impact control flow to remotely activate or deactivate certain functionality of the application. The call is:
Boolean boolValue = client.getBooleanValue("boolFlag", false);

*43 days until KubeCon & a bit of OpenFeature a day Nr. 1* Let's tackle the most obvious question to start this with: What is OpenFeature? A standardization of feature flagging. It's an open-source project, part of the CNCF landscape & and standardizes the look and feel of feature flags.

The OpenFeature Architecture diagram shows how OpenFeature is used for feature flagging within an app. The app in the picture owns a feature-flagging client that is used for flag evaluations. To show case OpenFeature the client in the image consists of the OpenFeature SDK and an OpenFeature provider. The SDK provides the flag evaluation API for the flag requests from the app. The provider is connected to an imaginary Flags-R-us service hosted somewhere else that stores the flag configuration.