A homework trying to have rate limiter implemented with Node.js.
In current version, I use redis as limit counter.
You can easily start this application by using docker compose, this will create 2 container: 1. rate-limiter api 2. redis.
For those who want to start purely (e.g. docker hater). You'll need to start your own redis server at local.
npm run start-from-zero
then you can go checkout .http
file at project root.
Start Rate Limiter Service independent.
Notice: You need to start redis locally.
npm install
npm run dev
then you can go checkout .http
file at project root.