Simple Prevention Multiple Request from Frontend with Redis. Inspired from the Kennard Wicoady's Golang Redis
express-redissimulation is one of simple example on how to utilize Redis technology into Express webapp usage. This example utilizes redis to prevent multiple requests from frontend in certain period of time (in this case, 10 seconds).
- Node 6.0.0 or Above (https://nodejs.org/en/download/)
- Redis Server 3.0.6 or Above (https://redis.io/download)
- Make sure you have fulfilled all prerequisites above
- Clone repo to your local computer
git clone https://github.com/Paskalouis/express-redissimulation.git
- Do npm install (This code example for UNIX Command, Windows and other Linux Distro may use different commands)
npm install
- Start the app
node app.js
- Go to browser and access link below
localhost:3000
- Paskalouis Patressi (Express Version)
- Kennard Wicoady (Go Version)
ISC Licensed