Skip to content

About

A sample application showcasing ConfigCat feature flagging with AWS Lambda and .NET

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Feature Flags in Microservices and Serverless Architecture (AWS Lambda and .NET)

Read the blog post here

A sample app demonstrating how to use ConfigCat feature flags in an AWS Lambda function running on .NET.

Build & Run

Instructions on how to build and run the application locally.

Prerequisites

You will need a few tools installed and accounts set up. Free tiers work perfectly for everything here.

  • A ConfigCat account: You can sign up for a Forever Free account here.
  • An AWS account: You will need access to the AWS Console and a user with permissions to create Lambda functions.
  • Docker Desktop: You can use Docker to spin up a Redis server to run the Lambda locally. (In production AWS environments, Amazon ElastiCache is typically used instead.)
  • Microsoft .NET SDK: You will need the .NET 10 SDK or newer to build the project. Download it here.
  • Command line tools:

Local

  1. Build the project:

    dotnet build
  2. Spin up a Redis server locally using Docker:

    docker compose up -d
  3. Run the Lambda Test Tool:

    dotnet lambda-test-tool-10.0
  4. When launched, click the Execute Function button. The Response and Log Output show the result of feature flag evaluation, based on the data cached in Redis.

AWS

  1. Deploy the function to AWS Lambda:

    dotnet lambda deploy-function ConfigCatLambdaDemo
  2. Once deployed, invoke the function directly from the CLI to see the result immediately:

    dotnet lambda invoke-function ConfigCatLambdaDemo

Learn more

Useful links to technical resources:

ConfigCat supports many other frameworks and languages. Check out the full list of supported SDKs here.

You can also explore other code samples for various languages, frameworks, and topics in ConfigCat labs on GitHub.

Keep up with ConfigCat on X, Facebook, LinkedIn, GitHub, and the News & Product Updates page.

Authors

Contributions

Contributions are welcome!

About

A sample application showcasing ConfigCat feature flagging with AWS Lambda and .NET

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages