Replies: 20 comments
-
@melloware, I pushed the first commit, you can use this thread for API related discussions |
Beta Was this translation helpful? Give feedback.
-
I would prefer the configuration to look like
but when I try to use a List instead of a map, I have an exception saying it did not find any transformer for my nested config group. |
Beta Was this translation helpful? Give feedback.
-
OK
|
Beta Was this translation helpful? Give feedback.
-
My main concern is to find a solution to plug a custom segmentation key resolver for each rate limited endpoint.
where MyResolver.class could be a CDI bean ? |
Beta Was this translation helpful? Give feedback.
-
As for the API I like your ideas so far. As for Config your Also I noticed Bucket4J talks about using any JCache implementation but I don't see where you have any of that or does it use Caffeine by default? |
Beta Was this translation helpful? Give feedback.
-
yeah that's what I was trying to express with the last paragraph, I will focus on a in memory store for now and I will extend to shared registries in the future. Bucket4J support a tons of implementations (Hazelcast, Redis ...), this is definitely in the roadmap for this project. |
Beta Was this translation helpful? Give feedback.
-
Understood! We are on the same page. |
Beta Was this translation helpful? Give feedback.
-
About the |
Beta Was this translation helpful? Give feedback.
-
@rmanibus if using Caffeine as the store implementation, use |
Beta Was this translation helpful? Give feedback.
-
Also seeing this INFO message...
|
Beta Was this translation helpful? Give feedback.
-
In Runtime you should remove.. <dependency>
<groupId>com.github.ben-manes.caffeine</groupId>
<artifactId>caffeine</artifactId>
</dependency> And replace it with... <dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-cache</artifactId>
</dependency> That brings in Caffeine and will work in Native mode. |
Beta Was this translation helpful? Give feedback.
-
@melloware Done, I think this is ready for a first experimental release ! |
Beta Was this translation helpful? Give feedback.
-
still need to work on the dev tools and metrics but the core functionality is here |
Beta Was this translation helpful? Give feedback.
-
Any thoughts on renaming the |
Beta Was this translation helpful? Give feedback.
-
@gastaldi is there something to change in the CI config ? |
Beta Was this translation helpful? Give feedback.
-
@rmanibus no need to, already changed it |
Beta Was this translation helpful? Give feedback.
-
@gastaldi I pushed a branch called main, could you set it as default and protect it (and also unprotect current master) ? |
Beta Was this translation helpful? Give feedback.
-
Done
Protecting the branch may break the release process, as it pushes content to the main branch without a PR, so that needs to be better investigated |
Beta Was this translation helpful? Give feedback.
-
This issue is a thread for polishing the extension API
here is a first draft of the API that would be exposed by this extension:
if multiple methods share the same limits key, user should be able to either share or isolate buckets for those methods.
Segmentation Key:
Bucket registry:
Local for now, but network registry should be supported in the future (hazelcast, redis ...)
Beta Was this translation helpful? Give feedback.
All reactions