Provides rate limiting capability over dropwizard rabbitmq actors bundle.
<dependency>
<groupId>com.github.phaneesh</groupId>
<artifactId>dropwizard-actors-ratelimit</artifactId>
<version>3.0.7-1</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? These fine people already did:
phaneesh & Phaneesh NagarajaEdit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close