Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • if you don’t want to expose the feature parameters to the external world. These are temporary anyway so hopefully you have a plan to remove these once you are done testing. If you do need to keep these permanently then maybe they should not be feature switches but proper url parameters or url path parameters.

Method 3: Obtain feature

...

flags from API calls

In some scenarios, it may make sense to fetch feature flags as part of your API calls (usually this would be done during the initial ‘configuration' request that many applications make during or post initialization, but MFEs can make the best choice per their design. We are working on devising more consistent patterns here, but for now, you can use the following as examples:

  • TODO : Add examples of this

When to use this method:

If you want a longer term feature flagging controlled / centralized in your backend.

When not to use this method:

There’s not hard and fast rule here, but probably better to avoid building too many extra abilities code/infrastructure in your backend/frontend if you can leverage env variables for a shorter term feature flagging, or the url param method. Evaluate how many changes this will constitute. In the future, we may work on providing a more centralized infrastructure/library to make this easier.

Future/interesting ideas:

...