Feature Flags Try it

limiter = RateLimit::Limiter.new(apikey: "ACCT_ID|APIKEY")

if @limiter.feature_is_on?("MyFeatures::V2Interface")
  # if MyFeatures::V2Interface is at 100% ungated
  if @limiter.feature_is_on_for?("MyFeatures::BetaGroup", "myuserid", attributes: ["team:team1"])
    # if myuserid is whitelisted
    # or team:team1 is whitelisted
    # or MyFeatures::BetaGroup is ungated to a percent of people and "myuserid" hashes into that percent
    do_the_thing
  end
end
ApiClient apiClient = new ApiClient.Builder()
        .build();

if apiClient.featureIsOnFor("MyFeatures::V2Interface")
  // if MyFeatures::V2Interface is at 100% ungated
  if apiClient.featureIsOnFor("MyFeatures::BetaGroup", Optional.of("myuserid"), Lists.newArrayList("team:team1", "level:pro"))
    // if myuserid is whitelisted
    // or team:team1 is whitelisted
    // or MyFeatures::BetaGroup is ungated to a percent of people and "myuserid" hashes into that percent
    do_the_thing
  end
end