I looked at starter kit made by WebDevCody and saw this rate limiter implementation.
Very easy to use and does the job, suitable for when you have only one instance. You would need something like Redis to scale this up for multiple instances.
You can check it out here -> https://github.com/webdevcody/wdc-saas-starter-kit/blob/main/src/lib/limiter.ts
Login to post a comment.
Login to post a comment.