Coder Social home page Coder Social logo

Comments (9)

marcosbarbero avatar marcosbarbero commented on May 3, 2024

That's a good improvement.

from spring-cloud-zuul-ratelimit.

lchayoun avatar lchayoun commented on May 3, 2024

For the shouldFilter and run I agree.
But the postFilter shouldFilter function should run it again in order to allow other filters to intervene.

from spring-cloud-zuul-ratelimit.

Aloren avatar Aloren commented on May 3, 2024

@lchayoun hm.. i didn't understand. why do we need to call policy(route(request), request) in post filter and can't use the value computed in prefilter?

from spring-cloud-zuul-ratelimit.

lchayoun avatar lchayoun commented on May 3, 2024

The request can be changed by other filters during the request.
Computing and storing it will make the post filter ignore the change.

from spring-cloud-zuul-ratelimit.

Aloren avatar Aloren commented on May 3, 2024

good point. do you remember is there a test for such scenario?

from spring-cloud-zuul-ratelimit.

lchayoun avatar lchayoun commented on May 3, 2024

I don't think so since the current tests are not adding custom filters to do so.

from spring-cloud-zuul-ratelimit.

marcosbarbero avatar marcosbarbero commented on May 3, 2024

@Aloren are you willing to work on this one?

from spring-cloud-zuul-ratelimit.

Aloren avatar Aloren commented on May 3, 2024

@marcosbarbero sorry guys i'm currently short on time, hope to have some time on weekends. if you want to do it ASAP then of course you can start implementing it yourself.

from spring-cloud-zuul-ratelimit.

marcosbarbero avatar marcosbarbero commented on May 3, 2024

Don’t worry, take your time! I just asked because in case you were not interested in implementing it yourself we should assign it internally.

from spring-cloud-zuul-ratelimit.

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.