Skip to content
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

Add ConcurrencyLimitingService #6074

Open
ikhoon opened this issue Jan 22, 2025 · 0 comments
Open

Add ConcurrencyLimitingService #6074

ikhoon opened this issue Jan 22, 2025 · 0 comments

Comments

@ikhoon
Copy link
Contributor

ikhoon commented Jan 22, 2025

ConcurrencyLimit will be useful on the server side to limit the current requests being handled.
However, we can't use ConcurrencyLimit on the server side because:

So we need to move ConcurrencyLimit to common package first and implement ConcurrencyLimitingService similar to ConcurrencyLimitingClient

package com.linecorp.armeria.common.limit;

public interface ConcurrencyLimit {
    CompletableFuture<SafeCloseable> acquire(RequestContext ctx);
}

Discord thread: https://discord.com/channels/1087271586832318494/1087272728177942629/1328988059827568752

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

No branches or pull requests

1 participant