Closed limanjun99 closed 1 year ago
This PR adds rate limiting to the backend API using api gateway features.
Entire API: 50 requests per second, 25 concurrent requests per second POST /execute: 10 requests per second, 5 concurrent requests per second
Tested by deploying with limits = 1, then spamming requests to /execute:
Lower the rate limits further, and add account-based limits for execution, so that users do not share the limit, and we can track and ban users.
This PR adds rate limiting to the backend API using api gateway features.
Entire API: 50 requests per second, 25 concurrent requests per second POST /execute: 10 requests per second, 5 concurrent requests per second
Tested by deploying with limits = 1, then spamming requests to /execute:
Future Work
Lower the rate limits further, and add account-based limits for execution, so that users do not share the limit, and we can track and ban users.