Package | Description |
---|---|
org.springframework.cloud.gateway.filter.ratelimit |
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<RateLimiter.Response> |
RateLimiter.isAllowed(String id,
org.springframework.tuple.Tuple args) |
reactor.core.publisher.Mono<RateLimiter.Response> |
RedisRateLimiter.isAllowed(String id,
org.springframework.tuple.Tuple args)
This uses a basic token bucket algorithm and relies on the fact that Redis scripts
execute atomically.
|
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.