aws-samples/api-gateway-websocket-saas-rate-limiting-using-aws-lambda-authorizer
When creating a SaaS multi-tenant systems which require websocket connections we need a way to rate limit those connections on a per tenant basis. With Amazon API Gateway you have the option to use usage plans with HTTP connections however they are not available for websockets. To enable rate limiting we can use a API Gateway Lambda Authorizer to validate a connection and control access. Using a Lambda Authorizer we can implement code to allow the system to valid connection rates and throttle inbound connections on a per tenant basis. This sample also demonstrates pool and silo modes for handling the message traffic per tenant.
JavaScriptMIT-0
Stargazers
- ams1
- chaosreloadCanton
- cj-taylorAmazon Web Services
- csmatarPunta Cana, Dom. Rep.
- Danwakeem@serverless
- evert0nResola Inc
- evgpisarchik
- ginderick
- HardcoreyoyoNational Kaohsiung University of Science and Technology
- hognevevleBergen, Norway
- icysharp
- JamMarHerHidden Level, Inc.
- jmrapp1@aws
- jmstout
- KaineLabsKaineLabs
- karthikghantasala
- killersiteKillersite.com
- maplemike@GlobalTill
- mjyoccaHashicorp
- mo7ammadSale7
- mvandermeulenFivenynes
- naifblf
- prafullkotecha
- ravi-nagendranBlockgraph, LLC
- swarwickAmazon
- tbssupportToday's Business Solutions
- weisishengBighire.io LLC
- wigneshPlanet Earth
- wirjoAustralia
- yezooz@assertis
- YumNummYUMEMI Inc.