The Next Generation Platform is Coming - Get Ready Now!
GitHub Readme.md
This app has been build using exoress-rate-limit
and rate-limit-redis
library which will block connections from a client after surpassing certain amount of requests (default: 10) per time (default: 10 sec)
The application will return after each request the following headers. That will let the user know how many requests they have remaining before the run over the limit.
X-RateLimit-Limit: 10
X-RateLimit-Remaining: 9
On the 10th run server should return an HTTP status code of 429 Too Many Requests
"PEXPIRE", "MULTI", "DEL", "PTTL", "EXEC", "DECR", "INCR"
git clone https://github.com/redis-developer/basic-redis-rate-limiting-demo-nodejs/
# copy file and set proper data inside
cp .env.example .env
# install dependencies
npm install
# run docker compose or install redis manually
docker network create global
docker-compose up -d --build
npm run dev
redis://
or without.redis://
or without.To make deploys work, you need to create free account in https://redislabs.com/try-free/ and get Redis' instance informations - REDIS_ENDPOINT_URI and REDIS_PASSWORD. You must pass them as environmental variables (in .env file or by server config, like Heroku Config Variables
).
We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.