-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
some docs required #9
Comments
Pull requests welcome! There are some simple examples found within the project such as https://github.com/mokies/ratelimitj/tree/master/ratelimitj-redis . What exactly did you find confusing? |
I second @salaboy. A servlet filter implementation sample would help heaps. For example, if you aren't familiar with Reactive it isn't straightforward hot to implement a non-blocking API Rate Limiter, which I believe is a common use case for ratelimitj. |
Hi @fsamire and @salaboy, Apologies for the long delay in replying. I have put together a very simple Servlet example to assist you, see https://github.com/mokies/ratelimitj/blob/master/ratelimitj-examples/src/main/java/ServletRateLimitedExample.java |
Something that would help a lot (IMHO) are javadocs for the interfaces. Look at public interface Baton {
void release();
<T> Optional<T> get(Supplier<T> action);
void doAction(Runnable action);
boolean hasAcquired();
} What is a I can infer much of this by looking at the existing implementations, but it's annoying to have to do that every time I need a refresher on how READMEs and tutorials are nice to get people started, but javadocs are necessary for day-to-day work. I just want to navigate to |
This Lib looks exactly to what I was looking for, but the lack of documentation makes it difficult to get started.
A quick example on how to use the APIs to limit REST calls should be enough. Also Spring Boot integration will be quite handy.
The text was updated successfully, but these errors were encountered: