Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Background

In order to target users based on their traits (aka attributes), Flagbase will need to maintain an index of these traits for fast lookup. We will call this index the “trait catalogue”

Solution

Upon evaluating a client-side feature flag, the evaluating user’s trait set will be pushed onto a queue. Processing of this queue (managed by trait-catalogue-service) will consist of the following steps:

  1. Ensure key length is appropriate (i.e. in order to prevent overflow attacks, which may halt processing)

  2. Normalise keys (i.e. convert camalCase values into snake_case)

  3. Insert normalized key into traits table with the key indexed.

  • No labels