Coder Social home page Coder Social logo

Project looks very interesting, but why use limiting at the app instead of reverse proxy like nginx? about node-rate-limiter-flexible HOT 2 CLOSED

animir avatar animir commented on May 13, 2024
Project looks very interesting, but why use limiting at the app instead of reverse proxy like nginx?

from node-rate-limiter-flexible.

Comments (2)

samuelgoldenbaum avatar samuelgoldenbaum commented on May 13, 2024 1

Thanks for the reply @animir, I am sure there is value in the project and appreciate your contribution to the OS community.

from node-rate-limiter-flexible.

animir avatar animir commented on May 13, 2024

@samuelgoldenbaum hi, thanks

nginx proxy with configured limit is better, if it is enough. any proxy, balancer is better to be honest
use this package only if you can not find other proxy/balancer solution.

yes, app is still caught up processing rate limiting, as you said. it is not big, you can get overall idea checking benchmark results on high traffic or test it in your environment. usually it is nothing, if request takes 3-15 ms more. rate-limiter-flexible can be used in applications with thousands of requests per second. Usually, such applications have much more issues than saving 3-15 ms per request.

The idea of creating new app layer with just rate limiting on nodejs in front of application, may be good. It depends on certain environment. Superficially, if your app is monolith, I don't thing it is good to implement new layer. If your app built as microservices, probably, it is good idea to extract limiting to separate nodejs app.

from node-rate-limiter-flexible.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.