This Rate Limiter
application is a part of the Episode - 1
of SharedX organised on Saturday, March 23, 2019 in Noida
This application is using the Node-API-Template. You can read about the codebase structure there.
git clone [email protected]:shredx/node-redis-rate-limiter.git
npm install
npm run dev
Note: Make sure REDIS is running
- Don't forget to create a
.env
file
- Create and store users in REDIS
- Provide
Subscription Keys
to the users- A user cannot have more than 3 keys
- Each key has usage limit aggisned to it
- Based on the usage the user is blocked from accessing the routes/features
- REDIS
- Node.js API Service which publishes usages to the REDIS
pub-sub
- Golang API Service that manages the usages and broadcast the
BLOCK
event - Node.js API Gateway which blocks the users
- This service maintains a local cache
- Add link to different services
- Add list of contributors
- Dcoumentation for the application