Provides rate limiting capability over dropwizard rabbitmq actors bundle.
<dependency>
<groupId>com.github.phaneesh</groupId>
<artifactId>dropwizard-actors-ratelimit</artifactId>
<version>2.0.28-3</version>
</dependency>
Apache-2.0
RateLimitConfiguration rateLimitConfiguration = RateLimitConfiguration.builder()
.bucketName("test")
.rateLimit(100)
.rateLimitPeriod(1)
.rateLimitPeriodUnit(TimeUnit.SECONDS)
.refillRate(10)
.rateLimitType(RateLimitType.THROTTLE)
.build();
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