Skip to content

Demonstrates how to implement a distributed rate limiting solution across multiple backend servers

Notifications You must be signed in to change notification settings

alexlop29/distributed-rate-limiting-in-express-js

Repository files navigation

About

Demonstrates how to implement a distributed rate-limiting solution across multiple backend tasks using a Redis cache

🏄 Getting Started

https://github.com/alexlop29/rate-limiting-in-express-js.git
cd rate-limiting-in-express.js
docker-compose up --build -d

🔧 Core libraries

💻 Development Libraries

📛 Types

📑 Additional Readings

Disclaimer

The scope of the project is limited to demonstrating how to implement a distributed rate limiting solution in a backend microservice.

There are several potential areas of improvement to get this demonstration production-ready.

Suggestions:

  • Add a validation function to the Document controller.
  • Remove the use of the Math.random() function in the Document controller, merely used for demonstration purposes.
  • Remove synchronous functions, such as console.log(), and replace with an ehanced error handling solution, such as Sentry.
  • Apply security, performance, and stability best practices in an express.js application.
  • Enhance tests.

About

Demonstrates how to implement a distributed rate limiting solution across multiple backend servers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published