Liking cljdoc? Tell your friends :D

Rate limit extension for Dropwizard RabbitMQ Actors Bundle

Provides rate limiting capability over dropwizard rabbitmq actors bundle.

Dependency

<dependency>
    <groupId>com.github.phaneesh</groupId>
    <artifactId>dropwizard-actors-ratelimit</artifactId>
    <version>2.0.28-1</version>
</dependency>

License

Apache-2.0

Configuration

RateLimitConfiguration rateLimitConfiguration = RateLimitConfiguration.builder()
        .bucketName("test")
        .rateLimit(100)
        .rateLimitPeriod(1)
        .rateLimitPeriodUnit(TimeUnit.SECONDS)
        .refillRate(10)
        .rateLimitType(RateLimitType.THROTTLE)
        .build();

Note

The extension uses bucket4j to provide distributed rate limiting capability. Hazelcast is used to enable distributed rate limiting.

Can you improve this documentation?Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close