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

JerseyCompletionStageRxInvoker should use AsyncInvoker #794

Closed
olotenko opened this issue Sep 10, 2019 · 1 comment
Closed

JerseyCompletionStageRxInvoker should use AsyncInvoker #794

olotenko opened this issue Sep 10, 2019 · 1 comment

Comments

@olotenko
Copy link

Expected: configure asynchronous thread pool the size of CPU count, be able to saturate CPU with long-running requests to other services.

Actual: CPU mostly idle. RxInvoker uses SyncInvoker, and Jersey Client does the straightforward thing, which consumes the threads waiting for response.

If #793 is addressed at the API level, so much the better. If #793 is not fixed, at least we probably can assume that AbstractRxInvoker.getSyncInvoker returns the same SyncInvoker that JerseyCompletionStageRxInvoker passed to it in the constructor.

A prototype fix with such type cast demonstrates the thread utilisation can become as Expected.

@olotenko
Copy link
Author

Apologies, meant to file as a Jersey issue. Moved to eclipse-ee4j/jersey#4255.

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

No branches or pull requests

1 participant