amazon-archives / realworld-serverless-application

This project is inspired by the design and development of the AWS Serverless Application Repository - a production-grade AWS service. Learn how AWS built a production service using serverless technologies.
Apache License 2.0
515 stars 108 forks source link

add feature toggles example #49

Open jlhood opened 4 years ago

jlhood commented 4 years ago

It'd be great to add an example of supporting feature toggles in this example app. Approach:

  1. Reuse SSM for feature toggles. Can use dedicated namespace like /applications/apprepo/${Stage}/features/....
  2. Should support per-customer feature enable like we do in prod.
  3. ApiLambda code can have an if check for some example feature.
  4. Add ops tool Lambda function to ops stack for flipping feature toggles to demo our approach to ops tools written as Lambda functions. Function can include logging auditing information.

When adding this, we should also add a wiki page for feature toggles in Patterns and Best Practices.