Multiple rate limiters (one per client) on the client side
up vote
0
down vote
favorite
I have a client that uses a certain API of service A. The client(which is also a service) will be called by some customers. I want to add rate limiters on the client such that -
The total number of requests to service A's API doesn't exceed a certain value per second.
Number of requests of each customer to service A's API doesn't exceed a certain value.(Note that this value is different for different customers. Since I know who my customers are, I can preset these values.)
Is it possible to achieve this using Guava RateLimiter?
java guava rate-limiting
New contributor
user3421506 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
up vote
0
down vote
favorite
I have a client that uses a certain API of service A. The client(which is also a service) will be called by some customers. I want to add rate limiters on the client such that -
The total number of requests to service A's API doesn't exceed a certain value per second.
Number of requests of each customer to service A's API doesn't exceed a certain value.(Note that this value is different for different customers. Since I know who my customers are, I can preset these values.)
Is it possible to achieve this using Guava RateLimiter?
java guava rate-limiting
New contributor
user3421506 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have a client that uses a certain API of service A. The client(which is also a service) will be called by some customers. I want to add rate limiters on the client such that -
The total number of requests to service A's API doesn't exceed a certain value per second.
Number of requests of each customer to service A's API doesn't exceed a certain value.(Note that this value is different for different customers. Since I know who my customers are, I can preset these values.)
Is it possible to achieve this using Guava RateLimiter?
java guava rate-limiting
New contributor
user3421506 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
I have a client that uses a certain API of service A. The client(which is also a service) will be called by some customers. I want to add rate limiters on the client such that -
The total number of requests to service A's API doesn't exceed a certain value per second.
Number of requests of each customer to service A's API doesn't exceed a certain value.(Note that this value is different for different customers. Since I know who my customers are, I can preset these values.)
Is it possible to achieve this using Guava RateLimiter?
java guava rate-limiting
java guava rate-limiting
New contributor
user3421506 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
user3421506 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
user3421506 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked Nov 5 at 3:53
user3421506
11
11
New contributor
user3421506 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
user3421506 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
user3421506 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
user3421506 is a new contributor. Be nice, and check out our Code of Conduct.
user3421506 is a new contributor. Be nice, and check out our Code of Conduct.
user3421506 is a new contributor. Be nice, and check out our Code of Conduct.
user3421506 is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53148093%2fmultiple-rate-limiters-one-per-client-on-the-client-side%23new-answer', 'question_page');
}
);
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password