An open API service providing repository metadata for many open source software ecosystems.

GitHub / 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.

JSON API: http://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aws-samples%2Fapi-gateway-websocket-saas-rate-limiting-using-aws-lambda-authorizer

Stars: 31
Forks: 5
Open issues: 0

License: mit-0
Language: JavaScript
Size: 941 KB
Dependencies parsed at: Pending

Created at: over 3 years ago
Updated at: 12 months ago
Pushed at: about 2 years ago
Last synced at: 12 months ago

Topics: api-gateway, multitenancy, multitenant, saas, throttle, throttling, websocket, websockets

    Loading...