Skip to content

Conversation

@caichengw
Copy link

add one distribute redis rate limiter implement.
reduce interaction on redis in less stringent scenario.

@pivotal-cla
Copy link

@caichengw Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

@pivotal-cla
Copy link

@caichengw Thank you for signing the Contributor License Agreement!

@sewenew
Copy link

sewenew commented Sep 17, 2023

@spencergibb @ryanjbaxter Can you review and merge this PR? This PR looks great, and it should be a very efficient rate limiter, since we don't need to send request to Redis for every incoming request.

Regards

@ConditionalOnBean(ReactiveRedisTemplate.class)
@ConditionalOnClass({RedisTemplate.class, DispatcherHandler.class})
@ConditionalOnProperty(name = "spring.cloud.gateway.redis.enabled", matchIfMissing = true)
public class GatewayDistributeRedisLimiterAutoConfiguration {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how to use a cluster or m-s to avoid single redis node failed?

@spencergibb
Copy link
Member

I want to move away from custom rate limiters, see #2955. You're more than welcome to publish it on your own.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants