Ratelimiting python serverless functions on Vercel
Demo
Getting Started
Prerequisites
In order to run this locally, you will need python installed and an Upstash Redis database. If you don't have a database ready, you can learn how to do it here
Quickstart
- 
Clone the repo $ git clone https://github.com/upstash/examples.git $ cd examples/ratelimiting-python-vercel
- 
Create the project on Vercel $ vercel
- 
Enter your secrets in Vercel UPSTASH_REDIS_REST_URL="" UPSTASH_REDIS_REST_TOKEN=""
- 
Deploy to production $ vercel --prod
- 
Visit the URL provided by Vercel and refresh a few times until you get ratelimited 
Learn More
To learn more about Upstash and its services, check out the following resources: