Comments (3)
I think this has been already covered by
From this to this and is available from 0.7.0 release on.
from ratelimitj.
I have the same problem. 0.7.0 Incompatible with lettuce-core:5.3.7.
es.moki.ratelimitj.redis.request.RedisScriptLoader.loadScript()
java.lang.NoSuchMethodError: io.lettuce.core.api.reactive.RedisScriptingReactiveCommands.scriptLoad(Ljava/lang/String;)Lreactor/core/publisher/Mono;
I compared the two versions(ratelimitj-redis 0.7.0-RC3 / 0.7.0) and found that they were basically the same. Except this:
.retry(1, RedisSlidingWindowRequestRateLimiter::startWithNoScriptError)
.retryWhen(Retry.max(1).filter(RedisSlidingWindowRequestRateLimiter::startWithNoScriptError))
ratelimitj-core doesn't change anything.
But if you run it(ratelimitj-redis:0.7.0) in source code, it works.
I think it(NoSuchMethodError) should not be affected by dependencies.
I wonder what caused it.
from ratelimitj.
The incompatibility with lettuce-core 6.x was fixed in f37eb87, when the dependency on lettuce-core was upgraded from 5.3.4 to 6.0.2, so this issue is resolved as reported.
However, the fix means that users of ratelimitj need to also upgrade lettuce-core 6.x.
@sycz I don't know about now, but back when I reported this issue, the incompatibility wouldn't bite you if you built ratelimitj yourself, because the change that was made to lettuce-core was still source-compatible with ratelimitj, just not binary compatible with anything that used the scriptLoad
method from the "wrong" version. Can you upgrade your lettuce-core dependency to 6.x? (The current release is 6.1.8.)
from ratelimitj.
Related Issues (20)
- InMemory rate limiter changes pushed to Maven Central HOT 2
- Getting exception while calling overLimitWhenIncremented
- redis 3.0 cluster ,client can not auto failover
- Bug in computing blockId
- Hard redis Dependency
- In memory sliding window seems to be not honouring the limits HOT 1
- Dropwizard 2.X Support HOT 1
- Don't see any log related to @RateLimited
- Support for knowing remaining limit
- Redis key expiration and index of the database HOT 2
- Cool off period
- JSON 429 responses
- Rate limit does not work when working with other bundles
- Outdated reactor-core version HOT 1
- Include backoff period for a given rule HOT 3
- Release 0.7.0 HOT 1
- Change `overLimitWhenIncremented` to return an object with limiting information instead of Boolean
- Question: Rate limiting toggles (dark launch) stable version availability?
- RedisRateLimiterFactory should be able to work with just a connection (rather than a RedisClient)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ratelimitj.