Skip to content

QuarkusRestClientBuilder.newBuilder().build(TestRestService.class) is heavy/slow? Is proxy generated thread-safe? #40896

Answered by geoand
paul-luk asked this question in Q&A
Discussion options

You must be logged in to vote

WebTargetImpl baseTarget/target1/target2/target3;....

I assume you mean they are thread safe as well?

These are never changed, they are set in the constructor and subsequently they are only queried.

Anyway, if the generated TestRestService is thread safe (at least in quarkus framework), I can reuse the same 'TestRestService' instance in multiple thread (given that the base URI not changed

Yup, you indeed can

Thank you for your advice

🙏🏼

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@paul-luk
Comment options

@geoand
Comment options

geoand Jun 3, 2024
Collaborator

@paul-luk
Comment options

@geoand
Comment options

geoand Jun 4, 2024
Collaborator

Answer selected by paul-luk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants