Rate Limiting your Serverless Functions with Upstash Redis



Rate Limiting your Serverless Functions with Upstash Redis

Rate Limiting your Serverless Functions with Upstash Redis

In this video we’ll use Upstash Redis to implement the Leaky Bucket algorithm to rate limit our serverless API usage.

———- Course

Want to go deeper with Next.js? Join me in my Next Level Next.js course where over 29 videos and 8 hours of content we’ll build a full application from start to finish. We use TypeScript, GraphQL, Prisma, Apollo, Mapbox, Firebase and lots more. https://courses.leighhalliday.com/next-level-next-js

———- Links

Stripe Rate Limiting – https://stripe.com/blog/rate-limiters
Stripe Code – https://gist.github.com/ptarjan/e38f45f2dfe601419ca3af937fff574d
GitHub Rate Limiting – https://github.blog/2021-04-05-how-we-scaled-github-api-sharded-replicated-rate-limiter-redis/
Sidekiq Leaky Bucket – https://www.mikeperham.com/2020/11/09/the-leaky-bucket-rate-limiter/
Starter Code – https://github.com/leighhalliday/rate-limit-demo/tree/0908f54f4f6e0a742c3eed335a48868872d57f09
Source Code – https://github.com/leighhalliday/rate-limit-demo

———- Connect

Join this channel – https://www.youtube.com/channel/UCWPY8W-FAZ2HdDiJp2RC_sQ/join
Join me on Discord – https://discord.gg/wcSNwfu

Comments are closed.