TalksAWS re:Invent 2025 - Advanced feature flags: Faster releases and rapid recovery (DEV320)

AWS re:Invent 2025 - Advanced feature flags: Faster releases and rapid recovery (DEV320)

Advanced Feature Flags: Faster Releases and Rapid Recovery

Introduction to Feature Flags

  • Feature flags are a powerful tool for software development, allowing teams to:
    • Release new features gradually and safely
    • Respond quickly to issues in production
    • Experiment with different user experiences
  • The presentation focuses on using AWS App Config as a feature flagging solution

Baseline Feature Flag Demo

  • The presenters demonstrate a simple "featured item" banner that can be toggled on/off using an App Config feature flag
  • This shows how feature flags can be used to update an application without redeploying code

Multivariant Feature Flags

  • App Config supports multivariant feature flags, which allow defining different experiences for different user segments
  • In the demo, the rewards section of the app displays different rewards based on the user's loyalty status (platinum, gold, default)
  • The backend code is updated to pass the user's loyalty status as request context to the App Config agent
  • This allows the agent to evaluate the appropriate feature flag variant and return the correct rewards to display

Operational Feature Flags

  • Feature flags can also be used for operational purposes, such as:
    • Quickly throttling or blocking bad actor accounts
    • Adjusting background process limits during peak traffic
    • Toggling logging verbosity for debugging purposes
  • The presenters demonstrate an "log level" feature flag that can be used to switch the application's logging level between "info" and "debug"
  • This allows rapidly increasing logging for troubleshooting without redeploying the application

Best Practices and Cautions

  • Feature flags are powerful but can also be dangerous if not managed properly
  • Treat feature flag configurations like code - use the same rigor for testing and deployment
  • Avoid "flag debt" by regularly cleaning up unused feature flags in the codebase
  • Consider using features like "short-term flag" and "deletion protection" in App Config to manage the lifecycle of feature flags

Resources and Next Steps

  • The AWS App Config user guide is a recommended resource for learning more
  • Attendees can request a meeting to discuss their specific feature flagging use cases

Key Takeaways

  • Feature flags enable faster releases, rapid recovery, and experimentation
  • App Config provides a robust feature flagging solution with advanced capabilities like multivariant flags and operational flags
  • Proper governance and management of feature flags is critical to avoid technical debt and potential production issues
  • Feature flags should be treated with the same care as production code deployments

Your Digital Journey deserves a great story.

Build one with us.

Cookies Icon

These cookies are used to collect information about how you interact with this website and allow us to remember you. We use this information to improve and customize your browsing experience, as well as for analytics.

If you decline, your information won’t be tracked when you visit this website. A single cookie will be used in your browser to remember your preference.