This tutorial shows how to limit rate in AWS Lambda with Serverless Redis.
1
Serverless Project Setupnpm install -g serverless
In any folder run serverless
as below:
serverless.yml
as below. Copy your Redis URL from console and
replace below:
2
Create a Redis (Upstash) Database3
Code4
Deploy and Try the API