-
We run a public api service on spring boot 2.6.14 and its platform bom which depends on jersey 2.35. We havily utilize jersey clients to make calls to internal services to provide data to the end users, e.g.
In our current setup, we create a We've recently had some issues during releases where the application reports itself healthy to the load balancer, but in reality, nothing related to jersey clients is initialized at this point. When a large amount of traffic suddenly hits the service, we have several points of lock contention, one of them being It's possible to call e.g.
where only the "root" As I failed to find any good resource on "how to actually set up jersey clients for high parallel use" i'd like to know how to properly set this up, it seems this has been "wrong" for some time (see this for example. And if there's something to do to make the clients actually ready to deal with incoming requests. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Each Instead of WebTargets, it is possible to store and reuse |
Beta Was this translation helpful? Give feedback.
Ok I dug a bit deeper and i'm not sure where my original assumptions came from.
with the following:
It seems each new JerseyWebTarget created from
.path
or.queryParam
etc calls actually just retain the initially inizialied client runtime as it's passed with theClientConfig
to each new instance.As long as the targets are configured at this point and no changes are needed, we should be fine with a setup where we…