bucket4j-spring-boot-starter | Spring Boot Starter for Bucket4j | Application Framework library

 by   MarcGiffing Java Version: 0.12.0 License: Apache-2.0

kandi X-RAY | bucket4j-spring-boot-starter Summary

kandi X-RAY | bucket4j-spring-boot-starter Summary

bucket4j-spring-boot-starter is a Java library typically used in Server, Application Framework, Spring Boot, Spring applications. bucket4j-spring-boot-starter has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has low support. You can download it from GitHub, Maven.

This project is a Spring Boot Starter for Bucket4j. It can be used limit the rate of access to your REST APIs. The benefit of this project is the configuration of Bucket4j via Spring Boots properties or yaml files. You don’t have to write a single line of code. .
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              bucket4j-spring-boot-starter has a low active ecosystem.
              It has 223 star(s) with 46 fork(s). There are 16 watchers for this library.
              There were 6 major release(s) in the last 12 months.
              There are 5 open issues and 101 have been closed. On average issues are closed in 132 days. There are 5 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of bucket4j-spring-boot-starter is 0.12.0

            kandi-Quality Quality

              bucket4j-spring-boot-starter has 0 bugs and 77 code smells.

            kandi-Security Security

              bucket4j-spring-boot-starter has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              bucket4j-spring-boot-starter code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              bucket4j-spring-boot-starter is licensed under the Apache-2.0 License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              bucket4j-spring-boot-starter releases are available to install and integrate.
              Deployable package is available in Maven.
              Build file is available. You can build the component from source.
              Installation instructions, examples and code snippets are available.
              It has 2309 lines of code, 184 functions and 58 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed bucket4j-spring-boot-starter and discovered the below as its top functions. This is intended to give you an instant insight into bucket4j-spring-boot-starter implemented functionality, and help decide if they suit your requirements.
            • Initialize filters
            • Build filter configuration
            • Returns the list of metric tags
            • Returns a key filter
            • This method is used to handle the rate limiting checks
            • Handle HTTP response on HTTP response
            • Analyze the given exception and return an analysis description
            • Returns the short description
            • This will look for rate limit checks
            • Gets the consumption probe
            • Customize servlet filter
            • Configures Http Security
            • Handles a metric
            • Resolve the cache
            • Execute a redis command
            • The gateway filter parser
            • The servlet filter parser
            • The webflux filter parser
            • Displays a single metric type
            • Get a proxy for the given cache name
            • Returns a proxy for the given cache
            • Resolve cache
            • Gets the username
            • Handles a single metric
            • This method exposes the rate limit checks
            • Convert cache to a FunctionalMap
            Get all kandi verified functions for this library.

            bucket4j-spring-boot-starter Key Features

            No Key Features are available at this moment for bucket4j-spring-boot-starter.

            bucket4j-spring-boot-starter Examples and Code Snippets

            No Code Snippets are available at this moment for bucket4j-spring-boot-starter.

            Community Discussions

            Trending Discussions on bucket4j-spring-boot-starter

            QUESTION

            Having multiple request IPs in Spring WebTestClient
            Asked 2022-Jan-19 at 08:08

            I'm introducing Bucket4J in my Spring Web application. A basic test setup can be found here:

            Bucket4J offers to rate limit on IP basis - so every IP gets its own pool of tokens. This can be done by adding expression: "getRemoteAddress()" to the config:

            ...

            ANSWER

            Answered 2022-Jan-19 at 08:08

            Actually my approach was wrong in general. The application in question is behind a load balancer so querying getRemoteAddress() will only give me the IP of the load balancer.

            I had to use the header X-FORWARDED-FOR and this made it super easy to create a test for it 😃

            Source https://stackoverflow.com/questions/70752235

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install bucket4j-spring-boot-starter

            To use the rate limit in your project you have to add the Bucket4j Spring Boot Starter dependency in your project. Additionally you need to add a JSR 107 provider like Ehcache or Hazelcast which will be auto configured with the Spring Boot Starter Cache. The configuration can be done in the application.properties / application.yml. The following configuration limits all requests independently from the user. It allows a maximum of 5 requests within 10 seconds independently from the user. For Ehcache 3 you also need a ehcache.xml which can be placed in the classpath. The configured cache name buckets must be defined in the configuration file.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
            Maven
            Gradle
            CLONE
          • HTTPS

            https://github.com/MarcGiffing/bucket4j-spring-boot-starter.git

          • CLI

            gh repo clone MarcGiffing/bucket4j-spring-boot-starter

          • sshUrl

            git@github.com:MarcGiffing/bucket4j-spring-boot-starter.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link