Code Monkey home page Code Monkey logo

amazon-api-gateway-websocket-feature-toggles's Introduction

Feature toggle management using API Gateway WebSocket APIs

This repository contains a SAM application that uses Amazon API Gateway WebSocket APIs, AWS Lambda functions, and AWS DynamoDB streams to build a feature toggle management solution. This solution allows you to store feature toggles in DynamoDB and automatically push notifications to connected clients when feature toggle states are changed.

For more information, refer to the blog post for this solution.

Deploy

You can deploy this solution using the SAM template included in this repository.

First, ensure you have the SAM CLI installed. Then, you can deploy the SAM template using the following command from the application root. This command will take you through a guided SAM deployment.

sam deploy --guided

Test

To test this solution, you will need to insert some sample feature toggles into the "FeatureToggleTable" DynamoDB table. Refer to the blog post for more details.

After you have test data in DynamoDB, you can use wscat to test the connection to your API Gateway endpoint. Once you connect to your API Gateway endpoint, the current state of feature toggles should be automatically pushed to you.

$ wscat -c wss://{YOUR-API-ID}.execute-api.{YOUR-REGION}.amazonaws.com/{STAGE}
> { ... feature toggle info ... } 

Security

See CONTRIBUTING for more information.

License

This library is licensed under the MIT-0 License. See the LICENSE file.

amazon-api-gateway-websocket-feature-toggles's People

Contributors

amazon-auto avatar bryantbost avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.