メインコンテンツまでスキップ

Optimize Bucketeer with tags

The integration and utilization of Bucketeer are straightforward, giving you complete control over configuration and usage. However, one step can significantly impact server response time and costs, ultimately affecting the user experience. In this regard, we provide a brief overview of this topic, which's covered in more detail in the Using Feature Flags section.

During step 3 of the integration process you are required to provide the featureTag. To make your undertand easier, the code is replicated below:

// Configure the SDK
val config = BKTConfig.builder()
.apiKey("YOUR_API_KEY")
.apiEndpoint("YOUR_API_ENDPOINT")
.featureTag("YOUR_FEATURE_TAG")
.build()

The featureTag is defined when creating the feature flag and serves two purposes. Firstly, it assists in searching within the tag list on the Bucketeer dashboard. Secondly, and more crucially, the featureTag plays a critical role in optimizing the usage of the Bucketeer system.

Feature tags act as limiters when making server calls to evaluate users. Consequently, if a call does not use tags or employs a tag used by numerous flags, a large number of feature flags will be returned for evaluation. This might not pose a problem for small systems with few flags. However, as the system expands, failure to utilize tags for identifying and optimizing evaluation calls can result in excessive processing on your server and increased operational costs. Moreover, it can lead to larger response times, negatively impacting the user experience. Therefore, employing targeted and assertive tags will:

  • Accelerate the evaluation process by analyzing only the necessary aspects.
  • Reduce information traffic between the server and the local application.

Despite the significance and impact on performance and costs, using tags within Bucketeer is optional.

ヒント

The Bucketeer team strongly recommends the use of featureTag to optimize your operation.