Getting started

Welcome to Floodgate! This getting started guide will help you get setup quickly with Floodgate and integrating feature flags into your development workflow. By integrating Floodgate feature flags you’ll gain greater control over your software with minimal impact. You can be up and running in just a few minutes.

Table of contents

Create your first feature flag

  1. Login to your Floodgate account.
    If you don’t already have a Floodgate account, sign up for a free account now.

  2. Create a new application or select an existing application.

  3. Create a new environment if you need to or select an existing environment.

  4. Create a new environment if you need to or select an existing environment.

  5. Create a new feature flag as shown below.

Using your feature flag in your app

Floodgate provides SDKs for multiple languages. Regardless of what SDK you are using integrating with Floodgate follows the same process.

  1. Install the SDK for your language of choice. This should be done using your languages dependency manager.

  2. Create an instance of the Floodgate Client in your application. Below is an example using the Floodgate .NET SDK.

Install-Package FloodGateSDK
using FloodGate.SDK;

var floodgateClient = new FloodGateClient("ENTER-YOUR-API-KEY");

var myFeatureFlag = floodgateClient.GetValue("my-feature-flag", false);

if (myFeatureFlag)
  // Do something new and amazing here
  // Do whatever it is I'm usually doing here

We recommend you create the Floodgate Client as a Singleton.

In the event your application loses connection to the Floodgate servers, your flags will still evaluate. When the Floodgate SDK initialises it creates a cache of your flag configuration data and uses that cache when evaluating flags. The SDK will periodically update the cache based on your preferences.

Basic concepts