Harness Feature Flags (FF) is a feature management solution that enables users to change the software’s functionality, without deploying new code. FF uses feature flags to hide code or behaviours without having to ship new versions of the software. A feature flag is like a powerful if statement.
For more information, see https://harness.io/products/feature-flags/
To read more, see https://ngdocs.harness.io/category/vjolt35atg-feature-flags
To sign up, https://app.harness.io/auth/#/signup/
This is a sample app demonstrating java sdk integration with CF
- Create a project in Harness with Feature-flags module enabled
- Create an environment within your project
- Create a server-side sdk key in your environment COPY the value from the Admin Console to your clipboard since this value will only be displayed once
- Create a boolean feature-flag in the admin console
- Import the maven project in an IDE such as IntelliJ
- Replace the values for SDK Key and feature-flag identifier in the example program from step 3 and 4
- Run the program from the IDE
We are using the java sdk jar as dependency for this sample program
<dependency>
<groupId>io.harness</groupId>
<artifactId>ff-java-server-sdk</artifactId>
<version>1.1.0</version>
</dependency>