eclipse-ee4j / eclipse-ee4j/jersey

First `.request()` call slow

Open
#5,281 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
730
Forks
382
PR merge metrics
No merged PRs in 30d

Description

Using Jersey 3.1.1 (JAX-RS Client API) I noticed that the very first call to `.request()` needs between 500ms and 1000ms, while subsequent calls to `.request()` need 0 ms.

While this is not a problem when the Client API is called on a server (hence when a service calls into another service), as typically a lot of subsequent calls will be performed, it is a problem when the Client API is called from a CLI command. In my case, the command will perform *only* a single request!

What can an application programmer do to reduce this time?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.